staircase-light: add second PIR sensor
CI / ESPHome config validation (push) Failing after 5s
CI / YAML lint (push) Failing after 19s

This commit is contained in:
randy committed 2026-10-10 17:50:24 +02:00
1 parent e5f9c5813e
commit 3374ed6ad8
1 file changed
+12 -2
+12 -2
View File
@@ -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