You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DeviceWrapper dev = parent.getChildDevice("${device.deviceNetworkId}/Light/${hueId}")
187
196
if (dev !=null) dev.createEventsFromSSE(updateEntryMap)
188
197
break
189
198
case { it.startsWith("/groups/") }:
190
-
String hueId = fullId.split("/")[-1]
199
+
hueId = fullId.split("/")[-1]
191
200
DeviceWrapper dev = parent.getChildDevice("${device.deviceNetworkId}/Group/${hueId}")
192
201
if (dev !=null) dev.createEventsFromSSE(updateEntryMap)
193
202
break
203
+
case { it.startsWith("/scenes/") }:
204
+
hueId = fullId.split("/")[-1]
205
+
DeviceWrapper dev = parent.getChildDevice("${device.deviceNetworkId}/Scene/${hueId}")
206
+
if (dev !=null) dev.createEventsFromSSE(updateEntryMap)
194
207
case { it.startsWith("/sensors/") }:
195
-
StringhueId = fullId.split("/")[-1]
208
+
hueId = fullId.split("/")[-1]
196
209
DeviceWrapper dev = parent.getChildDevices().find { DeviceWrapperdev->
197
210
hueId in dev.deviceNetworkId.tokenize('/')[-1].tokenize('|') &&
198
211
dev.deviceNetworkId.startsWith("${device.deviceNetworkId}/Sensor/") // shouldn't be necessary but gave me a Light ID once in testing for a sensor, so?!
0 commit comments