Only fire light_off on occupancy change
Avoids constantly turning off a held LED.
This commit is contained in:
@ -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"
|
||||
|
Reference in New Issue
Block a user