Dismiss/snooze alarm with voice -Send intent not workinf

458 views
Skip to first unread message

Ken Isaacson

unread,
Dec 3, 2017, 7:11:29 PM12/3/17
to Tasker
New to Tasker. Downloaded profile to snooze/dismiss alarm with voice from http://tasker.wikidot.com/alarm-dismiss-snooze-with-voice

It appears to send intent to snooze or dismiss, but all that happens is I'm flipped to the page that allies me to set various alarms on my clock. But no snooze or dismiss.

Anyone have success with this profile d/l?

Thanks!

Ken

Rich D

unread,
Dec 3, 2017, 7:24:27 PM12/3/17
to Tasker Google Groups Post


It appears to send intent to snooze or dismiss,  but all that happens is I'm flipped to the page that allies me to set various alarms on my clock. But no snooze or dismiss.

Anyone have success with this profile d/l?

Does it use the default device android alarm clock?

Search for thread - "Alarm Clock Event - not working"  in this forum. Pent is the developer. 

Post back if that does not seem to be the issue. 

Ken Isaacson

unread,
Dec 3, 2017, 7:34:42 PM12/3/17
to Tasker
Yes, I'm using the native clock. The alarm event is recognized, and the intent is sent. As I say, it results only in showing the clock screen which would let me set alarms or timers.

Thanks for quick response...

Ken

Rich D

unread,
Dec 5, 2017, 5:05:09 AM12/5/17
to Tasker Google Groups Post


Yes, I'm using the native clock. The alarm event is recognized, and the intent is sent. As I say, it results only in showing the clock screen which would let me set alarms or timers.


This is working on my device. it will dismiss the alarm and open the alarm set page of the alarm app. 

I have a pixel c tablet  /  Android 8.0 / Tasker Version: 5.1b1m

Could you post your exported profile description along with device / android and tasker versions. 



To post your profile or task here...  Long press on the profile or task name / ( 3 dot menu with 4.0+ ) export / export "DESCRIPTION" to clipboard (not XML)

Any linked tasks will be exported with the profile they are linked to..

To be able to export, The beginner mode needs to be off and the profile needs to be named by you (Not the Tasker listed name.  Tasker will list your profile with the context name if you have not given it one).



Ken Isaacson

unread,
Dec 5, 2017, 8:30:25 AM12/5/17
to Tasker
Thanks. There are 4 associated profiles:

One:

Profile: Alarm Start (6)
Event: Alarm Clock [ Label:* ]
Enter: Anon (5)
A1: AutoVoice Continuous [ Configuration:
Starting continuous voice recognition without headset
Persistent Notification: false Timeout (Seconds):0 ]
A2: Variable Set [ Name:%ALARM To:1 Recurse Variables:Off Do Maths:Off Append:Off ] 

Two:

 

Profile: Alarm Snooze (10)
Event: AutoVoice Recognized [ Configuration:Command: "snooze"
Source: continuous
Not on Normal: true ]
State: Variable Value  [ %ALARM eq 1 ]
Enter: Anon (9)
A1: AutoVoice Continuous [ Configuration:
Stopping continuous voice recognition  Timeout (Seconds):0 ]
A2: Send Intent [ Action:android.intent.ACTION.SNOOZE_ALARM Cat:Default Mime Type: Data: Extra:android.intent.extra.alarm.SEARCH_MODE:android.all Extra: Extra: Package: Class: Target:Activity ]
A3: Variable Clear [ Name:%ALARM Pattern Matching:Off Local Variables Only:Off ]

Three:

Profile: Alarm Done (12)
Event: Alarm Done
Enter: Anon (11)
A1: AutoVoice Continuous [ Configuration:
Stopping continuous voice recognition
Persistent Notification: false Timeout (Seconds):0 ]
A2: Variable Clear [ Name:%ALARM Pattern Matching:Off Local Variables Only:Off ]

Four:

