Silent mode with emergency exceptions - very weird problem

1,185 views
Skip to first unread message

Matt R

unread,
May 23, 2013, 1:41:08 PM5/23/13
to tas...@googlegroups.com
First, you can probably get rid of the %SILENTMODE variable and just use the built-in in %SILENT variable. Second, many people seem to have problems turning off silent mode when the phone is already ringing. I think the best solution is instead of trying to disable silent mode, just play a ringtone via Tasker's play ringtone or play music action and select a stream that doesn't get silenced, like alarm or media.

Matt

Mihai

unread,
May 23, 2013, 3:39:34 PM5/23/13
to tas...@googlegroups.com
I have a similar profile.

I don't do "Silent mode: off".
Just setting the ringer volume is sufficient !
After Ringer Volume, I put a wait 2 minutes (so it does not silence the ringer while the phone is ringing), then I enable Silent Mode again.


On Wednesday, 22 May 2013 08:03:25 UTC+3, Danny Ben-Yakar wrote:
Hi Everyone
I am a newbie and in the learning process of this app.
I am trying to define a situation that when in certain conditions (e.g. night time) the phone (Galaxy S3) goes into silent mode, except for when a certain call number that I define rings. In this case the phone should ring.

So I defined 2 profiles, Silent profile and Caller profile as follows:

Profile Silence On when sleep at certain hours:
task:
1. Silent Mode: Vibrate
2. Variable Set %SILENTMODE to yes

On Exit:
1. Silent Mode: Off
2. Ringing Volume to 7
3. Variable Set %SILENTMODE to no

Profile Emergency Caller (single phone number)
Event -> Phone -> Phone ringing -> Caller (single caller)
task:
If %SILENTMODE ~ yes
1. Silent Mode: Off
2. Ringing Volume to 7
End if

Now, two weird things happen:
1. When the emergency caller rings and the phone is silent, the phone rings which is great. But this happens only once. So the next time he rings the phone will not ring anymore.
    What is more weird is that I can see in the notification bar that when the emergency caller rings (second time), Silent mode icon disappears, yet I cannot hear the ring.
2. The other thing that is strange to me is that sometimes, in order to reset the variables, I need to disable Tasker and re-enable it, or even restart my device. Is there a better way of doing this?

Regards
Danny

UncleMike

unread,
May 23, 2013, 4:54:07 PM5/23/13
to tas...@googlegroups.com
Matt is right about some devices not responding to changes in silent mode or ringer volume when the phone is already ringing.  If you have such a device, then Matt's suggestion of using Play Ringtone with a different stream is probably the best way to do what you want.  If you go this way, you should also check the volume on that stream and adjust it if necessary.

