Hi,
I have configured Alarmo and wanted to play sound on my Alexa when the alarm is triggered.
So i create a script which play a sound on Alexa while the alarm is triggered. However, i am unable to make it work.
The script is:
alias: PlayAlarmSoundEcho
sequence:
- repeat:
sequence:
- service: media_player.play_media
target:
entity_id: media_player.echo
data:
media_content_id: air_horn_03
media_content_type: sound
metadata: {}
- delay:
hours: 0
minutes: 0
seconds: 3
milliseconds: 0
while:
- condition: device
device_id: 7b0cb66e53326b5df8f9ffd61909a731
domain: alarm_control_panel
entity_id: c6a56932e4c6994ac2b4675a509b3643
type: is_triggered
mode: single
and then i invoked the script in Alarmo in the Actions tab, when an alarm is triggered
- service: script.playalarmsoundecho
entity_id: script.playalarmsoundecho
data: {}
However, when i test this even though the "Is triggered’ evaluates to True, there’s no sound.