Open arturbalabanov opened 4 months ago
Thanks for the idea! We may create dedicated entity for this.
I'll check SaA doc for stable solution: it looks like we need some special trigger to catch next alarm data.
Thank you for the prompt response @IATkachenko!
I had to make a small change to the template to fix a bug with disappearing alarms (notably adding payload: "alarm_rescheduled"
as I somehow missed this originally) and I haven't found any issues for the last two weeks, so I updated the YAML in my original post for future reference.
Also a small note on the data SleepAsAndroid is sending: value1
and value2
are always referring to the next alarm to be fired (as opposed to the alarm that was just rescheduled). I don't know if this is the desired behaviour but for this usecase it works great and simplifies the logic a lot.
Heya, thank you a lot for this integration, it's super useful!
One thing that would be nice to be included is an entity showing the next scheduled alarm which can be added to any dashboard. I just implemented this as a template sensor and works great, here's the YAML code:
Here's an example of a dashboard tile with it:
I've testing this with HAOS 2024.6.4. I'm new to home assistant, so I'm not sure what would be the best way to implement this into the integration but even if it's not a core feature, adding this snippet in the README would help other users who want something similar.