mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Turn off correct lights
Only turn off the lights specified in the sun light trigger. I use this to turn off my bedroom lights when I leave, even if my housemates are still home.
This commit is contained in:
parent
0b8fea923a
commit
730faed757
@ -153,7 +153,7 @@ def setup(hass, config):
|
||||
logger.info(
|
||||
"Everyone has left but there are lights on. Turning them off")
|
||||
|
||||
light.turn_off(hass)
|
||||
light.turn_off(hass, light_ids)
|
||||
|
||||
# Track home coming of each device
|
||||
hass.states.track_change(
|
||||
|
Loading…
x
Reference in New Issue
Block a user