homeassistant: read bathroom light status from motion sensor
All checks were successful
flake / flake (push) Successful in 1m18s
All checks were successful
flake / flake (push) Successful in 1m18s
This commit is contained in:
parent
7b221eda07
commit
3f829236a2
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user