Hi,
I’m trying to setup a alert through the alexa media player service that announces when the back gate has been open for more than 10 seconds.
The announcement ‘action’ works independently if i run it as a service in the developer tools, and i have a binary switch showing the open and closed state on the dashboard to test the sensor itself is working fine.
My automation.yaml is:
- id: '1622996391896'
alias: Back Gate Open
description: Notify when back gate open for more than 10 seconds
trigger:
- platform: state
entity_id: binary_sensor.back_gate_ias_zone
from: Closed
to: Open
for:
seconds: 10
condition: []
action:
- service: notify.alexa_media
data:
data:
type: tts
message: Back Gate is open
target:
- media_player.upstairs
- media_player.echo_show
- media_player.lounge
- media_player.main_bedroom
mode: single
ANy assistance would be gratefully received!
Carl