Extend DND hours only on weekend. - Tasker Tips & Tricks

Hello all!
So I posted this in the Tasker reddit too so was looking to pick as many brains as possible as I'm running into road blocks and not getting the desired results
So I'm trying to extend the time DND is active on only Saturday and Sunday. 1st try failed..
https://i.imgur.com/7CIm3Hw.jpg
https://i.imgur.com/XZ047lz.jpg
https://i.imgur.com/Mt9zGI3.jpg
Not quite sure why it's not worked. Phone DND settings are limited at it disables at 7am daily. The weekend task was meant to place it into DND at 7:01 until later..
I later tweaked to have separate profiles per day..
So having tried the separate days it's taking the day over the timing.
https://i.imgur.com/O7zvMsX.jpg
So it's simply ignored the fact I wanted time to also go into the equation and set it to the day and nothing else matters!
Sent from my SM-N960F using Tapatalk

jr866gooner said:
Hello all!
So I posted this in the Tasker reddit too so was looking to pick as many brains as possible as I'm running into road blocks and not getting the desired results
So I'm trying to extend the time DND is active on only Saturday and Sunday. 1st try failed..
Not quite sure why it's not worked. Phone DND settings are limited at it disables at 7am daily. The weekend task was meant to place it into DND at 7:01 until later..
I later tweaked to have separate profiles per day..
So having tried the separate days it's taking the day over the timing.
So it's simply ignored the fact I wanted time to also go into the equation and set it to the day and nothing else matters!
Sent from my SM-N960F using Tapatalk
Click to expand...
Click to collapse
It helps substantially more if you post the task or profile rather than use screenshots.
When setting DND settings in an entry task, you must proactively disable DND in an exit task. It will not revert settings automatically on exit. That was a change, specific to DND, introduced rather silently several tasker versions ago.
Why not use Android's built in DND automatic settings rules?

ktmom said:
It helps substantially more if you post the task or profile rather than use screenshots.
When setting DND settings in an entry task, you must proactively disable DND in an exit task. It will not revert settings automatically on exit. That was a change, specific to DND, introduced rather silently several tasker versions ago.
Why not use Android's built in DND automatic settings rules?
Click to expand...
Click to collapse
Thanks! How do I add an exit task please?
The default Samsung DND settings dont specify a separate weekend time setting.
Sent from my SM-N960F using Tapatalk

Long press on the entry task on the profile tab, then a context menu will pop-up. The entry task has a green, right facing arrow. An exit task will have a red, left facing arrow.

ktmom said:
Long press on the entry task on the profile tab, then a context menu will pop-up. The entry task has a green, right facing arrow. An exit task will have a red, left facing arrow.
Click to expand...
Click to collapse
Thanks! I'll have a play.
For clarity this is one of the problematic profiles.
Profile: DND sat (14)
Time: From 07:02 Till 08:10
Day: Sat
Enter: DND On (8)
A1: Do Not Disturb [ Moderiority ]
Hope this makes it a little clearer. Apologies it's my first time in the forum for tasker at XDA!
Sent from my SM-N960F using Tapatalk

My apologies I failed to mention that this now works and is set as follows!
Profile: DND sat (14)
Time: From 07:02 Till 08:10
Day: Sat
Enter: DND On (8)
A1: Do Not Disturb [ Moderiority ]
Same setup for sunday too so I am very pleased indeed and thanks to anyone that had patience and found time to read my post.
Sent from my SM-N960F using Tapatalk

Related

Shortcut Brightness on Nova Launcher

