I want to do an automation that will do this: when alarm activated, start the sound and put the light in such state. Then when the alarm is deactivated, return to the initial state but I can not arrive and I do not know if I should put the code in automation or in configuration.yaml?
I’m also looking for a way to snooze the sound on Alexa until the alarm is turned off.
The rest can’t be saved. I don’t know why.
Yes it’s a skill when the alarm is trigerred. (for media player skill it’s the sound of alarm because i have soundbar but media.player basic don’t work so i through via alexa.)
Aaaaah ok lol so i can’t copy both together. Thank you
I tested and everything works but when I turn the lamp back on, it stays in the ‘Police’ effect.
I also have the problem of repeating the skill media player (sound of alarm last 30 seconds) until the state becomes disarmed… And conversely stop the media.player when disarmed (media_player.media_stop don’t work).
Thank you I added this, it works I understood the concept.
For the lamps they are not the same, room2 (ceiling) returns to the initial state but room1 (Yeelight Smart Bulb 2) if it was off goes off again but when I turn it on I still have the “Police” effect.
Isn’t there a function to stop the alarm directly as soon as it is disarmed? (maybe with a skill alexa with a mp3 empty ?)
You can try to play a sound in alexa such as a bell which should exit the skill. With the lights, i have sometimes seen this issue when I use 2 entites in snapshots. Try this. Also i have combined both the automations into one. You can disable the second one and try this.
It works but unfortunately the alarm sound is stopped after the skill has finished (30 sec) and the lamp does not return to the initial state.
Afterwards I can also lower the volume to 0 but it is not clean
I will put that light goes into normal mode and then goes out.