I also struggled to get my Alarm IDs. It is very easy to do with the soco library:
import soco as s
import soco.alarms as a
device = s.SoCo("192.168.1.XXX") # change to your sonos ip
a.get_alarms()
which will give you a list containing the alarms with their ids
{<Alarm id:684@09:30:00 at 0x7f184b95bac8>, <Alarm id:643@08:30:00 at 0x7f184b964a20>, <Alarm id:485@07:00:00 at 0x7f184b964748>, <Alarm id:50@06:15:00 at 0x7f184b964cf8>}
I can figure out how to update the alarm, according to the directions described above, but I cant figure out, how to read the current state and time from a specific alarm ID from within HA. Anyone got a clue to that ?
What I’d like to achieve is on my Lovelace card, to display the current alarm time setting and state.
OK managed to get it working. Also I’m not using the “transition” Instead I’m using rest commands to actually program the routine on my hue hub. this works brilliantly now!
Hi, congratulation for you project. Thank’s for sharing!
One question: I would like to insert an automation that activates my Volumio media player at the alarm clock. and I would like to include in the group the possibility to choose the playlist that will wake me up the next day.
Can you help me!!!
Thank’s in advance!!!
today is the first day i am working with HA. I’m not a pro so i really need help. I want to have a trigger that activates my sonos alarm and my hue wake up at a special time. So i want to change the time from 6 to 7 for example.
I tried to apply the script in all yaml files but i see some errors in log files and nothing really shows up.
I changed the input_slider to input_number but it still doesn’t work. Do you have any ideas?
Or is this not working anymore? I would need a step by step for beginners.
@DaveVader is there an option to get the sonos alarm + hue with a single button with pre configured times?
i want to build a horizontal card with my often used alarm times but i dont get this to work.
so theres no need of variables/templates because my alarm should go on at 06:00 another one should go on at 06:30.
anyway to accomplish this?