Is there anybody who knows how I can add an Shortcut of Gear Settings -> Display -> Brightness on Nova Launcher Desktop?
If I try to set an Shortcut of Settings. I only can use Display. But this is the setting of the Device and it will crash everytime.
Hope you can help me.
Thx forward
Filler1971 said:
Is there anybody who knows how I can add an Shortcut of Gear Settings -> Display -> Brightness on Nova Launcher Desktop?
If I try to set an Shortcut of Settings. I only can use Display. But this is the setting of the Device and it will crash everytime.
Hope you can help me.
Thx forward
Click to expand...
Click to collapse
Creat a widget: Shortcuts >> Activities >> Settings (the stock one not nova) >>displayDisplaySettingsList
I know this isn't what you asked about.... but I'm using Tasker to set the automatically set the screen brightness based on time of day.
i.e.auto set brightness set to "4" (tasker display brightness value of 142) at 8AM for daytime use, and brightness set to "2" (tasker display brightness value of 54) at 5PM for nighttime.
Probably could make some homescreen buttons to toggle/change brightness levels too...
I reinstalled gravity box to get full options and use brightness slider.
Sent from my Nexus 5 using XDA Premium 4 mobile app
Thx for reply :good:
@almulder1092
That's the way I've done it.
Maybe I should take a deeper look for Tasker. I've often read about it.
Filler1971 said:
Thx for reply :good:
@almulder1092
That's the way I've done it.
Maybe I should take a deeper look for Tasker. I've often read about it.
Click to expand...
Click to collapse
I use the tasker way. It 9:00pm my watch goes it to low brightness and silent mode until 8:00am then it returns to normal brightness and sound mode.
any chance you can export out the profile and upload it i would to use it if you don't mind with different hours
cyberone3 said:
any chance you can export out the profile and upload it i would to use it if you don't mind with different hours
Click to expand...
Click to collapse
I would but I have since wiped it out and reverted back to stock. This weekend I plan on redoing my gear. (Was testing some stuff out). Once I do I will upload them.
almulder1092 said:
I would but I have since wiped it out and reverted back to stock. This weekend I plan on redoing my gear. (Was testing some stuff out). Once I do I will upload them.
Click to expand...
Click to collapse
thats a person form the twrp thread was able to get me up and working again
but if you code that woudl be great when you have the time
i know this wont be the last time this will be asked
By the time you've downloaded it to your phone, sent it via Bluetooth to your watch and then imported it into tasker on your watch you could have written the profile 4 times over!
Here's the description of the task in rough that I've just made. You should really write your own tasks to make them specific to you.
Profile: Gear Light And Sound (497)
Time: From 21:00 Till 08:00
Enter: Gear Light Sound (500)
A1: Display Brightness [ Level:49 Disable Safeguardff Ignore Current Levelff Immediate Effectff ]
A2: Ringer Volume [ Level:0 Displayff Soundff ]
Exit: Gear Light And Sound Start (503)
A1: Display Brightness [ Level:136 Disable Safeguardff Ignore Current Levelff Immediate Effectff ]
A2: Ringer Volume [ Level:10 Displayff Soundff ]

Tasker Profiles Stopped Working After Update

Hi, i am sorry if i am posting into wrong forum
but i have issue with tasker i have couple program in there very simple ones based on location and simple switch for example to silent and back to sound when i am and exit certain location and so on. and after i think last update the profiles does not activate any more. i havent done anything in tasker did not added the profiles are on and the location services are on. i have version 4.8u1m. do you know what could have happened? thanks
In your settings in accessibility do you have tasker turned on. Also in tasker itself go to preferences monitor and make sure use new cell Api is checked .
Maybe you switched off tasker? Long press the Tasker icon in the app in the upper left corner. If it's not colored it's switched off
Follow_and_Feel said:
Maybe you switched off tasker? Long press the Tasker icon in the app in the upper left corner. If it's not colored it's switched off
Click to expand...
Click to collapse
That was it for me! Thanks!!

[Help] How to use Tasker to turn on AOD

