I’m using Home Assistant at work and we recently added door and window sensors to some of the doors so that I could create automations that will announce when someone comes in those doors. It works most of the time but sometimes there is a delay before it says anything and sometimes Google just plays the chime like something has been cast to it but doesn’t say anything. I have similar automations setup at home that announce when the washer and dryer are done and they work without any problems.
This is the code for the automation for the front door.
alias: Front Door
description: “”
trigger:
- type: opened
platform: device
device_id: f5bbaceb49a2ba6b17d0e38b08b66709
entity_id: binary_sensor.sonoff_1001719fb3
domain: binary_sensor
condition: []
action: - service: tts.google_translate_say
data:
entity_id: media_player.home_group
message: Front Door
enabled: true
mode: single