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.yamlto yourconfiguration.yamlto create abinary_sensorfor occupancy- replace
binary_sensor.my_doorwith your door sensor or sensor group (if the room has multiple doors) - replace
binary_sensor.my_motion_sensorwith your motion sensor - replace the value
70with 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.yamlto create an automation that turns the light on/off