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
  trigger:
    - platform: state
      entity_id: sensor.bedroom_sensor_node_pir
      to: 'standy'
      from: 'motion detected'
      for: 
        minutes: 10
        
  condition:
    - condition: state
      entity_id: light.bedroom_light
      state: 'on'
  
  action:
    - 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!