Making a Tasker profile overrule another - Tasker Tips & Tricks

I have a profile that when the screen turns on it enables location to battery saving mode for 1 minute the turns off completely. I then have a 2nd profile that turns location to high accuracy when I open Google maps. The problem is my first profile overrides the maps profile and disables location after 1 minute even if maps is open and location changes to high accuracy.
So how can I make my 2nd profile override the first? I feel like it can't be too difficult to do but I can't figure it out.

farquea said:
I have a profile that when the screen turns on it enables location to battery saving mode for 1 minute the turns off completely. I then have a 2nd profile that turns location to high accuracy when I open Google maps. The problem is my first profile overrides the maps profile and disables location after 1 minute even if maps is open and location changes to high accuracy.
So how can I make my 2nd profile override the first? I feel like it can't be too difficult to do but I can't figure it out.
Click to expand...
Click to collapse
Hello my friend.. You need something like in the first profile long press in the name and add second condition to trigger profile... Add Google maps and in selection of app press the invert button... I thing this setup does your work.. Try and tell me!!
Sent from my SM-G900F using XDA Labs

I thought that would work but it didnt Here's my profile.
When Display is On, Location = Battery Saving, Wait 1 Min, Location = Off
If i use the invert, it just turns off the Display On profile but i think the 1 minute timeout is already triggered as its still turning off location 1 minute after even with Maps open even though in Tasker the Display profile doesnt show as active.
I need something to say Wait 1 min unless Maps is open but then what happens when Maps closes, the 1 minute begins? Doing that may not be easy. Is there no way to add weight or priorities to tasks to say the maps profile.
! REALLY horrible way i suppose i could do it is in my maps profile say wait 61 seconds and then set location mode to GPS, so that it reenables if the Display profile has disabled, i just could end up with a small gap of time where location is off.

