Only fire light_off on occupancy change

Avoids constantly turning off a held LED.
This commit is contained in:
2025-06-23 23:38:11 -04:00
parent d75a7d26a6
commit 1f7df559b1

View File

@ -699,10 +699,9 @@ binary_sensor:
name: "SuperSensor Occupancy"
id: supersensor_occupancy
device_class: occupancy
on_press:
- script.execute: light_off
on_release:
- script.execute: light_off
on_state:
then:
- script.execute: light_off
- platform: gpio
name: "PIR GPIO"