Hello, I've just started to learn to use tasker and I can't set the task I'd like.
The idea is the same as this tutorial:
https://forum.xda-developers.com/lg-g6/how-to/alwaysondisplay-aod-substitue-missing-t3698336
So when you receive a notificacion of the selected apps, AOD turns on, and when you delete the notificacion, AOD turns off. So it wil save a lot of battery compared to AOD always active
I hope some more experienced user can make it work, as I'm totally lost right now.
Thanks!
Anyone, please? Thanks in advance
I manage to make it worked, so where do you want to start ?
sanctitude888 said:
I manage to make it worked, so where do you want to start ?
Click to expand...
Click to collapse
Mainly I don't know how to set the task "turn aod on/off"
Well, all you need is to download the two xml files to your device. I'm using Opera, so I chose download link option, that ended up downloading the xml file. Grant tasker all necessary permissions in 3 dots, more, Android settings. Otherwise, Tasker won't work properly. Tap on 'tasks' tab twice, and select import. Do this for the two attached files. Then create a profile according to guide in given link, choose one or multiple apps at once, when you press back Tasker will ask you associated task, select correct task. Repeat another profile. Toggles both profiles if it has not already, then tap check mark on top of Tasker app. You are then, good to go. I'm not an expert by any mean, just one step from labelled a complete noob, I just love to try new things so in case any further things to clear up just keep this conversation going.
---------- Post added at 02:41 PM ---------- Previous post was at 02:25 PM ----------
There is an app mentioned in the post, which is AOD edge https://play.google.com/store/apps/details?id=com.used.aoe, I also gave it a try and it also worked nicely and beautifully when properly configured. You might wanna give it a try to avoid all the complication. Just remember to scroll all the way down to save your settings. It's free.
sanctitude888 said:
I manage to make it worked, so where do you want to start ?
Click to expand...
Click to collapse
Actually what doesn't work for me is the tasks to turn on AOD. I've followed the steps and they just don't work. I previously had a LG G6 in which it worked flawlessly, and I thought that they need to be adapted to Galaxy note 8 firmware. But since you said it's working for you, I am confused.
Everything on my side is correctly set (permissions and so) but the tasks doesn't work, not even turning them on manually
I'm going to send you screenshots of profiles and tasks later on. In the meantime, try the following :
1. Exclude tasker from battery optimization
2. Turn AOD on, go to lock screen, check if aod works. Then turn it off, it should be off for this profiles to work. Remember aod will disappear if unread notif has been read.
sanctitude888 said:
I'm going to send you screenshots of profiles and tasks later on. In the meantime, try the following :
1. Exclude tasker from battery optimization
2. Turn AOD on, go to lock screen, check if aod works. Then turn it off, it should be off for this profiles to work. Remember aod will disappear if unread notif has been read.
Click to expand...
Click to collapse
The problem seems to be with the task itself, as you can see in this screen recording.
blackhawk_LA said:
The problem seems to be with the task itself, as you can see in this screen recording.
Click to expand...
Click to collapse
To my understanding, the task is basically similar which differentiate by value, '1' for aod_on and '0' for aod_off.
You can find the screenshot of my profile below, with a few chosen apps corresponding to aod task. The two profile seems to be identical visually but they actually cover different event as mentioned in above guide.
sanctitude888 said:
To my understanding, the task is basically similar which differentiate by value, '1' for aod_on and '0' for aod_off.
Click to expand...
Click to collapse
Yes, I knew that. But the task seems to do nothing on Samsung devices. Maybe it needs to be rewritten.
Can you confirm you have a Samsung Galaxy and it's working for you?

Profile triggered by %time variable not firing

Phone is Pixel 3a running Android 10, Tasker is up-to-date.
I have a profile called PwrConnect that runs a task called Clock. The task simply launches my alarm clock app on the phone. The profile is primarily triggered when any power is connected to the phone but it has a secondary condition that specifies the time must be between 10:30pm and 6:00am.
When I plug my charger into the phone the profile is not triggered. If I remove the secondary condition (the time constraint) then the profile triggers when I plug in. But here's where it gets kind of strange. If I include the secondary condition (the time constraint) and I have the Tasker app open when I plug the charger in then the profile fires and runs the task which launches the clock app. Alternatively, I have also tried putting the time constraint in the task (%time > 2230) but that does not work either.
What am I doing wrong??? Or, is this a bug? Anyone else see anything like this?
Do you have "reliable alarms" enabled?
Have you tried a simple profile to just test the time context?
ktmom said:
Do you have "reliable alarms" enabled?
Have you tried a simple profile to just test the time context?
Click to expand...
Click to collapse
I'm not sure what "reliable alarms" is. Is that a setting in Tasker or Android?
Anyway, I have done some more testing. I added another step to the Clock task to simply flash a message when the task runs and I have found that the task (and therefore the profile) is indeed being executed as it should be - that is: when power is connected and the time is between 10:30pm and 6:00am. I can tell this because the message flashes on the screen when I connect power. BUT... the clock app only launches if I have the Tasker app open when I connect power. If the Tasker app is not open then I see the message flash but the clock app does not launch.
Reliable alarms is a tasker setting in preferences on the monitor tab. It helps tasker accurately execute time related activities.
What device and ROM are you on?
The following profile works fine for me with Tasker not in the foreground:
Code:
Time: From 11:44AM Till 3:44PM
State: Power [
Source:Any
]
Enter: Open App
A1: Launch App [
App:Clock
Data:
Exclude From Recent Apps: Off
Always Start New Copy: Off
]
ktmom said:
Reliable alarms is a tasker setting in preferences on the monitor tab. It helps tasker accurately execute time related activities.
What device and ROM are you on?
Click to expand...
Click to collapse
Device: Pixel 3a, ROM: stock Android 10 (not rooted)
I am fairly certain that the problem lies with the clock app that I am using. When I change the task so that it launches the stock, built-in clock app then everything works as it should. The clock app that I am trying to use (Kaloer Clock) is no longer in the PlayStore so has not been updated in a while. So, I suspect that there is something about it that Android 10 does not like. The app still functions fine and I can manually start it or Tasker will start it IF Tasker is running in the foreground. In fact this app has a setting that should start it automatically when power is plugged in but that stopped working about the time that I upgraded to Android 10, which is why I was trying to automate it with Tasker. I hate to give up on this app though because it is the only clock app I have found that allows me to tap anywhere on the screen to snooze the alarm (or long-press to cancel it). Everything else I have tried makes you tap an on-screen button which is difficult without my glasses.
Using AutoNotification (or any tasker notification listener plugin), a scene and intents, you can make the Google Clock have a full screen snooze/dismiss "button".
I slapped together an example that I put on Taskernet. It's full screen, a tap snoozes and long press dismisses.
To run it as is, you will need AutoNotification installed. The "ktm" after the profile/task/scene names can be removed. I do this to help prevent name collisions with anything already existing during import.
ktmom said:
Using AutoNotification (or any tasker notification listener plugin), a scene and intents, you can make the Google Clock have a full screen snooze/dismiss "button".
I slapped together an example that I put on Taskernet. It's full screen, a tap snoozes and long press dismisses.
To run it as is, you will need AutoNotification installed. The "ktm" after the profile/task/scene names can be removed. I do this to help prevent name collisions with anything already existing during import.
Click to expand...
Click to collapse
Ktmom,
I installed AutoNotification and imported your project. I am assuming that I need to delete either step 2 or 3 in the Stop Alarm ktm task. But, the scene does not appear unless I have Tasker running in the foreground when the alarm fires. Just wondered if you have test this in Android 10? Seems as though all my problems started after I upgraded.
dremelts said:
Ktmom,
I installed AutoNotification and imported your project. I am assuming that I need to delete either step 2 or 3 in the Stop Alarm ktm task. But, the scene does not appear unless I have Tasker running in the foreground when the alarm fires. Just wondered if you have test this in Android 10? Seems as though all my problems started after I upgraded.
Click to expand...
Click to collapse
The action that you're not using can be deleted or left paused.
And no, sorry, I'm always slow to update to major releases. But, there's something to try.
Edit the scene that your using, without changing anything else, tap the 3-dot menu. Select "properties" and change the "property type" to "activity". Save out of the scene.
Now edit the task -> show scene action that you are using and change "display as" to "activity".
Save out of the task, and Tasker, then test again.

Tasker keep screen on Android 12 issue

Hi,
I have set up the display timeout option with the settings below but it doesn't seem to work. I am using an oppo phone on Android 12.
Create a new task. Select the “+” button. Select “Display” followed by “Display timeout” Select the time span you want to set and then save. Now select “Profile” and click “+” and then “Applications” Mark the applications for which you want to activate this Tasker profile.
Then I open the app but after 15 seconds the screen turns off which is the default device screen timeout.
Is there no way to override this? Maybe get tasker to somehow keep interacting with the screen to keep it on?
I've tried this on a few apps and have got two different messages..
One says screen will stay on for 15 seconds which is the system screen time out.
Other says tasker will keep screen on but still times out after 15 seconds.
Really want this to work as some apps like games I don't want timing out after 15 seconds and I don't want to increase the system time to couple of mins for every app.
Hi,
I have the same problem on my OPPO A74 with Android 11 ((ColorOS Version V11.1). It seems impossible to create a task to change the screen time out; not in connection with a profile, shortcut or widget. The amazing thing, though - when you test the task in Tasker it works perfectly fine.
Media Volume, I think, also doesn't work. Other app connected profiles like autorotate or display brightness work well. I wanted to test more but I can't find the time.
I really miss the screen timeout though. It drains the battery too much to set it constantly to 15 minutes or so, but for some apps less simply is annoying.
The developer created some apk to help with some OPPO related problems, unfortunately, it didn't help with this one (sorry, I can't remember exactly what it was).
A kind of workaround: Once you've activated the Developer Options an your phone you can enable "Keep screen on while charging". When you need longer screen time, just plug into a charger.
But using a Tasker Profile would be much nicer.
Hope somebody knows a better trick.
Not sure if following could help your situation ( only for your gaming situation )
Create a new Profile, choose > apps > add your game apps in it. click left top arrow when finisning add gaming apps.
Tasker will pops-up task list > creat new task > Screen > Turn on.
** when above profile is complete , click the task when you are still in Profile list. Hold the task, it should pops-up with option exit task. Choose this as exit task.
Play around to see if this profile is working when gaming apps in foreground, screen never turn off.
EDIT: Try first not move the task as exit task. ( make the task as normal entry task )
eeeemc said:
Not sure if following could help your situation ( only for your gaming situation )
Create a new Profile, choose > apps > add your game apps in it. click left top arrow when finisning add gaming apps.
Tasker will pops-up task list > creat new task > Screen > Turn on.
** when above profile is complete , click the task when you are still in Profile list. Hold the task, it should pops-up with option exit task. Choose this as exit task.
Play around to see if this profile is working when gaming apps in foreground, screen never turn off.
Click to expand...
Click to collapse
Thanks for your reply.
Creating the profile is not the problem. It just seems that Tasker cannot change the system's setting. As mentioned, there is no problem when you create a profile allowing the screen to rotate using a speciffic app (and others as well ) I have no idea, why it does not work for the screen timeout.
Dreamcatcher0664 said:
Thanks for your reply.
Creating the profile is not the problem. It just seems that Tasker cannot change the system's setting. As mentioned, there is no problem when you create a profile allowing the screen to rotate using a speciffic app (and others as well ) I have no idea, why it does not work for the screen timeout.
Click to expand...
Click to collapse
I use no screen timeout, I use "screen turn on" in your situation as my op., enough I've not tried it on my Samsung A71.
eeeemc said:
I use no screen timeout, I use "screen turn on" in your situation as my op., enough I've not tried it on my Samsung A71.
Click to expand...
Click to collapse
"Display / turn on" works fine when I want the screen to turn on with a notification. But the screen turns dark after the system timeout has passed. I've also tried "Display / Stay On / with Wireless, AC or USB Power" and with the AutoInput Plugin "Screen Off Or On: Turn On / Timeout Never" but the screen always turns dark.
Those Profiles always worked on my other Smartphones (LG -D405, LG-K10 and Moto G6). I believe, it's the ColorOs that's causing the trouble.
Dreamcatcher0664 said:
"Display / turn on" works fine when I want the screen to turn on with a notification. But the screen turns dark after the system timeout has passed. I've also tried "Display / Stay On / with Wireless, AC or USB Power" and with the AutoInput Plugin "Screen Off Or On: Turn On / Timeout Never" but the screen always turns dark.
Those Profiles always worked on my other Smartphones (LG -D405, LG-K10 and Moto G6). I believe, it's the ColorOs that's causing the trouble.
Click to expand...
Click to collapse
below is a task ONLY FOR ROOTED DEVICE., no harm to try even if your's not root.
New task , run shell command , in the command input
there is a button 'use root' , check that button also.
settings put system screen_off_timeout 200000
** 200000 I'm not sure sure equals to how many second., just give it a try and if you get a longer screen on time from your issue it means it is working.
also, make another separate task, search for 'custom setting'. look up from there I thingk it is in system something about screen timeout.
EDIT: run shell command task suggest you run it manually., than see if it works. if not, restart device to check if it requires a restart in order to accept new timeout settings.
eeeemc said:
below is a task ONLY FOR ROOTED DEVICE., no harm to try even if your's not root.
New task , run shell command , in the command input
there is a button 'use root' , check that button also.
settings put system screen_off_timeout 200000
** 200000 I'm not sure sure equals to how many second., just give it a try and if you get a longer screen on time from your issue it means it is working.
also, make another separate task, search for 'custom setting'. look up from there I thingk it is in system something about screen timeout.
EDIT: run shell command task suggest you run it manually., than see if it works. if not, restart device to check if it requires a restart in order to accept new timeout settings.
Click to expand...
Click to collapse
I feel like I'm in Star Trek - "To boldly go, where no one has gone before" XD
When I try your suggestion, I only receive the message that my device isn't rooted.
Btw, for some tasks it is necessary to enable the Write Secure Setting Permission (f.e. Set Assistant), where xou have to setup ADB on your PC. Would such a procedure be registered by the phone as rooting? Anyway, I don't think I would dare to do something I know so little of.
Another solution I was thinking of, is it possible to create a tasker quick tile/ quick setting to change the system screen timeout.
So instead of having it change for certain apps which isn't working at the moment.
Maybe if we can change it from the system so will be for all apps. You can create two separate quick tiles to toggle between different screen timeout settings.
The newest version of Tasker (6.0.9) comes with Tasky.
Tasky offers the possibility to activate premade profiles. One of them is "Keep Display Awake For Apps". And that one works with my OPPO Phone.
I also tried "Auto-Mute Apps", another profile I couldn't get working. It also works fine.
To switch between Tasker and Tasky you just have to click on the "Three-Dots-Button" in the right top corner. It's not like switching apps but using different user interfaces.
Good luck!
- Sorry to say, but this seems to work for some apps and not for others. But at least sometimes it does work.
Thanks for replying back to this thread to inform me. I tried it and it works for the app I was trying to make it work for which is good! Makes it so much easier now.

Categories

Resources