Automation breaking light switch

Hey Guys,

I hope this is a simple one. I have a lifx light in my bedroom which works great until I enable the automation below. Once the automation is enabled, the light only comes on every 4th press of the dashboard switch (as opposed to every 2nd press in normal operation).

Any ideas?

- alias: "Bedroom light off after 10 min"
  trigger:
    - platform: state
      entity_id: light.bedroom
      from: 'off'
      to: 'on'
  action:
    - delay: '00:10:00' 
    - service: light.turn_off
      entity_id: light.bedroom


How about this:

- alias: Turn off Guest Bathroom after it has been on for 10 minutes
  trigger:
    platform: state
    entity_id: light.bedroom
    to: 'on'
    for:
      minutes: 10
  action:
    - service: light.turn_off
      entity_id: light.bedroom
2 Likes

That works! Champion! Thanks so much.