[FIX] Ensure light turns off if motion sensor not detecting

This commit is contained in:
2025-08-01 21:25:22 +01:00
parent 0107c9f545
commit 62b17da878

View File

@@ -166,6 +166,15 @@ action:
platform: state
entity_id: !input motion_sensors
to: "off"
- if:
- condition: state
entity_id: !input motion_sensors
state: "on"
then:
- wait_for_trigger:
platform: state
entity_id: !input motion_sensors
to: "off"
- delay: !input no_motion_wait
- choose:
- conditions: