1. Download our Official Android App: Forums for Android!

Tasker profile and task priorities

Discussion in 'Android Apps & Games' started by Valiceemo, Feb 14, 2014.

  1. Valiceemo

    Valiceemo Guest
    Thread Starter

    So I've been using tasker for a while now and it truly is an.impressive app.*
    But since I've been using it a lot I've got lots of profiles and tasks as a result of playing and experimenting and learning.*
    So I've decided to start over again!

    My question is. What's the best practice for usage / profile management.

    My goal is too have tasker automate basically everything. So....

    I'd have a*
    home profile
    Tasks to set volumes, turn pin off, turn Wi-Fi on, etc
    But also within the home profile I'd like to have it set volumes based on time, i.e night time, and daytime and reduced volumes.

    Work profile
    Tasks to set volumes etc

    Car profile*
    Connect to Bluetooth, change screen timeout. Etc

    What I'm.struggling with is keeping it tidy.*
    My current setup doesn't work as it should, and I think its due to the haphazard profiles. For example I have a car mode which should disable the pin. Which it does, for a while.But then the pin comes back on due to my gone profile becoming none active.

    Can anyone help me on how to best achieve solid and clean profile management and prioriTizing


  2. codesplice

    codesplice Elite Recognized Moderator
    Oct 29, 2013

    Oct 29, 2013
    Huntsville, AL
    Anytime that I have numerous profiles which can control the same thing (for example, I have profiles which disable my PIN lockscreen when the device is connected to my home Wifi OR my Pebble watch), I like to use simple variables as a check.

    For instance, my Wifi Unlock profile looks like this:
    Wifi Connected: MySSID
    Enter Task:
    - Secure Settings: Clear PIN
    - Variable Set: %WifiUnlock to 1
    Exit Task:
    - Secure Settings: Set PIN if %PebbleUnlock !Set (is not set)
    - Variable Clear: %WifiUnlock

    And my Pebble profile is similar:
    Bluetooth Connected: Pebble
    Enter Task:
    - Secure Settings: Clear PIN
    - Variable Set: %PebbleUnlock to 1
    Exit Task:
    - Secure Settings: Set PIN if %WifiUnlock !Set
    - Variable Clear: %WifiUnlock

    Another option may be to instead check the %PACTIVE (profiles active) variable. You can add that to the same If statement in an action. For instance, the Exit Task of my PebbleUnlock profile would change to look like this:

    - Secure Settings: Set PIN if %PACTIVE ~ "*, WifiUnlock, *"

    Either route should work fine.

    I also occasionally use compound profiles, where Profile2 would depend upon Profile1 being active plus some other condition. If, for instance, I wanted to adjust my volume when I'm at home (and connected to my Wifi) at night, I could add multiple contexts to a single profile. It would look like this:

    - Profile Active: WifiUnlock
    - From 21:00 Till 06:00

    The Priority value really only addresses the order in which profiles will be triggered when their conditions are met, but doesn't really impact which profiles will be fired.

    Hope this helps :)

Share This Page