homeassistant: read bathroom light status from motion sensor
All checks were successful
flake / flake (push) Successful in 1m18s

This commit is contained in:
Jake Hillion 2024-05-25 17:02:35 +01:00
parent 7b221eda07
commit 3f829236a2

View File

@ -114,7 +114,7 @@ in
lights = {
bathroom_light = {
unique_id = "87a4cbb5-e5a7-44fd-9f28-fec2d6a62538";
value_template = "on";
value_template = "{{ states('sensor.bathroom_motion_sensor_illuminance_lux') | int > 500 }}";
turn_on = { service = "script.noop"; };
turn_off = {
service = "switch.turn_on";