Here's what you do.
Add an action to both location profiles that (and every profile or task that turns on loc services) sets a timer
set variable LOCATIONtimer=%TIMES+60
Then create a profile with a time context and set the time to activate as %LOCATIONtimer
The task will disable location services.
Now set your maps profile to clear the %LOCATIONtimer variable
(this will prevent the disabling of loc… since the variable has no time, it can't fire)
Then when your battery saving profile activates it will set the timer for 60 secs… but when you activate maps… it will clear the variable, so it won't adjust your loc srvices
Btw… it's a huge battery impact when you do the "app" context as it checks for open apps every two secs.
It's much better to get rid of all app context profils and launch those apps via a tasker shortcut that
1 launches the app
2 then sets a variable eg. isopenMAPS=true
Then set a. If variable value context of isopenMAPS=true then every time that variable is true, you'll know the app was opened, so you can then clear that variable to show you've closed three app

Related

Tasker or similar apps

Hey everyone. Anyone here use Tasker or any similar app. If so so what are your favorite profiles or things to do with them?
tEcHsAvY said:
Hey everyone. Anyone here use Tasker or any similar app. If so so what are your favorite profiles or things to do with them?
Click to expand...
Click to collapse
Use search
I'm a long time Tasker user and cannot think using any device without it.
The main thing I use it for are:
- automatic change of audio volumes based on time and location;
- hourly chime;
- missed notifications reminder;
- automatic switch GPS ON/OFF when using maps;
... Other little things depending on specific ROM I'm using ...
Macro droid is pretty good, A tad easier to setup tasks
For me, Tasker knocked me down. I use Automateit Pro, a little bit more user friendly and does the job accurately.
tEcHsAvY said:
Hey everyone. Anyone here use Tasker or any similar app. If so so what are your favorite profiles or things to do with them?
Click to expand...
Click to collapse
I am using macro droid. Its really smooth and user friendly. Not as versatile as Tasker may be but it almost serves all the needs with more macros. It was my first purchase from google play.
Only use it to turn volume down when I arrive at the office.
Tasker and Secure Settings. I use it to:
1) Set ringtone to vibrate between 11pm to 6am
2) Trigger high accuracy GPS when I open waze.
3) Auto rotate only when in the camera, gallery, youtube and a few others.
4) Switch between edge and HSPA (to save battery) i.e. only swtich to hspa when youtube, web browser or app that needs a fast data connection is active.
5) Send emergency SMS to certain people when battery reaches to 10% (hardly ever happens but hey safe than sorry)
6) Switch to car mode (app) when connected to my bluetooth headset.
7) Open up emulator when game controller is connected.
8) When within range of my home town cell tower, switch on wifi, similarly when out of range of the tower, wait 2 mins then switch off wifi.
amd-dude said:
Tasker and Secure Settings. I use it to:
1) Set ringtone to vibrate between 11pm to 6am
2) Trigger high accuracy GPS when I open waze.
3) Auto rotate only when in the camera, gallery, youtube and a few others.
4) Switch between edge and HSPA (to save battery) i.e. only swtich to hspa when youtube, web browser or app that needs a fast data connection is active.
5) Send emergency SMS to certain people when battery reaches to 10% (hardly ever happens but hey safe than sorry)
6) Switch to car mode (app) when connected to my bluetooth headset.
7) Open up emulator when game controller is connected.
8) When within range of my home town cell tower, switch on wifi, similarly when out of range of the tower, wait 2 mins then switch off wifi.
Click to expand...
Click to collapse
Do any of these require root?
I can't recall but I think secure settings requires root, someone correct me if I'm wrong. Most of them don't. Secure settings trigger different gps modes.
Ok cool thank you
Llama - is similar, as some alright features
I personally went for tasker and added secure settings
After 3 failed unlocks, takes picture on front cam and logs location
when face down, set phone to silent
when near home or work turn wifi on
when at home and connected to wifi, turn lock off
when connected to bluetooth in car turn lock off
on boot set lock to on
similar to others... other additions:
> read SMS sender and text contents while connected to car bluetooth [developing] (anyone know the right audio channel to play notifications through?)
> shake vertically to lock device (too big to always reach power button)
and per someone's earlier question yes you need root for secure settings to do most of its worthwhile tasker actions. although my secure settings is not working for enabling/disabling pattern unlock in 5.0 [liquidsmooth v4.0 unofficial]
I mainly use it to control the lights at home. I haven't been able to think of any other use cases for me
c8503 said:
> shake vertically to lock device (too big to always reach power button)
Click to expand...
Click to collapse
want to share this? looks a bit nifty
Below are the Tasker Profiles that I use:
1. Turn Wifi On when I'm connected to a cell tower near home. Turn off when I exit.
2. Notify to take my ID card when disconnected from wifi (reminds me in the elevator)
3. Turn on silent mode when I'm connected to a cell tower near office.
4. Switch to 2G when screen is off.
5. Turn on location for Maps, Uber, etc. Turn off when not using.
6. Increase the display timeout when using Feedly, Facebook, Play Store, etc. Change it back to 15 secs when not using.
Hampa_D said:
want to share this? looks a bit nifty
Click to expand...
Click to collapse
Superquick:
New Profile "Shake it off" > Event > Shake Backwards & Forwards > Sensitivity = High, Duration = Medium > New Task "LockSystem" > If %SCREEN ~ on > System Lock
Note the "IF Screen ~ ON" otherwise while your phone is in your pocket it will keep locking which is not a problem untill you try to run with your phone playing music and you get the lock sound effect every step you take
The "Shake Backwards-Forwards" is not intuitive but the shake actions are sort of misnamed in tasker. This locks the phone if you shake it up and down vertically [insert masturbation gesture here].
The medium duration is also key so you get the right kind of threshold for not having the screen go off while you ride the bus but also not having to shake it for a while.
<3
Tasker, AutoVoice, Secure Settings
- Set Silent mode as soon as connected to WiFi at work
- Turn off mobile data when connected to WiFi
- Invisible unlocker to unlock phone from locksreen
- Change input method when i take out the pen on my Note 3
- Read my calendar for work events and set my alarm accordingly
Tasker, AutoVoice, Secure Settings
- Set Silent mode as soon as connected to WiFi at work
- Turn off mobile data when connected to WiFi
- Invisible unlocker to unlock phone from locksreen
- Change input method when i take out the pen on my Note 3
- Read my calendar for work events and set my alarm accordingly
Tasker with OnePlus One
Hello,
I am using Tasker with some of the following tasks/settings...
Sound and Timeout profiles for Home, Out, Work and Night situations.
Toggle between different screens in Lightning launcher for Home, Out, Work or Night situations.
They than look similar to the Smart Screen Launcher screens.
Capturing notifications and displaying them in situations when I want them to appear, including sound and/or vibration.
Retrieving Sunrise/Sunset times and weather information, displaying the info via Zooper Widget.
Setting different wallpapers according the time and location during the day.
Adding the current location to for instance Evernote (like the app Where Am I).
A working time registration including reporting worked hours.
-Tasker
-Lightning Launcher
-Zooper Widgets
-AutoNotification (plugin for tasker)
-AutoLocation (plugin for tasker)
-AutoLaunch (plugin for tasker)
-Email Me (plugin for tasker)
There is so much you can do with tasker
Regards, Rob

