Light trigger now looks if the target light group is on to turn on lights instead of all lights.

This commit is contained in:
Paulus Schoutsen committed 2014-01-12 11:29:30 -08:00
1 parent 5acf372d15
commit 478d4ad93a
2 files changed
+18 -1

No files matched your search

@@ -86,7 +86,7 @@ def setup(bus, statemachine, light_group=None):
def handle_device_state_change(category, old_state, new_state):
""" Function to handle tracked device state changes. """
lights_are_on = light.is_on(statemachine)
lights_are_on = group.is_on(statemachine, light_group)
light_needed = not (lights_are_on or sun.is_up(statemachine))