Can Tasker differentiate between silent mode and vibrate mode?

734 views
Skip to first unread message

Travis Stinebaugh

unread,
Jan 31, 2014, 1:32:18 PM1/31/14
to tas...@googlegroups.com
Hello, I'm trying to write a task in Tasker that will allow me to change the system volume from 0 to 7 when a starred contact is calling (which I already configured in a profile), but only if the phone is in silent mode and not vibrate mode. Is there any variable I can use as an if condition that would differentiate between vibrate and silent mode?
Currently the task looks like this:
If system volume = 0
   system volume = 7
   wait 45 seconds
   system volume = 0

I'd like it to be something like this:
If system volume = 0
   If vibrate = disabled
      system volume = 7
      wait 45 seconds
      system volume = 0

Does such a variable exist? Thanks in advance!

Matt R

unread,
Jan 31, 2014, 1:38:43 PM1/31/14
to tas...@googlegroups.com
The variable is %SILENT. You can look in the user guide (menu -> info -> user guide) for more info (and even more variables!).

Matt

Travis Stinebaugh

unread,
Jan 31, 2014, 1:41:12 PM1/31/14
to tas...@googlegroups.com
Sorry, I didn't have my phone with me and didn't get the exact sequence of variables I'm using.
I am actually already using %SILENT in my profile.

The correct code is:
If %SILENT is set
   System volume = 7
   Wait 45 seconds
   System volume = 0

It is still triggered in vibrate mode though.

Bob Hansen

unread,
Jan 31, 2014, 1:51:38 PM1/31/14
to tas...@googlegroups.com
%SILENT is always set to value. Check the user guide for info on the %SILENT variable as Matt suggested.

Travis Stinebaugh

unread,
Jan 31, 2014, 1:59:13 PM1/31/14
to tas...@googlegroups.com
Oh okay, I got it working. The correct variable condition was If %SILENT ~R on
Thanks for the quick help guys!

Matt R

unread,
Jan 31, 2014, 2:39:18 PM1/31/14
to tas...@googlegroups.com
You don't need to do a regex match.  Just do a regular match.

Matt
Reply all
Reply to author
Forward
0 new messages