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"
|
name: "SuperSensor Occupancy"
|
||||||
id: supersensor_occupancy
|
id: supersensor_occupancy
|
||||||
device_class: occupancy
|
device_class: occupancy
|
||||||
on_press:
|
on_state:
|
||||||
- script.execute: light_off
|
then:
|
||||||
on_release:
|
- script.execute: light_off
|
||||||
- script.execute: light_off
|
|
||||||
|
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
name: "PIR GPIO"
|
name: "PIR GPIO"
|
||||||
|
Reference in New Issue
Block a user