Skip to content

Commit 8c8b15b

Browse files
authored
Merge pull request #491 from SmartThingsCommunity/fix/hue-edge-child-type
2 parents 93bc575 + fb95027 commit 8c8b15b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/SmartThings/philips-hue/src/disco.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,14 +301,15 @@ process_discovered_light = function(driver, bridge_id, resource_id, device_info,
301301
local bridge_device = known_dni_to_device_map[bridge_id]
302302

303303
local create_device_msg = {
304-
type = "LAN",
304+
type = "EDGE_CHILD",
305305
device_network_id = light.id,
306306
label = light.metadata.name,
307307
vendor_provided_label = device_info.product_data.product_name,
308308
profile = profile_ref,
309309
manufacturer = device_info.product_data.manufacturer_name,
310310
model = device_info.product_data.model_id,
311311
parent_device_id = bridge_device.id,
312+
parent_assigned_child_key = light.id,
312313
}
313314

314315
HueDiscovery.light_state_disco_cache[light.id] = {

0 commit comments

Comments
 (0)