Problem
I switched from having my alarm clock on my phone to having my alarm clock on my Sonos. With the alarm clock on my phone, I had the xx_next_alarm entity which I could use to slowly turn on my lights 15 minutes before my alarm goes off, I would like to have this functionality again but now with my Sonos.
Current workaround
The alarm entities do include a time for when they go off, with this the next alarm can be concluded. But this has 2 problems. Firstly, using scheduled_today it can be determined which day the alarm is going off, but this does not work for when the alarm is the next day. Secondly, every alarm needs to be defined in the script, so when a new alarm is added I need to edit the script again.
How to fix
Add x_next_alarm entity to Sonos integration.