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
Related
Hello,
I would like to create a task, that would popup a snackbar, with some music apps after I connect headphones.
My profile is like:
if ( headphones had been connected & screen is on )
then show popup ONCE
I have almost finished doing it, yet I have one obstacle that I do not know how to overcome. Headphones (headset) is being detected as a state, so it is continuous. I would like to use it more like an event.
By having it like as a state this popup shows everytime I unlock my screen, yet I would like it to be only once.
To be clear, screen on is needed in case I want to use other app than Poweramp, which automatically plays music after I connect headphone. That way, I would get the most of both worlds
Any help?
Export task to xml and put here
You can ad some "if".
Show popup If %Plugin = 0
And as last step add Enter task - set %Plugin to 1
Exit task: set %Plugin to 0
or something similar.
frrancuz. said:
Export task to xml and put here
You can ad some "if".
Show popup If %Plugin = 0
And as last step add Enter task - set %Plugin to 1
Exit task: set %Plugin to 0
or something similar.
Click to expand...
Click to collapse
Well, I thought so as well. Unfortunately, when screen goes off, this means that exit task is being triggered.
@domi.nos
Try
http://fii.cz/qmpcmdv
it is very simple, to show you how it works.
frrancuz. said:
@domi.nos
Try
http://fii.cz/qmpcmdv
it is very simple, to show you how it works.
Click to expand...
Click to collapse
Thanks for your help. I just solved it on my own, it turned out as if I set both Screen and Headphones State as triggers, this popups show all the time, but after moving Screen State to be checked in the task, it just works
Instead of opening a window when you plug your headphones, you could add audio widgets and shortcuts to one of you homescreens and then when you plug your headphones it jumps to that homescreen.
When you unplug them, you could set it to jump to your main homescreen.
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 ...
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
I am trying to create a simple task that will increase my phone brightness when I shake my phone.
However, I am completely lost. I was trying to follow this tutorial: https://forum.xda-developers.com/u/t...tness-t3331135 but I am having trouble. The app must have updated since mine looks completely different and I can't seem to find all those options. Any help would be appreciated. Thanks
There's nothing substantially different there from the 5.0 release of tasker.
It just creates a profile named "Toggle Brightness" with a event of a shake gesture.
Then an anonymous entry task is created. The first action in the task is an "if" statement, checks (~ means matches) the current brightness level and if already maxed (255) it runs everything inside the if statement up to the else statement. The action within the if statement simply sets the brightness level to whatever it was before out was maxed out (the %Bright variable is defined in the else part of the task).
If the condition isn't matched (brightness level is < 255) then it hops to the "else" statement. Inside that it's just recording the current value of the screen brightness (%Bright = %BRIGHT where %Bright is a user variable you are creating and %BRIGHT is a built in variable that changes when the display brightness changes. Then an action is created to max out the display brightness (Display --> Display Brightness = 255).
Lastly, the required "end if" statement is added.
Just follow the steps as outlined and it should work. For example, the step that says;
Display --> Display Brightness
means, add a task from the display grouping named Display brightness.
Where specifically are you having trouble?
ktmom said:
There's nothing substantially different there from the 5.0 release of tasker.
It just creates a profile named "Toggle Brightness" with a event of a shake gesture.
Then an anonymous entry task is created. The first action in the task is an "if" statement, checks (~ means matches) the current brightness level and if already maxed (255) it runs everything inside the if statement up to the else statement. The action within the if statement simply sets the brightness level to whatever it was before out was maxed out (the %Bright variable is defined in the else part of the task).
If the condition isn't matched (brightness level is < 255) then it hops to the "else" statement. Inside that it's just recording the current value of the screen brightness (%Bright = %BRIGHT where %Bright is a user variable you are creating and %BRIGHT is a built in variable that changes when the display brightness changes. Then an action is created to max out the display brightness (Display --> Display Brightness = 255).
Lastly, the required "end if" statement is added.
Just follow the steps as outlined and it should work. For example, the step that says;
Display --> Display Brightness
means, add a task from the display grouping named Display brightness.
Where specifically are you having trouble?
Click to expand...
Click to collapse
I guess I'm just slightly confused on how you are supposed to create a profile and also link it to a task. For example, If I try to create a new profile it asks for application, day, event, etc...
Same goes for action. I am presented with a bunch of options. Upon clicking one (i.e display brightness), I see a page like this: https://imgur.com/a/eiQTz
I guess my best bet is to try and go through the tutorial in more detail...
Do this:
Tap the on the profile screen. Now go to event -> sensor -> shake. Leave everything the way it is and tap the left facing arrow at the top.
Now it'll pop up a menu to start a new task (or select an existing task if there are any). Give the task a name and then you'll have a blank task to work with. Follow the instructions from that link to add actions to your task. Start with the if action ( -> task -> if).
When adding an action, you can always use the filter field at the bottom to search for the action you're looking for. e.g. type "if" and it will narrow the list including "if" and "endif".
Here's some help on that display brightness screen.
ktmom said:
Do this:
Tap the on the profile screen. Now go to event -> sensor -> shake. Leave everything the way it is and tap the left facing arrow at the top.
Now it'll pop up a menu to start a new task (or select an existing task if there are any). Give the task a name and then you'll have a blank task to work with. Follow the instructions from that link to add actions to your task. Start with the if action ( -> task -> if).
When adding an action, you can always use the filter field at the bottom to search for the action you're looking for. e.g. type "if" and it will narrow the list including "if" and "endif".
Click to expand...
Click to collapse
This is exactly what I needed, and the app actually is starting to make sense now. Thank you for the help, I really appreciate it. I was able to get it working
I have a Pixel 4 XL (rooted), there is a way to enable High Brightness Mode when the screen is at 100% brightness and by entering the following in Terminal Emulator.
su
echo on >> /sys/class/backlight/panel0-backlight/hbm_mode
This only sticks until the screen goes off and needs to be ran again to get it on again. I'd like to make a task so that it automatically turns on when the screen is at 100% brightness but I have no idea how to do it. I've watched a few videos but I'm still not sure what to do. Thanks in advance.
Add a task and make sure to name it.
Add an action to the task code -> run shell.
On the line for command put your terminal command;
echo on >> /sys/class/backlight/panel0-backlight/hbm_mode
Tick the box for use root.
Tap the [emoji809] on the line with the "if"
On the first line put the variable %BRIGHT
Tap the center button (probably displays a ~)
Select "Maths: greater than" (will now display a > )
On the second line, enter 230 (* see further down for an explanation)
Back out of the task to save it.
Now create a profile, with the context of event -> display -> display on
Link the task you created above
What this does is each time the display turns on, the associated task will run. But the code will execute only if the display brightness is above the level set. You will need to play with the number to your satisfaction.
On my Pixel 3XL, stock Pie, 237 is actually the highest I've seen brightness go. In theory, 255 is the highest. Other (non pixel devices) have reported an order of magnitude higher. You can view the value of the variable in an alert -> flash action.
If there is a specific app that you will be using, then adding that as a profile context will reduce the number of times the profile will run. Or any other way to narrow down the active condition, maybe a state -> light level context.
ktmom said:
Add a task and make sure to name it.
Add an action to the task code -> run shell.
On the line for command put your terminal command;
echo on >> /sys/class/backlight/panel0-backlight/hbm_mode
Tick the box for use root.
Tap the [emoji809] on the line with the "if"
On the first line put the variable %BRIGHT
Tap the center button (probably displays a ~)
Select "Maths: greater than" (will now display a > )
On the second line, enter 230 (* see further down for an explanation)
Back out of the task to save it.
Now create a profile, with the context of event -> display -> display on
Link the task you created above
What this does is each time the display turns on, the associated task will run. But the code will execute only if the display brightness is above the level set. You will need to play with the number to your satisfaction.
On my Pixel 3XL, stock Pie, 237 is actually the highest I've seen brightness go. In theory, 255 is the highest. Other (non pixel devices) have reported an order of magnitude higher. You can view the value of the variable in an alert -> flash action.
If there is a specific app that you will be using, then adding that as a profile context will reduce the number of times the profile will run. Or any other way to narrow down the active condition, maybe a state -> light level context.
Click to expand...
Click to collapse
Thank you very much, I'll give it a shot.