Switch off automation delay not working?

Hi,

I try to get the light in garage to turn on for 1 minute when garage opens… The light turns on, but not turn of after the delay. I got this code, any idea that is wrong

- alias: 'Turn on garageverlichting open'
  trigger:
    platform: state
    entity_id: binary_sensor.garage
    from: 'off'
    to: 'on'
  action:
   - service: switch.turn_on
     entity_id: switch.garageverlichting
   - delay: 00:01:00
   - service: switch.turn_off
     entity_id: swtich.garageverlichting

You’ve spelled switch wrong in the turn off bit.

sometimes thing can be simple… and frustrated looked an hour for that

thnx regards Richard

1 Like