Hey all,
I’m trying to set up a repeated TTS message on my phone. The trigger for now is a dummy light switch, and it should keep repeating until the dummy is turned off. I also set up a textual notification for debugging puropses. I use the repeat statement, and eventhough is working properly (both while and exit messages are being sent), the repeated TTS isn’t sounding. The while-exit TTS action is sounding. What am I doing wrong?
alias: dummy tts
description: ""
trigger:
- platform: device
type: turned_on
device_id: 751e3dd881a737b88c8762b83270371e
entity_id: f162ab33b5a85e1332ee086ab1bdb407
domain: light
condition: []
action:
- repeat:
while:
- condition: state
entity_id: light.dummy
state: "on"
sequence:
- service: notify.mobile_app_pixel_6_pro
data:
message: on
data:
tts_text: you're a dummy
media_stream: alarm_stream_max
channel: alarmchannel
- delay:
hours: 0
minutes: 0
seconds: 10
milliseconds: 0
- service: notify.mobile_app_pixel_6_pro
data:
message: off
data:
tts_text: you've stopped being a dummy
media_stream: alarm_stream_max
channel: alarmchannel