I have an automation that works like this:
Pressing a button activates a message that is sent via tts to one of my google home mini … if I run it from the frontend everything is ok, if I activate it from the button, the google home executes the message but simultaneously the other google home and chromecast video (and so I turn on the television) … what can it be?
This is the automation:
- alias: Ring the bell
initial_state: true
trigger:
- platform: event
event_type: xiaomi_aqara.click
event_data:
entity_id: binary_sensor.switch_1234567890
click_type: single
action:
- service: tts.google_say
data:
entity_id: media_player.google_camera
data_template:
message: >
{{ [
"vai a guardare alla porta" ,
"stanno suonando alla porta" ,
"qualcuno suona alla porta"
] |random }}