Here is my automation. its based on a timer starting (which is triggered by a sensor)
I want to get this to keep doing the siren noise until the timer expires. I have tried to change this but I got a bit lost and not really sure how I can repeat this section as part of the action. Can anyone help~?
Repeat Until Action… you will probably need to play with the delay time so the calls don’t overlap the sound playing and you may need to add a repeat.index condition. In my experience if Alexa gets too many calls for the same service in a short amount of time it gets treated like a DDOS attack and you will have to reauthorize the integration. If you have one set up, it may work better to just use the media_player.everywhere entity as your target… that has the benefit of sending fewer calls to Amazon and (usually) synced audio.
I’ll give this a go tomorrow I did have something similar but every time I put the sequence command it kept putting null after it.
Will let you know how I get on.
Just FYI, if “start security siren” is a trigger phrase for a routine you will need to modify this automation. You can’t execute Alexa routines using the “custom” command, you have to use “routine” as your media_content_type and the routine name as the media_content_id
I wrote the routine exactly how you typed it.
However I keep getting this message on HA
Message malformed: required key not provided @ data[‘action’][3][‘repeat’][‘until’][0][‘entity_id’
Please correct the formatting of you post (See #11)
Visible issues:
Remove the “### Your other actions” placeholder note
Remove the “max: 20”. Are you trying to limit the number of times the action repeats? That can be done, but I don’t see anything in the docs that say you can just set a max like that.