[Noob question] Setting up 'Car Mode'

Hey folks,
I'm totally new to Tasker and after having spent hours reading tutorials and browsing forums, I hope to get some help here.
I'm not able to set up any task at all admittedly.
I'm trying to set up a 'Car Mode', i.e. when my device connects to my Bluetooth Car Adapter, it's supposed to trigger a couple of tasks, such as
- Setting Display Timeout to maximum (30 minutes)
- enable 'Double-tap to wake up'
- Read messages aloud (SMS, WhatsApp, Telegram, ...)
I've set up a profile with BT connected and the name of my adapter and tried to trigger one of the given tasks, but I can't even get the tasks running.
When, for example, setting up a new task ("Display Timeout: Max") and adding an action 'Settings --> Display Settings', I get the possibility to add the %DTOUT variable and set the value to 30, but it's always an If variable.
How can I set up this (actually fairly simple imo) task: If BT device connected, then set display timeout to 30 minutes.
Sorry for this most likely stupid question.
Thanks a ton in advance!
Edit: I figured out how to make my device read messages aloud (Thanks to Notification Listener) and set the display timeout to 30 resp. 1 minute (It wasn't the Settings section but the display section).
Still no clue how to toggle Double-Tap to Wake ...

How can I set alarm clock few minutes after profile active?

I set in profile task what At a specific time enable wifi and internet radio - that should wake me up.
But if radio don't wake me up I want that few minutes later set/on oryginal alarm clock (where i can set my ring tone or ex. set snooze for 5min/10min or off alarm if I wake up).
I randomly wake up so when i whant that radio wake me up i set time to ON only on tasker profile.
How i can add/what task add to this if I want Get the effect when radio will ON , 5min later clock alarm will ON
try this:
- in profile task, do math on current time, plus x min times 60,
- than convert the result back to normal time format
- do a variable split, splitter empty, to split it by space, to get time only
- you will have to trim possible preceding zero in hour
- than set alarm with the result time
Sorry but You write too complicated for me :|
Can You write this same but maybe on the example and write step by step what to do
Thank so much
Yeah that's far too complicated. Try this.
In your first profile, that turns on your alarm, set a variable %ALARMTIMERCOUNTDOWN =%TIMES+120 (%TIMES is the current time in seconds, and + 120 is two minutes after the current time
Then create a time context profile and click the little tag you change it from time, to variable, and enter %ALARMTIMERCOUNTDOWN as the time.
Then, when the current time=ALARMTIMERCOUNTDOWN the profile will trigger.
Now remember to clear the variable in both exit tasks so if you wake up, the variable will be empty and thus will never trigger
Can You write this step by step. Like this: Go to your profile that turns on your alarm -> in task what enable radio add new variable -> action ("+") -> variables -> add variable - here in "........." write "....... " -> then go to action variable and "set variable" -> ........
In profile I can add new time context and to start time set %ALARMTIMERCOUNTDOWN but i bust add task to this context - what task i should add?
"Now remember to clear the variable in both exit tasks" - I had add variable only on one task "In your first profile, that turns on your alarm, set a variable.... "
someone can help?
gonzolex said:
someone can help?
Click to expand...
Click to collapse
ok, here goes:
new profile1
- trigger: event/date-time/alarm clock: alarm info
- action: set variable %Trigger to %TIMES+120, do math
btw profile2
- trigger: state/variables/values: %TIMES eq %Trigger
- action: do your task

Very new to Tasker, need help

I have a shake left right task to change my brightness on my phone. I have a BT Connected profile that is set up for connection to my car's Bluetooth that turns off wifi, sets brightness, etc. Problem is if I hit a bump, my brightness changes due to the shaker profile. I've tried multiple ways of setting in my BT Connected profile to toggle the shake left right profile off when connected to my car. Is there a way to do this? If not I have to turn it on and off manually. I apologize if this has been covered somewhere else.
Thanks in advance
Make an "if" condition in your brightness task using %pactive. It should be: if %pactive doesn't match *,yourbtprofilename,*
Good luck
shaggydiamond said:
Make an "if" condition in your brightness task using %pactive. It should be: if %pactive doesn't match *,yourbtprofilename,*
Good luck
Click to expand...
Click to collapse
So this does not seem to be working correctly. I have made a "if" condition, but it either doesn't work or just breaks the shaker all together. I have moved the "if" (line 9) to any and all lines, but it still is not working correctly. For some reason I cannot submit a screen shot, even though I have been on this forum for years...
1. If V
%BRIGHT ~ 255
2. Display Brightness
Level 35
3. Display Timeout
Secs 0 Mins 1 Hours 0
4. Else
5. Variable Set
Name %Bright To %Bright
6. Display Brightness
Level 255
7. Display Timeout
Secs 0 Mins 1 Hours 0
8. End If
9. If V
%pactive !~ BT Connected Bose AE2 Soundlink
Am I missing something?
Thanks again
masked_hacker said:
So this does not seem to be working correctly. I have made a "if" condition, but it either doesn't work or just breaks the shaker all together. I have moved the "if" (line 9) to any and all lines, but it still is not working correctly. For some reason I cannot submit a screen shot, even though I have been on this forum for years...
1. If V
%BRIGHT ~ 255
2. Display Brightness
Level 35
3. Display Timeout
Secs 0 Mins 1 Hours 0
4. Else
5. Variable Set
Name %Bright To %Bright
6. Display Brightness
Level 255
7. Display Timeout
Secs 0 Mins 1 Hours 0
8. End If
9. If V
%pactive !~ BT Connected Bose AE2 Soundlink
Am I missing something?
Thanks again
Click to expand...
Click to collapse
Much better to post the actual profile when it's not working as expected. Make sure it's named - not a default name assigned by tasker. Then long press on the name to highlight the profile. Go to the 3-dot menu and select export -> Description to Clipboard.
Then you'll be able to paste it. Be aware, it easier to use pastebin.com then link to a post here. If you paste in a post here, the forum software will convert all semicolons with characters after, typically "on" and "off" to emoticons making it very hard to read.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
masked_hacker said:
So this does not seem to be working correctly. I have made a "if" condition, but it either doesn't work or just breaks the shaker all together. I have moved the "if" (line 9) to any and all lines, but it still is not working correctly. For some reason I cannot submit a screen shot, even though I have been on this forum for years...
1. If V
%BRIGHT ~ 255
2. Display Brightness
Level 35
3. Display Timeout
Secs 0 Mins 1 Hours 0
4. Else
5. Variable Set
Name %Bright To %Bright
6. Display Brightness
Level 255
7. Display Timeout
Secs 0 Mins 1 Hours 0
8. End If
9. If V
%pactive !~ BT Connected Bose AE2 Soundlink
Am I missing something?
Thanks again
Click to expand...
Click to collapse
Below 9 is where you want your task! With 9 you're saying 'if'. Task #10 and up is your consequence of that. Try a more simpler task to get to know 'if' and 'else'. Then try again with this task. Basically: 'if condition' - task - task - 'end if'. You can put more 'if conditions in between if you want.
masked_hacker said:
I have a shake left right task to change my brightness on my phone. I have a BT Connected profile that is set up for connection to my car's Bluetooth that turns off wifi, sets brightness, etc. Problem is if I hit a bump, my brightness changes due to the shaker profile. I've tried multiple ways of setting in my BT Connected profile to toggle the shake left right profile off when connected to my car. Is there a way to do this? If not I have to turn it on and off manually. I apologize if this has been covered somewhere else.
Thanks in advance
Click to expand...
Click to collapse
In your shaker profile if you have an entry task, add an if statement. In here on the variable side put %PACTIVE and use the matches symbol. Then on the right side put *name of bt profile*
Then after that task add a stop task, then end if task.
What this will do is first check if your using you bt connected profile and stop or go depending on if it's active. I hope this makes sense. If not I'll try to write it out more clearly when I get home. You may not need an entry\exit task for your profile if you only have just a group of tasks just add the if part inside one of those tasks

Trigger Amolad AOD with Tasker

A main disadvantage of the OP7P is the lack of AOD and Led. The ambient display is very short, so you never know if you missed call or message.
Some AOD Apps are heavy battery consumers, or disabling face recognition unlock, OPAODmod block chrome, Plus Beat is reasonable solution, though it is not AOD.
gigiion came up with the idea to trigger the Amolad AOD app to run only if notification was missed, using Macrodroid. Here is the way I implemented his idea, using Tasker:
1. Install Always on AMOLED from google play store. Do not enable the service. For OP7P choose One UI theme.
2. Screen condition
In Tasker, make these two profiles:
- Display off > Veriable set %Screen_Locked ~ 1
- Display Unlocked > Veriable set %Screen_Locked ~ 0
In such way the native ambient display will not interrupt the AOD whet it turn the screen on.
3. Main task
If %Screen_Locked ~ 1
Veriable set %Titel1 to %NTITLE
Veriable set %Text1 to %evtprm3
Wait 15 secondes
From Amolad plugin – start amolad display if %Screen_Locked ~ 1
End if
The variables %Title1 and %Text1, can be used to track the situation that the AOD start without any known trigger. Such phenomenon can happened if WhatsApp notify “Searching for messages”.
The 15 sec delay is for the native ambient display. The double condition of Screen_locked, disable AOD if you unlocked display in this period, of just answer a call.
4. Triggers
Make profiles of event/notification, missed call, state/power/power or whatever you like, and assign to the task you just made. Name those profiles – it is necessary for next stage.
5. Toggle profiles
Make “toggle aod profiles” task:
Profile Status missed_call set toggle
Profile Status aod set toggle
etc ……..
if % PENABLED ~ *,aod,* (“aod” is name of one of the trigger profiles)
setup quick setting (number: 1st, Name: toggle aod profiles, status: inactive)
else
setup quick setting (number: 1st, Name: toggle aod profiles, status: active)
end if
I do not understand way the active/inactive are replaced.
6. Assign quick setting button
In Tasker’s main screen upper right corner three dots: Preferences/ Action tab/ quick setting tab.
Then add it in the quick setting editor.
7. Automatic toggle triggers
Clone the task you made in section 5, and change “toggle” to “on” of “off”, then you can make any profile you like to toggle the triggers.
Seems like alot of work when you can just use this mod.
https://forum.xda-developers.com/on...ice-themes-apps--mods/oxygen-aod-mod-t4023587
hallo dare said:
Seems like alot of work when you can just use this mod.
https://forum.xda-developers.com/on...ice-themes-apps--mods/oxygen-aod-mod-t4023587
Click to expand...
Click to collapse
The main reason that I didn't use it, is the long remind interval (min 15 sec) and the short display time. You can miss notifications if you don't looking into the black screen all the time. Any case I found stable AOD to be better, otherwise i could use Plus beat.

Categories

Resources