From 62b17da878d78516cc78fc1f6025b42c2aab4572 Mon Sep 17 00:00:00 2001 From: Matthew Grove Date: Fri, 1 Aug 2025 21:25:22 +0100 Subject: [PATCH] [FIX] Ensure light turns off if motion sensor not detecting --- motion-sensing-lights.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/motion-sensing-lights.yaml b/motion-sensing-lights.yaml index 7cadd48..868b7a3 100644 --- a/motion-sensing-lights.yaml +++ b/motion-sensing-lights.yaml @@ -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: