I have been trying to get tts to work on my Google Home Mini using various home alarm sensors. Ideally I would like google home to report using tts when a window or door has been opened.
I am able to get these home alarm sensors to work using light control applications in Home Assistant. I am also able to receive tts messages when I type in text from the HA home screen card and tts will also work in a time based animation. But for some reason I can’t get tts to work directly with my alarm system sensors. I’m thinking that I lacking somewhere in my configuration. Here are a couple examples of code I have tried:
alias: ‘Dan’s Window Open’
trigger:
platform: state
entity: binary_sensor.11_dan
from: ‘off’
to: ‘on’
for: ‘00:00:02’
action:
service: tts.google_say
data:
entity_id: media_player.family_room_speaker
message: “Alert, alert, Dans Window Open!”
id: Test
alias: “test”
trigger:
entity_id: binary_sensor.13_office
from: ‘off’
platform: state
to: ‘on’
action:
service: tts.google_say
entity_id: media_player.family_room_speaker
data:
message: ‘… Yet another test!’
Thank you for your help!