This is not true, apps that set an alarm with android immediately send out their intent which our app reads. More than likely another app on your device is setting an alarm with the API before the google clock app which prevents an update from showing up because it technically is not the next scheduled alarm.
As I said on GitHub, I had only the Google clock app set in the allow list, so how is another app interfering? Let’s carry on the discussion there, I only posted here to point anyone else interested there.
Because there is a point in the database which is supposed to be used for alarms but another app uses that spot for their needs.
Just like tasker does.
If you use tasker time events then you can see the alarm time.
So what I did was create the automation in Home Assistant that sends an notification to my phone.
Tasker reads the notification and carries out the action.
And I don’t mean notification with intent, just “sound off” and the sound is shut off.
If anyone has any issues with the sensor.phone_next_alarm not triggering, it’s most likely to be due to a time difference between HA and your phone. My phone was +5s ahead for some reason which meant the next_alarm sensor was being updated to the next alarm before it was triggered in HA. I’m going to use the minutes before sensor to trigger, as triggering a minute before makes no difference but not triggering at all makes a massive difference to my automations. Unfortunately the devs are not willing to look at building any fail-safe into this as they expect everything to work to the letter, which I understand to a degree. Unfortunately in the land of Android things aren’t always such an exact science. So users will have to take a different approach to that which is documented and apply a fail-safe approach if they want to rely on this sensor to start their day.
I have been fiddeling with next_alarm to have a working alarm clock for getting up in the morning. This works great but I’m an avid snoozer and I can’t really wrap my head around on how to get that to work.
This is the code for the automations and the input_boolean to stop the alarm from starting again.
This is what happens when I hit the snooze button.
When hitting the snooze button (WallMote) all lights and audio stops immediately. I assume that is because of script.turn_off killing script.alarm_clock_on.
After a 5 minute delay the alarm goes of again but when hitting the snooze button nothing happens until the sequence is complete. What I want is to have all lights and audio stop immediately.
If I wait til the script has finished the snooze button works and I can sleep for 5 more minutes.
Blockquote Also, for those people (like me) who love to hit the “Snooze” button, I’ve added a little binary input to not have the automation trigger multiple times in the morning:
andys_alarm_triggered_today:
name: “[zzz-Helpers] Andys alarm triggered today”
initial: off
icon: mdi:alarm
I got rid of the previous error, quotation marks were missing.
But the automation does not trigger. I see no errors in the log.
Could that be because of the mismatch of timestamps?