r/tasker • • 25d ago

Help Tasker Help with Ringer Automation.

I'm trying to figure this app out.

I have never used it before and don't have a clue how to set it up.

What I want to do is have it set my ringer to max volume while I sleep when DND comes on so only important calls from my favorite contacts will wake me up.

Then in the morning when DND comes off set my ringer back to vibrate.

Anyone able to help me set this up by chance?

1 Upvotes

18 comments sorted by

1

u/danguno 25d ago

This project on TaskerNet is close to what you're looking for, but it gets triggered by time of day and charging state. Off the top of my head I'm not sure if DND can be a trigger itself

you'd have to add the ringer volume action yourself to the enter task as I don't see it, but this looks like a good starting point

https://taskernet.com/shares/?user=AS35m8nn30g4sHsBnki3kARyh4IBj%2BkHodZ920MUBYf6mWSq9RIlkAstR0MYJ0q650RHlY4%3D&id=Project%3AImproved+DND+when+Charging+At+Night

1

u/Captainnow79 25d ago

I have DND setup on my phone to be on only at night.
But the issue is I usually keep my phone on vibrate all day and I don't want to miss any important\emergency calls at night.

I use to use an app called peacetime but it seems to have stopped working.

I just would like to mainly automate that say at 10 pm my phone ringer is max volume and then at say 7 am the ringer is set back to vibrate.

I'll take a look at what you provided and see if that helps. I'm completely new to this application so everything is new to me with it.

1

u/danguno 25d ago

Yeah check it out, if it's not quite what you're looking for then you'll want to set a profile trigger for time and set start/end times

After you back out of the profile trigger it'll prompt you for an entry task, select a audio > ringer volume, and crank it to max

Then from the profile page long press the ringer voulme task you just created and click Add Exit Task, set the ringer volume for non DND hours

If you get stuck let me know

1

u/Captainnow79 25d ago

To be honest already stuck. I don't have a clue how to do any of that.

Still trying to figure out how to even view/import the item you linked to see what it does and how it does it to try and learn more.

I'm completely new to this.

1

u/Sate_Hen 25d ago

Tasker basics.

There are:

  • Actions - (turn on wifi, send SMS, etc)
  • Tasks - These are made up of one or more actions
  • Profiles - Triggers that can be set up to activate tasks (Wifi connected, Incoming call, time of day etc)
  • Scenes - Advanced stuff that allows you to create pop up menus
  • Variables - Allows you to set global variables you can access later (advanced)

You can access these screens from the top bar

If you click on that link and then click the import button it should open tasker automatically and you can see what it does

1

u/Captainnow79 25d ago

Ok. Thanks for those basics. That helps give me some idea how things are working. Much appreciated.

1

u/Exciting-Compote5680 25d ago

This should do it:

Profile: DND based Ringer Volume
    Event: Variable Set [ Variable:%INTERRUPT Value:* User Variables Only:Off ]



Enter Task: Anon

A1: If [ %INTERRUPT ~ priority ]

    A2: Ringer Volume [
         Level: 7 ]

A3: Else

    A4: Ringer Volume [
         Level: 0 ]

A5: End If

A6: Flash [
     Text: Interrupt mode: %INTERRUPT
     Ringer Volume set to: %VOLR
     Long: On
     Tasker Layout: On
     Continue Task Immediately: On
     Dismiss On Click: On ]


https://taskernet.com/shares/?user=AS35m8nOXvBeFIxaCI5%2BZWD5L9oLRd3PVq%2BdjQuYD1oZ%2Bci%2Banb0FpA5SznT4oBmkd7vgKrG&id=Profile%3ADND+based+Ringer+Volume

1

u/Captainnow79 25d ago

Ok. I think I have imported it. I see that under my profiles.

Very cool if this will do what I'm wanting. I wish I understood all that you setup.

Thank you very much. I'll have to see if tonight if it works.

1

u/Exciting-Compote5680 25d ago

Ok, quick explanation. The profile (the thing that triggers the task/actions) has a 'Variable Set' event context. This 'listens' for any changes to the value of the specified variable. In this case %INTERRUPT, which is a built-in global variable (see https://tasker.joaoapps.com/userguide/en/variables.html) that represents the interrupt mode (whether or not interruptions are allowed, can be 'none' (fully silent), 'priority' (some callers/apps can interrupt) or 'all' (normal state)). Whenever the DND mode is changed, the variable changes, and the task is triggered. In the task, there is an 'If' condition (action 1). If the value of %INTERRUPT matches 'priority' it will execute action 2 (set ringer volume to 7), if not ('Else') action 4 is executed (set ringer volume to 0). The last action (6) shows a small message with the current interrupt mode and volume. If you don't want that, long press the action and disable (tap the power icon).

This link is a handy reference: https://tasker.joaoapps.com/userguide/en/index.html

1

u/Captainnow79 25d ago

Oh nice. So sounds like if I go in to my settings and set DND to come on at a different time it should automatically detach DND mode turned on and set my ringer out of vibrate. Very nice.

1

u/Captainnow79 24d ago

Well not sure why yet but doesn't look like this is working. Ringer volume didn't change.

1

u/Exciting-Compote5680 24d ago

Ok, create a new (test) task with 1 action: Ringer Volume. In the Tasks tab, tap the plus button and enter a name. To add actions, tap the plus button and start typing in the 'Filter' field. Try running the task manually (play button bottom left) with different values, see if the ringer volume changes accordingly. If that works, the problem is elsewhere.

1

u/Captainnow79 24d ago

Yes that works.

Now if I am understanding your first setup correctly, you had that trying to watch the phone for if in DND mode.

Now is there away to setup if between say 9 pm and 7 am set ringer to 0 and if between 7 am and pm set ringer to 15.

I've been goofing with it and I see if like the start of an if statement for a setup like this but I'm not seeing for sure how to select the variable or a format for the value for the variable. Or how to setup a time range.

If no ranges maybe would take more than 1 task to create the full automation, but I'm not sure yet.

I appreciate all your help with this.

1

u/Exciting-Compote5680 24d ago

For that approach, you need a time context. Create a profile, select 'Time', set the 'from' and 'to' time. This will act like a state. Between those times, the profile will be active. With a state profile, you can have an 'enter' and 'exit' task. In one task, set the volume to 0, in the other to whatever maximum volume for your device is (on my devices the ringer volume goes to 7).

1

u/Captainnow79 23d ago

Ok. I think I did that. I created a range for low volume during the day and it had be make/assign a task so I did what you had me do above to test as a task.

Repeated those steps for max volume at night.

1

u/Exciting-Compote5680 23d ago

Just to be clear, you can do this this with 1 profile and 2 tasks (you could also do this with 2 profiles with 1 task each, but that's a bit redundant). Once you have a profile with a linked task, you can long press the task and choose 'Add exit task'. The enter task will be triggered once the time profile becomes active (time inside the range), the exit task will run when the profile is no longer active (time outside the range). 

1

u/Captainnow79 22d ago

I have it working with 2 profiles right now.

When I long press don't get an option for add an exit task.