A wasp-in-a-box solution including a template sensor and an automation blueprint to automatically turn lights on/off.
- Copy the contents of
wiab-sensor.yaml
to yourconfiguration.yaml
to create abinary_sensor
for occupancy- replace
binary_sensor.my_door
with your door sensor or sensor group (if the room has multiple doors) - replace
binary_sensor.my_motion_sensor
with your motion sensor - replace the value
70
with the cooldown period of your motion sensor, in seconds (i.e. the time it takes from when the motion stops to when the sensor switches tooff
). Use a stopwatch to get it
- replace
- Use the blueprint in
wiab-automation.yaml
to create an automation that turns the light on/off