I have a simple automation that should turn on a switch(code is below). I have tried this so many ways but cannot get it to work at all. I am executing this manually through the automation editor and it executes, but the switch is not turning on. I can manually call the service service swith.turn_on which works fine. I have tried adding the entity ID of the switch(entity_id: switch.welle_garage) however I cannot seem to even get the proper syntax so save the changes. Any ideas? I know the automation is working because I put a push notification in the action and that gets triggered.
- alias: Garage Door is closed!
trigger:
platform: time
at: “20:32:00”
condition:
condition: state
entity_id: binary_sensor.welle_garage_door
state: ‘off’ # off means closed and on means open
action:- service: switch.turn_on
- delay: 500 ms
- service: switch.turn_off