the single automation is running fine
alias: Notify send message if voordeur is open
description: ""
triggers:
- type: opened
device_id: d226e1b37368a9ecc14b6b64eb30096e
entity_id: 07b9cbd4618d1d1d7d2ed5e510979760
domain: binary_sensor
trigger: device
conditions: []
actions:
- action: tts.speak
target:
entity_id: tts.google_nl_nl
data:
cache: true
media_player_entity_id: media_player.google_nest_audio_woonkamer_paar
message: Voordeur open
language: nl
mode: single
I tried to extend the auomation however it is not running nor a message on the google speaker.
- Door open
- Door closed
- Door longer open the 3 minutes warning
Who can tell me what is wrong.
alias: Voordeur open/dicht melding en waarschuwing
description: Geeft melding bij openen/dichtgaan van voordeur en waarschuwing na 3 minuten
triggers:
- entity_id: binary_sensor.voordeur
to: "on"
id: deur_open
trigger: state
- entity_id: binary_sensor.voordeur_sensor_open
to: "off"
id: deur_dicht
trigger: state
- entity_id: binary_sensor.voordeur_sensor_open
to: "on"
for: "00:03:00"
id: deur_te_lang_open
trigger: state
conditions: []
actions:
- choose:
- conditions:
- condition: trigger
id: deur_open
sequence:
- target:
entity_id: tts.google_nl_nl
data:
cache: true
media_player_entity_id: media_player.google_home_kantoor
message: De voordeur is open
language: nl
action: tts.speak
- conditions:
- condition: trigger
id: deur_dicht
sequence:
- target:
entity_id: tts.google_nl_nl
data:
cache: true
media_player_entity_id: media_player.google_home_kantoor
message: De voordeur is weer dicht
language: nl
action: tts.speak
- conditions:
- condition: trigger
id: deur_te_lang_open
sequence:
- target:
entity_id: tts.google_nl_nl
data:
cache: true
media_player_entity_id: media_player.google_home_kantoor
message: Let op, de voordeur is al meer dan drie minuten open!
language: nl
action: tts.speak
mode: restart