Alarm Fired, Snoozed and Dismissed Triggers

Post your feature requets for new triggers, conditions, actions and other improvements.

Moderator: Martin

Locked
athooya
Posts: 11
Joined: 06 Oct 2016 13:30

Alarm Fired, Snoozed and Dismissed Triggers

Post by athooya » 18 Sep 2017 14:16

I would like to request "Alarm fired", "Alarm snoozed" and "Alarm dismissed" triggers.

When the alarm goes off, I manually dismiss it, then the "Alarm dismissed" is triggered.

It should NOT be triggered when I "dismiss" EARLY a set alarm before it goes off (that's deleting an alarm ... not the same thing).
It should only be triggered when it is dismissed at the time that the alarm has already sounded off.
Last edited by athooya on 25 Sep 2017 15:45, edited 2 times in total.

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Alarm Dismissed Trigger

Post by Desmanto » 18 Sep 2017 16:09

Do you mean the alarm should happen and then you dismiss it, only then it triggers the flow? If that so, you can try Trigger General Broadcast : com.android.deskclock.ALARM_DISMISS if the clock is stock android. For other clock app, please match with the package name or corresponding broadcast.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

athooya
Posts: 11
Joined: 06 Oct 2016 13:30

Re: Alarm Dismissed Trigger

Post by athooya » 18 Sep 2017 18:41

The General Broadcast way does not work.

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Alarm Dismissed Trigger

Post by Desmanto » 19 Sep 2017 03:49

I still don't understand the difference between dismiss vs finish. You can try General broadcast : com.android.deskclock.ALARM_DONE . I 've tried at mine. Dismiss the alarm and the flow got triggered.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

athooya
Posts: 11
Joined: 06 Oct 2016 13:30

Alarm Fired, Snoozed and Dismissed Triggers

Post by athooya » 25 Sep 2017 15:31

The General Broadcast does not work for my phone and my friend's phone.

I found the "ClockTask" plugin that works. The plugin allows for setting an alarm and then has "Alarm Fired", "Alarm Snoozed" and "Alarm Dismissed" triggers that work on the set alarm.

It would be nice if Martin can do the same: build into Automagic these triggers for the "set alarm" action.
There is already a "Set Alarm" action in AM. There should be "Alarm Fired", "Alarm Snoozed" and "Alarm Dismissed" triggers for it.

I prefer to have them built-in in AM than to use a plugin or general broadcast.

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Alarm Fired, Snoozed and Dismissed Triggers

Post by Desmanto » 25 Sep 2017 16:11

What is your and your friend's phone? Non AOSP-ish ROM tends to use vendor's own clock app. That will cause the broadcast not sent.
A built-in function would work more reliable. But you need to wait until it is implemented.

@Martin : Here is the link to ClockTask, so you can check it out.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

athooya
Posts: 11
Joined: 06 Oct 2016 13:30

Re: Alarm Fired, Snoozed and Dismissed Triggers

Post by athooya » 25 Sep 2017 16:37

General Broadcast is not reliable.
That's why a request was made to have the triggers built-in.

niftea
Posts: 9
Joined: 27 Oct 2016 18:31

Re: Alarm Fired, Snoozed and Dismissed Triggers

Post by niftea » 12 Oct 2017 16:56

+1
for all three triggers.

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Alarm Fired, Snoozed and Dismissed Triggers

Post by Desmanto » 16 Oct 2017 16:30

Found out something new. At my phone, the alarm clock is Clock (com.android.deskclock). When the alarm fired, dismiss or snoozed, it will make announcement to the system. Kinda like general broadcast, but more reliable.
Alarm fired : "Swipe right to dismissSwipe left to snooze"
Alarm snoozed : "Snooze"
Alarm dismissed : "Dismiss"

You can use Trigger UI Event, type Announcement. Filter the package to your alarm clock app, Text matches glob * (match everything). Put debug dialog.
Set your alarm one minute from now, wait until it is triggered and check the variable {text}. Try to snooze and dismiss it, and check the {text} also.
You can then use it as the trigger now.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

akela
Posts: 6
Joined: 30 Oct 2018 18:03

Re: Alarm Fired, Snoozed and Dismissed Triggers

Post by akela » 19 Dec 2018 13:45

+1
Build in AM. No third-party plugin. No broadcast workaround.

Locked