But if it works once, I don't think you have such a device.  But something is missing in your information.  Since you're using an event to change Silent Mode when the phone rings, Silent Mode will never get set back to Vibrate after the call is complete.  What should be happening (based on what you've presented) is that once the emergency contact calls, ALL calls should ring.

Can you export both profiles (as description) and post them here for further troubleshooting?

News only

unread,
Dec 13, 2013, 9:26:18 AM12/13/13
to tas...@googlegroups.com
Hi all im kind of new here sorry if my question was ask already if yes please show me where

I have Galaxy s4
I import the silent mode for @ night & also the emergency caller xml files

Now the silent mode works great when i plug in the phone to the ac it automatically gose silent but when a caller called it's not ringing
I import it from the Tasker Web site

Rich D

unread,
Dec 13, 2013, 9:38:08 AM12/13/13
to Tasker Google Groups Post

> Now the silent mode works great when i plug in the phone to the ac it automatically gose silent but when a caller called it's not ringing
> I import it from the Tasker Web site

If you go in and edit the task from the task edit screen you should find a action "music play"  you will need to delete the selected file in the first option then hit the mag glass on the right side, in the browser locate a ringtone or media file you want to play for emergency calls..

Could you post your profile here...  Long press on the profile name / ( 3 dot menu with 4.0+ ) export / export description to clipboard (not XML)

The beginner mode needs to be off and the profile needs to have a name to be able to export. 

onlynews11206

unread,
Dec 13, 2013, 12:29:31 PM12/13/13
to tas...@googlegroups.com

Profile: Sleep mode (20)
Enforce: no
State: Power [ Source:AC ]
Time: From 22:00 Till 07:00
Enter: Anon (18)
A1: Silent Mode [ Mode:On ]
A2: Variable Set [ Name:%SLEEPMODE To:1 Do Maths:Off Append:Off ]

Exit: Anon (19)
A1: Silent Mode [ Mode:Off ]
A2: Variable Clear [ Name:%SLEEPMODE Pattern Matching:Off ]

Profile: Sleep mode emergency numbers (22)
Enforce: no
Event: Phone Ringing [ Caller:* ]
Enter: Anon (21)
A1: If [ %SLEEPMODE = 1 ]
A2: Silent Mode [ Mode:Off ]
A3: Wait [ MS:0 Seconds:0 Minutes:5 Hours:0 Days:0 ]
A4: Silent Mode [ Mode:On ] If [ %SLEEPMODE = 1 ]
A5: End If

--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/glLQTPNhYPc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
Visit this group at http://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/groups/opt_out.

onlynews11206

unread,
Dec 13, 2013, 12:35:48 PM12/13/13
to tas...@googlegroups.com

Tnx For you help i just upload my profile

Also i would to know if i can make a different profile for the weekends

On Dec 13, 2013 9:38 AM, "Rich D" <ricp...@gmail.com> wrote:
--

Rich D

unread,
Dec 13, 2013, 12:46:10 PM12/13/13
to Tasker Google Groups Post

Ok, that is not the profile I thought it was so disregard the above comments..

The most likely reason; for it not working is on "some" devices you can not change the volume level once the phone has started ringing.

The easiest way to check is to put a flash action in task just after A2 as outlined below. Then ckeck it with a incoming call and see if it flashes when the phone is ringing..

> Profile: Sleep mode emergency numbers (22)
> Enforce: no
> Event: Phone Ringing [ Caller:* ]
> Enter: Anon (21)
> A1: If [ %SLEEPMODE = 1 ]
> A2: Silent Mode [ Mode:Off ]

// put a flash action here//

Rich D

unread,
Dec 13, 2013, 4:54:54 PM12/13/13
to Tasker Google Groups Post

You replied to sender in your last post, I have copied it here. Please keep the posts in the group, So others might be helped and others can help.

>I would like to know if you could give more Pacific help

>Do i need to create a new profile?

My guess would be yes.

You are going to need a better understanding of tasker to be able to make these things work.

If you have not done so already please watch this vidio

http://www.youtube.com/playlist?list=PLjV3HijScGMynGvjJrvNNd5Q9pPy255dL

And read the pocketables beginners guide (menu / info / guides)  

> Profile: Sleep mode emergency numbers (22)  (what is that mean) //  it is the profile name and a number for the profile assigned by tasker //
> Enforce: no (where can i find this) // It is in the profile properties

> Event: Phone Ringing [ Caller:* ]

> Enter: Anon (21)  (what is this)  // It is the name of the task,  This particular task was not given a name so tasker assigned it the anonymous name //


> A1: If [ %SLEEPMODE = 1 ]
> A2: Silent Mode [ Mode:Off ]

Rich D

unread,
Dec 13, 2013, 5:01:21 PM12/13/13
to Tasker Google Groups Post

This is a profile that I use.

Profile: Emergency Calls (39)
State: Call [ Type:Incoming Number:C:FAV ]
State: Variable Value [ Name:%VOLR Op:Maths: Less Than Value:5 ]
Enter: Play Ringtone (40)
A1: Media Volume [ Level:13 Display:Off Sound:Off ]
A2: Music Play [ File:/system/media/audio/ringtones/Ring_Digital_02.ogg Start:0 Loop:On Stream:3 Continue Task After Error:On ]

Exit: Music Stop (42)
A1: Music Stop [ Clear Dir:Off ]

Message has been deleted
Message has been deleted

FC NY

unread,
Oct 26, 2014, 5:06:29 AM10/26/14
to tas...@googlegroups.com
This works excellent htc-one-max
2 separate profiles, 1 sets a variable, 1 matches caller with an 'if'. Give it a try.


Profile: Sleep mode (7)


Time: From 22:00 Till 07:00

State: Power [ Source:Any ]
Enter: Sleepmode (8)


A1: Silent Mode [ Mode:On ]
A2: Variable Set [ Name:%SLEEPMODE To:1 Do Maths:Off Append:Off ]

Exit: Awake (9)


A1: Silent Mode [ Mode:Off ]
A2: Variable Clear [ Name:%SLEEPMODE Pattern Matching:Off ]

Profile: Emergency Night Call (15)
Event: Phone Ringing [ Caller:your caller]
Enter: Emergency Call (19)
A1: If [ %SLEEPMODE ~ 1 ]


A2: Silent Mode [ Mode:Off ]

A3: Wait [ MS:0 Seconds:30 Minutes:2 Hours:0 Days:0 ]

A4: Silent Mode [ Mode:On ]

A5: End If

Danny Garcia

unread,
Oct 26, 2014, 12:26:09 PM10/26/14
to tas...@googlegroups.com

I have been messing around a bit with Tasker and would like to know if there is a way to have a variable hold its value for a certain amount of time. 

Most tasker setups have a contact list they add to allow only certain callers to turn off silent mode.

I would like to be able to add an emergency type feature but have it for a repeat caller within a certain time span.

Example : My boss calls from a Different number then one I have in my contacts (so I cant add that to the exceptions in tasker) -- but he call from that number 3 times in a row within 5 minutes.

I was thinking of setting the variable with the %CNUM but only want that variable to have that information for a set number of time.

set %missedcall = 0 after 5 minutes

if %missedcall = 0
then set %lastcall =0


if %lastcall = %CNUM
then %missedcall + 1
else %lastcall =%CNUM

if %missedcall = 2
then Silent mode [off]

Something like that....

Toexplicit

Rich D

unread,
Oct 26, 2014, 3:18:44 PM10/26/14
to Tasker Google Groups Post


On Oct 26, 2014 1:56 AM, "Danny Garcia" <toexp...@gmail.com> wrote:
>
>

> Example : My boss from a Different number then one I have in my contacts -- but he call from that number 3 times in a row within 5 minutes.

This is a bit confusing. Do you want it to ring through if any number calls 3 times in a row within 5 min? 

Danny Garcia

unread,
Oct 26, 2014, 4:07:59 PM10/26/14
to tas...@googlegroups.com
Yes any number (but it must be the same number that calls 3 times in a row)

Not just 3 calls within the time limit.

Hope that clearifies it.

Rich D

unread,
Oct 26, 2014, 4:37:33 PM10/26/14
to Tasker Google Groups Post

> set %missedcall = 0 after 5 minutes

You could have a profile that fires on %missedcall=1 then wait 5 min then set %missedcalls to 0.

But i would prefer to keep it all in the same task, using %TIMES (epoch time).. Something like this.

>
> if %missedcall = 0
> then set %lastcall =0
>
>
> if %lastcall = %CNUM
> then %missedcall + 1

Variable set %Starttime To: %Times ; If %Missedcall =1

> else %lastcall =%CNUM
>
> if %missedcall = 2

If %TIMES-%Starttime> (5*60)
  Variable set %Missedcall TO: 0
   Stop
End if

> then Silent mode [off]
>
> Something like that....

Will need tweaking but that should give you the idea...

Reply all
Reply to author
Forward
0 new messages