diff --git a/BridgeEmulator/HueObjects/Scene.py b/BridgeEmulator/HueObjects/Scene.py index 5723e86d0..a0d62ace8 100644 --- a/BridgeEmulator/HueObjects/Scene.py +++ b/BridgeEmulator/HueObjects/Scene.py @@ -100,6 +100,9 @@ def activate(self, data): for device, state in queueState.items(): state["object"].setV1State(state) + if self.type == "GroupScene": + self.group().state["any_on"] = True + def getV1Api(self): result = {} result["name"] = self.name diff --git a/BridgeEmulator/HueObjects/__init__.py b/BridgeEmulator/HueObjects/__init__.py index f8c6ce6c9..6ddd724b9 100644 --- a/BridgeEmulator/HueObjects/__init__.py +++ b/BridgeEmulator/HueObjects/__init__.py @@ -54,6 +54,8 @@ def setGroupAction(group, state, scene=None): sceneStates = list(scene.lightstates.items()) for light, state in sceneStates: lightsState[light.id_v1] = state + if "on" in state and state["on"] == True: + group.state["any_on"] = True else: state = incProcess(group.action, state)