diff --git a/bundles/org.openhab.binding.plugwise/src/main/java/org/openhab/binding/plugwise/internal/PlugwiseThingDiscoveryService.java b/bundles/org.openhab.binding.plugwise/src/main/java/org/openhab/binding/plugwise/internal/PlugwiseThingDiscoveryService.java index b416321e3e181..cbd523affd64b 100644 --- a/bundles/org.openhab.binding.plugwise/src/main/java/org/openhab/binding/plugwise/internal/PlugwiseThingDiscoveryService.java +++ b/bundles/org.openhab.binding.plugwise/src/main/java/org/openhab/binding/plugwise/internal/PlugwiseThingDiscoveryService.java @@ -125,9 +125,10 @@ public void activate() { private DiscoveryResult createDiscoveryResult(DiscoveredNode node) { String mac = node.macAddress.toString(); - ThingUID thingUID = new ThingUID(PlugwiseUtils.getThingTypeUID(node.deviceType), mac); + ThingUID bridgeUID = stickHandler.getThing().getUID(); + ThingUID thingUID = new ThingUID(PlugwiseUtils.getThingTypeUID(node.deviceType), bridgeUID, mac); - return DiscoveryResultBuilder.create(thingUID).withBridge(stickHandler.getThing().getUID()) + return DiscoveryResultBuilder.create(thingUID).withBridge(bridgeUID) .withLabel("Plugwise " + node.deviceType.toString()) .withProperty(PlugwiseBindingConstants.CONFIG_PROPERTY_MAC_ADDRESS, mac) .withProperties(new HashMap<>(node.properties))