i have an automation to turn a light on Green when the garage door is open. it stays Green to remind me the garage is still open. when the garage door is closed, the light turns off. i could easily do this with 2 automations but i thought i could combine into 1. as of now, this 1 is not working. i used the GUI to make so i know it’s not my syntax. any idea what’s wrong?
alias: alert garage door open
description: ""
trigger:
- platform: state
entity_id:
- binary_sensor.garage_door_car_contact
to: "on"
from: "off"
action:
- service: notify.telegram
data:
message: garage large door opened
- service: light.turn_on
data:
rgb_color:
- 0
- 255
- 0
brightness_pct: 100
target:
entity_id: light.light_strip_3642
- wait_for_trigger:
- platform: state
entity_id:
- binary_sensor.garage_door_car_contact
to: "off"
timeout:
hours: 0
minutes: 0
seconds: 0
milliseconds: 0
continue_on_timeout: false
- service: light.turn_off
data: {}
target:
entity_id: light.light_strip_3642
mode: single