Hi,
I am trying to get a google tts repeat a couple of times a message, but all I can get it to do, is do it once…
Below is my code for the script,
Can someone spot where the problem may be?
TYA
urgent_notification_alarm:
alias: Urgent Notification Alarm
sequence:
- service: notify.notify
data:
message: '{{msg}}'
- service: media_player.volume_set
data:
volume_level: 0.9
target:
entity_id:
- media_player.office_display
- media_player.kitchen_display
- media_player.aly_google
- repeat:
count: 2
sequence:
- service: tts.google_translate_say
data:
entity_id:
- media_player.office_display
- media_player.kitchen_display
- media_player.aly_google
message: '{{msg}}'
- wait_template: "{{(states('media_player.kitchen_display') == 'idle'\nand\n\
states('media_player.office_display')== 'idle'\nand \nstates('media_player.aly_google')==\
\ 'idle'\n)}}"
timeout: 00:00:30
continue_on_timeout: true
mode: restart
icon: mdi:alarm-light