I am attempting to setup an Aqara door sensor automation that sends a tts alert to a Sonos speaker when the door opens. The hub is a Sonoff zigbee bridge and I am running HassOS on Rpi4 ssd.
The maddening thing is that the automation fails but there are no errors in the log. Nothing to go by. The ZbBridge works. The sensor works. The Sonos speaker is recognized. I can run the service successfully in Developer Tools. It will even work when I click the Run Actions button in automations. But opening the sensor does not trigger the automation. Here is my tts config:
tts:
- platform: google_translate
cache: true
cache_dir: /tts
time_memory: 300
base_url: http://192.168.2.10:8123
service_name: google_translate_say
This is my automation:
- id: '1616192952760'
alias: Back Door Alert
description: send alert if back door is open
trigger:
- platform: state
entity_id: binary_sensor.lumi_lumi_sensor_magnet_aq2_on_off
for: '10'
attribute: icon
from: 'off'
to: 'on'
condition: []
action:
- service: tts.google_translate_say
data:
entity_id: media_player.sonos_speaker
message: the back door is open. Better check it out. thanks
mode: single
I have been working on this for 2 days and have tried every combination of tts config and am out of ideas.