Profile: Alarm Stop (16)
Event: AutoVoice Recognized [ Configuration:Command: "stop"
Last Cmd Id Regex: false
Last Cmd Id Invert: false
Source: continuous
Not on Normal: true
Not on Continuous: false
Contains All: false
Use Regex Replacements: false
Do Google Now Search: false ]
State: Variable Value  [ %ALARM eq 1 ]
Enter: Anon (15)
A1: AutoVoice Continuous [ Configuration:
Stopping continuous voice recognition
Persistent Notification: false Timeout (Seconds):0 ]
A2: Send Intent [ Action:android.intent.action.DISMISS_ALARM Cat:Default Mime Type: Data: Extra:android.intent.extra.alarm.SEARCH_MODE:android.all Extra: Extra: Package: Class: Target:Activity ]
A3: Wait [ MS:0 Seconds:1 Minutes:0 Hours:0 Days:0 ]
A4: Go Home [ Page:0 ]
A5: Variable Clear [ Name:%ALARM Pattern Matching:Off Local Variables Only:Off ]

 I have a Samsung Galaxy S7 / Android 7.0 / Tasker Version 5.0u7m / Clock Version 7.0.72.9

Thanks for your help!

Ken 

 

Ken Isaacson

unread,
Dec 9, 2017, 9:15:47 AM12/9/17
to Tasker
Any ideas, anyone?

Thanks!

Rich D

unread,
Dec 9, 2017, 2:26:28 PM12/9/17
to Tasker Google Groups Post
Sorry, lost track of this one.

See attached scene shots. Is this the same  clock app and same version number?
Screenshot_20171209-142410.png
Screenshot_20171209-142413.png

Ken Isaacson

unread,
Dec 10, 2017, 11:08:55 AM12/10/17
to Tasker
That's one if them (from Google store). Also have clock from Galaxy Apps. Ver. 7.0.72.9.

Have tried on both.

Thanks!

Rich D

unread,
Dec 10, 2017, 8:46:46 PM12/10/17
to Tasker Google Groups Post

That's one if them (from Google store). Also have clock from Galaxy Apps. Ver. 7.0.72.9.

Have tried on both.

Looks like it might be a device specific issue. I would try to get it to its simplest form for testing purposes. Try making a task like this .
dismiss alarm (389)
A1: Wait [ MS:0 Seconds:32 Minutes:0 Hours:0 Days:0 ] 
A2: Send Intent [ Action:android.intent.action.DISMISS_ALARM Cat:Default Mime Type: Data: Extra:android.intent.extra.alarm.SEARCH_MODE:android.all Extra: Extra: Package: Class: Target:Activity ] 


Then set your alarm to go off in 2 min and manually start the task just before the alarm goes off. (a longer wait time would make it easier) and see if it dismisses the alarm. 

Ken Isaacson

unread,
Jan 8, 2018, 10:42:05 AM1/8/18
to Tasker
Rich,

I've been distracted by other things, so I haven't played with the profile in a while. Here's what I've done since the last time.

I've had no success with the send intent command. But I've had limited success with autoinput clicking on specified x and y coordinates. In other words, when the alarm turns on, I determined the x/y coordinates for clicking on "snooze". That seems to work.

HOWEVER, I've run into a different sort of problem: It seems that when autovoice continuous is triggered, the alarm gets immediately muted. The alarm is still going (as evidenced by the banner across the top of the screen continuing to show the  snooze or dismiss options), but there's no sound. If I say "snooze," the banner vanishes and the alarm is snoozed. But, as I said, there's no sound.

I narrowed it down to autovoice continuous as the trigger: In the Alarm Start profile, I inserted a 10 second "wait" as the first task, Then I inserted a "Say" command asking "Snooze or stop?" Then comes the start of autovoice continuous. When the alarm sound, it plays for 10 seconds, I hear "Snooze or stop?" and before I do anything else, the alarm instantly mutes. Triggered, obviously by autovoice continuous being activated. As I said, I can then say "snooze," and the alarm will snooze.

Any ideas why the alarm mutes when autovoice is activated?

Many thanks!

Best,
Ken

Rich D

unread,
Jan 8, 2018, 4:41:58 PM1/8/18
to Tasker Google Groups Post



I've had no success with the send intent command. But I've had limited success with autoinput clicking on specified x and y coordinates. In other words, when the alarm turns on, I determined the x/y coordinates for clicking on "snooze". That seems to work.

If you are happy with that then stick with it. If you still want to pursue the intent method you could try 'gentle alarm'. I have been using this for years with intents for snooze and dismiss and it has never failed me. Let me know if you want me to dig them out? 



HOWEVER, I've run into a different sort of problem: It seems that when autovoice continuous is triggered, the alarm gets immediately muted.

Any ideas why the alarm mutes when autovoice is activated?

Sorry, No.
 Best bet would be to ask the auto voice developer if anything can be done with that. 

Reply all
Reply to author
Forward
0 new messages