It might now be easier to just install the Home Assistant app and use the next alarm sensor it provides.
I gave up on tasker and alike. Switched over to Google Assistant Routines which are available in Google Clock. It seems to work when I test it with either switches or scripts during the day, but when set up for morning wake up alarm it does not work. The phone shows notification that the routine is running but actually is not doing anything. Has anybody faced similar issue?
Did you see what Corneyl suggested?
Yes I did. Haven’t tried that yet. How would the automation look like? Can I schedule an action for the time when coming from this state? What would be the best way to do that?
OK, I have found a topic on that with a few alternatives:
So after a few days of trying here is my experience, trying to automate wake up routine in line with my Samsung Galaxy S8 alarm clock (stock Google Clock app):
- IFTTT - does not work, also other notifications are not captured
- Tasker - works when tested but after night the tasks are not executed (probably app is killed)
- Google Assistant Routines added to the Alarm actions - works when tested most of the time but does not work in the morning.
- And finally Home Assistant Companion app and next_alarm sensor: works like a charm. The only thing you have to keep in mind is that if you have not used the App for a while and you change the next alarm the sensor might not get updated. So the best is to open the HA app after setting new alarm clock time. So I stick to it for the moment, let’s see after a few weeks how reliable it is.
I have noticed this too.
It would have been great if you could force update the sensors every now and then.
Just like you can force the location.