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