From 730faed757c163cde3646bd68f17a9d59448f23e Mon Sep 17 00:00:00 2001 From: trainman419 Date: Sun, 15 Mar 2015 15:47:21 -0700 Subject: [PATCH] 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. --- homeassistant/components/device_sun_light_trigger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/device_sun_light_trigger.py b/homeassistant/components/device_sun_light_trigger.py index 8def4079d05..4740336767f 100644 --- a/homeassistant/components/device_sun_light_trigger.py +++ b/homeassistant/components/device_sun_light_trigger.py @@ -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(