Trigger Trouble (Display State: On)

Post your questions and help other users.

Moderator: Martin

Post Reply
GlueGuy
Posts: 3
Joined: 22 Nov 2015 20:37

Trigger Trouble (Display State: On)

Post by GlueGuy » 22 Nov 2015 21:18

First, I'm fairly new to Automagic but LOVE it! Thank you for such an amazing tool. :D

I'm struggling with triggering a particular flow. I need it to trigger when the display turns on - whether I turn it on with the power button or it turns itself on via an appointment reminder or alarm. The "Display State: On" trigger works brilliantly and perfectly if I am the one turning the screen on with the power button. However, when my calendar app turns on the screen (with a calendar event alarm) I've been wildly unsuccessful in getting the flow to trigger. Here are the triggers I've tried:

* Calendar Event: All (exactly at start)
* Next Alarm

The calendar app I use is called Pimlical (Pimlical/A). For most appointments, I have it set to sound an alarm 15 minutes before the event and then to alarm every 5 minutes thereafter until I acknowledge it. In Pimlical, when I set the alarm to coincide exactly with the start of the appointment, the flow will generally trigger. However, 5 minutes later if I haven't acknowledged the Pimlical alarm it will turn the display on again and holler-out a reminder. The flow generally won't trigger for such after-the-fact reminders. I need the flow to trigger for all of these events when the screen turns on (when I'm not the one turning it on by mashing the power button).

Any suggestions you have for me would be appreciated. Maybe there is a different trigger that would consistently work regardless of when an alarm sounds, especially if it is an alarm that doesn't perfectly coincide with the scheduled start time of a calendar event? Or maybe there is a trigger like Calendar Event: All (exactly at the start of every reminder) that would be the ticket?

Thank you in advance for your help.

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Trigger Trouble (Display State: On)

Post by Martin » 24 Nov 2015 14:15

Hi,

Thanks. I'm glad you like Automagic.

Trigger Display State: On should also be triggered when an app wakes the display (except for the new ambient display feature on Android 6). What kind of device model and Android version are you using?
Trigger Next Alarm is invoked when the next alarm-clock alarm is triggered (such alarms are usually accompanied by an alarm-clock icon on the right side of the statusbar) so it most likely does not work for the calendar.

Does the calendar app show a notification when an alarm goes off? If yes, you could use a trigger Notification on Statusbar Displayed to react to the alarm.

Regards,
Martin

GlueGuy
Posts: 3
Joined: 22 Nov 2015 20:37

Re: Trigger Trouble (Display State: On)

Post by GlueGuy » 09 May 2016 16:40

Martin - thank you for your ever-present alacrity in responding to posts. I apologize that I have not offered the same in this instance.

Just fyi in case it helps others - I was able to solve my issue by using the "Activity Started" trigger, selecting the Package Name (com.pimlicosoftware.PimlicalA) and the Class Name (com.pimlicosoftware.PimlicalA.AlarmActivity).

To answer your questions: I'm running a Nexus 5 and using a modded ROM called LiquidSmooth which is a tweak of KitKat v4.4.4. Also - yes, the calendar app shows a notification when an alarm goes off.

For whatever reason, the trigger "Display State: On" doesn't trigger when the Pimlical Calendar app alarm goes off.

Post Reply