From 3374ed6ad8838b0db7a6241f30f733639e24bf2b Mon Sep 17 00:00:00 2001 From: Roman Priesol Date: Sat, 10 Oct 2026 17:50:24 +0200 Subject: [PATCH] staircase-light: add second PIR sensor --- mcu-staircase-light.yaml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/mcu-staircase-light.yaml b/mcu-staircase-light.yaml index 8779278..9ae5199 100644 --- a/mcu-staircase-light.yaml +++ b/mcu-staircase-light.yaml @@ -54,8 +54,18 @@ binary_sensor: entity_id: binary_sensor.zigbee_staircase_pir_occupancy on_state: if: - condition: - binary_sensor.is_off: motion + condition: &no_motion + and: + - binary_sensor.is_off: motion + - binary_sensor.is_off: motion_2 + then: + - light.turn_off: light_relay + - platform: homeassistant + id: motion_2 + entity_id: binary_sensor.zigbee_staircase_2_pir_occupancy + on_state: + if: + condition: *no_motion then: - light.turn_off: light_relay