Need help in setting up a profile and task to turn off do not disturb. Ideally with a timer that I can set for hours or minutes.
The do not disturb action is in the audio category. You can create a task that turns it on (no interruptions, allow alarms, priority) or off (allow all).
To create a timer function, look at this NotEnoughTech article.
Related
On the portal news on 2016-03-11 (thanks to @MishaalRahman for this).
This profile requires AlarmPad (either free or Pro version) and will activate your own Night Mode by setting an alarm.
You have to go to work the next morning, are sleeping, dreaming of the ones/things you love and then – BEEEEEEP BEEEEEEP BEEEEEEP – getting woken up by some more or less (most likely less) funny message by one of your friends. Awesome, right? No way… But this comes to an end right now.
Use Alarm Pad in combination with Tasker to set up a Night Mode, where you won’t get disturbed by any loud notification anymore. Activating an alarm will automatically set your phone into silence mode during a specific time, only the alarm is allowed to wake you up. When you dismiss the alarm, the Night Mode will turn itself off automatically. Cool, eh?
So, what do we need? First of all, you have to install AlarmPad (which is a great and customizable alarm clock app with native Tasker integration). Download it by following the above inserted Play Store link and continue with Tasker. Let’s start.
1. First, set up a profile called “Alarm set”. This will set a variable %ALARM to true if the alarm has been set. We need this variable to determine whether an alarm is currently set or not.
Use Event -> Plugin -> AlarmPad and select the Edit button. Choose “Alarm set” and confirm it by clicking the check mark on top right (OPTIONAL: you can choose a specific alarm for this by selecting “Restrict alarm” and then choosing the desired alarm).Create a new task and name it (for example) “Set Alarm VAR”. Create a new variable %ALARM and set it to true.Add Audio->Alarm Volume and set it to your desired value (maximum, if you tend to sleep very deep).Now you are done. You can optionally add a toast notification to verify that the task has been executed, for example Alert -> Flash -> Text “Alarm set”.
2. Create a new profile called “Alarm disabled”. This will set %ALARM to false if the alarm gets disabled manually.
Use Event -> Plugin -> AlarmPad and select the Edit button. Choose “Alarm disabled” and confirm it by clicking the check mark on top right.Create a new task and name it (for example) “Reset Alarm VAR”. Set variable %ALARM to false.Add Audio->Alarm Volume and set it to your desired default alarm value when being outside of your house.Now you are done with it. You can optionally add a toast notification to verify that the task has been executed, for example Alert -> Flash -> Text “Alarm disabled”.
3. Create a new profile called “Alarm playing”. This will set %ALARM to false if the alarm is fired and manually disabled.
Use Event -> Plugin -> AlarmPad and select the Edit button. Choose “Alarm triggered” and confirm it by clicking the check mark on top right.Create a new task and name it (for example) “Reset Alarm VAR”. Set variable %ALARM to false.Add Audio->Alarm Volume and set it to your desired default alarm value when being outside of your house.Now you are done with it.
4. Create a new profile “Night Mode”. This will set your device into silent mode during a specific time interval when an alarm is set.
Use State -> Variables -> Variable Value and enter %Alarm ~ true. Return to your profile and select a new task which you call “Night Mode on”.Add Task -> Wait -> 1 minute. Return to the task menu.Add Task -> If and select “%ALARM ~ true”. Return to the task menu.Add Display -> Display Brightness and set it to 0. Return to the task menu.Add Audio -> Notification Volume and set it to 0. Repeat the same for Media Volume and Ringer Volume. Add Audio -> Alarm Volume and set it to your desired value. This will ensure that no other profile which might be triggered between setting the alarm and starting the Night Mode task has reset your alarm volume.At last, add Task -> End If.That’s it.
5. OPTIONAL: Return to the profile screen and add a trigger event to the profile Night Mode: Time.
Here you can define when the Night Mode will start and when it will end, for example, you set your alarm at 8 p.m., but go to bed at 10 p.m. and don’t want to miss messages until 10 p.m. because of reasons. Then select 10 p.m. as start time and whatever end time you want, for example 10 a.m. (don’t worry, if the alarm is triggered before 10 a.m., the Night Mode will automatically being deactivated and you can receive audio notifications again).
6. Create a new exit task for the profile “Night Mode” and call it “Night Mode off”. This will reset your device from silent mode after the alarm is triggered or manually disabled.
Add Task -> Wait -> 1 minute. Return to the task menu.Add Plugin ->AlarmPad and select AlarmPad perform Action” and select “Disable” (OPTIONAL: select the alarm that is to be disabled). Confirm and return to the task menu.Add Display -> Display Brightness and set it to your default brightness. Return to the task menu.Add Audio -> Notification Volume and set it to your default volume value. Repeat the same for Media Volume and Ringer Volume.That’s it.
Now we have set up Tasker to toggle your own Night Mode automatically depending on your alarm’s status.
That’s all, folks. Have a nice dreaming :good:
I' not sure if i understand it very well. How can we set the audio volumes (notifications, ringer and media) in silence mode only at one specifit hore (21:00 pe). When i disable the alarm the volumes are set to the default configuration that we have on the phone? And how do they turn off (silent mode) again?
joguirian said:
I' not sure if i understand it very well. How can we set the audio volumes (notifications, ringer and media) in silence mode only at one specifit hore (21:00 pe). When i disable the alarm the volumes are set to the default configuration that we have on the phone? And how do they turn off (silent mode) again?
Click to expand...
Click to collapse
Setting an alarm will trigger the Night Mode profile (and its related task Night Mode on, which sets all notification/media/ringer volumes to 0). If you have set up a time-trigger (for example between 10 p.m. and 10 a.m.) the task will only being executed within this time frame. For example, if you set your alarm at 8 p.m. and have the given time frame from 10 p.m. to 10 a.m., the Night Mode will only being executed if %ALARM is true and it is past 10 p.m. and before 10 a.m. of the following day.
Disabling the alarm will trigger the exit task (Night Mode off) of the Night Mode profile, thus all volumes are set back to their (pre-defined in exit task Night Mode off)volume level.
If you want to silence your phone at 9 p.m., just use a time trigger for the profile and set 9 p.m. as start and whatever you like as end time.
orville87 said:
Setting an alarm will trigger the Night Mode profile (and its related task Night Mode on, which sets all notification/media/ringer volumes to 0). If you have set up a time-trigger (for example between 10 p.m. and 10 a.m.) the task will only being executed within this time frame. For example, if you set your alarm at 8 p.m. and have the given time frame from 10 p.m. to 10 a.m., the Night Mode will only being executed if %ALARM is true and it is past 10 p.m. and before 10 a.m. of the following day.
Disabling the alarm will trigger the exit task (Night Mode off) of the Night Mode profile, thus all volumes are set back to their (pre-defined in exit task Night Mode off)volume level.
If you want to silence your phone at 9 p.m., just use a time trigger for the profile and set 9 p.m. as start and whatever you like as end time.
Click to expand...
Click to collapse
ok, understood
Thanks
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 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
I need to disable notification sound only from selected app (For example what's app) when Bluetooth headset is connected. Is it possible with tasker? If yes please tell me how.......
Thanks in advance
my personal thoughts, this is so complicating and might not worth it... unless you have a real good reason for doing it, I would not recommend trying to implement this.
in case you still want this, you can try:
- install autoinput or something similar to mimic your actions in turning off sounds in those apps
- link those actions to a Tasker profile with Bluetooth conditions
I imagine you would need to have screen turned on for the actions to be carried out
This should not be very difficult.
You should set a profile to create a variable When bluetooth is connected.
Then a profile when the app is running, the task within would be: set a variable to memorize current media volume, then "if bluetooth connected, set media volume to zero".
Exit task would be: set volume media to original media volume.
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.