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?