Hi,
I am trying for a small automation to make my garage door switch to toggle. Automation should turn the switch OFF after 200ms if someone turn it ON. So I did this but it is not working. What I am doing wrong?
trigger:
platform: state
entiry_id: switch.garage_door
from: “OFF”
to: “ON”
for:
milliseconds: 200
action:
service: switch.turn_off
entity_id: switch.garage_door