Help needed with a simple automation

I’m attempting what should be a simple motion based automation.
I’d like a light to turn off after x minutes of no motion detected.

- alias: Bedroom Lights off after 10
  initial_state: 'on'
  hide_entity: False
    - platform: state
      entity_id: sensor.bedroom_sensor_node_pir
      to: 'standy'
      from: 'motion detected'
        minutes: 10
    - condition: state
      entity_id: light.bedroom_light
      state: 'on'
    - service: light.turn_off
      entity_id: light.bedroom_light

But it’s just not firing?

10 points to anyone who spots the spelling error…

What if you omit the from: 'motion detected'?

standy’ -1 for spelling.

1 Like

We have a winner!