I’ve tried about 20 iterations and can’t seem to make this work. The syntax must not be too bad because HA starts, but the automation doesn’t seem to work. Does anyone see anything obviously wrong with my YAML?
The goal:
When the garage door opens at anytime after sunset, activate a predefined scene (the scene is tested and works) to turn a couple of lights on inside the house.
my automations.yaml:
- id: arrive_night
alias: 'Lights on'
trigger:
platform: state
entity_id: cover.garage_door_opener
to: 'open'
condition:
condition: sun
after: sunset
action:
service: scene.turn_on
entity_id: scene.lower_morning