diff --git a/bundles/org.openhab.binding.hue/src/main/java/org/openhab/binding/hue/internal/api/dto/clip2/enums/Archetype.java b/bundles/org.openhab.binding.hue/src/main/java/org/openhab/binding/hue/internal/api/dto/clip2/enums/Archetype.java index 83726b24d775b..541c1443676d5 100644 --- a/bundles/org.openhab.binding.hue/src/main/java/org/openhab/binding/hue/internal/api/dto/clip2/enums/Archetype.java +++ b/bundles/org.openhab.binding.hue/src/main/java/org/openhab/binding/hue/internal/api/dto/clip2/enums/Archetype.java @@ -134,8 +134,6 @@ public enum Archetype { OTHER; public static final Set BRIDGES = Set.of(BRIDGE_V2, BRIDGE_V3); - public static final Set IGNORED_DEVICES = Set.of(Archetype.UNKNOWN_ARCHETYPE, Archetype.BRIDGE_V2, - Archetype.BRIDGE_V3); public static Archetype of(@Nullable String value) { if (value != null) { diff --git a/bundles/org.openhab.binding.hue/src/main/java/org/openhab/binding/hue/internal/discovery/Clip2ThingDiscoveryService.java b/bundles/org.openhab.binding.hue/src/main/java/org/openhab/binding/hue/internal/discovery/Clip2ThingDiscoveryService.java index 9bfab37e82ed7..35fea32b5b8a2 100644 --- a/bundles/org.openhab.binding.hue/src/main/java/org/openhab/binding/hue/internal/discovery/Clip2ThingDiscoveryService.java +++ b/bundles/org.openhab.binding.hue/src/main/java/org/openhab/binding/hue/internal/discovery/Clip2ThingDiscoveryService.java @@ -25,7 +25,7 @@ import org.eclipse.jdt.annotation.NonNullByDefault; import org.eclipse.jdt.annotation.Nullable; -import org.openhab.binding.hue.internal.api.dto.clip2.MetaData; +import org.openhab.binding.hue.internal.api.dto.clip2.ProductData; import org.openhab.binding.hue.internal.api.dto.clip2.Resource; import org.openhab.binding.hue.internal.api.dto.clip2.ResourceReference; import org.openhab.binding.hue.internal.api.dto.clip2.enums.Archetype; @@ -107,9 +107,10 @@ private synchronized void discoverThings() { for (Resource resource : thingHandler.getResources(new ResourceReference().setType(entry.getKey())) .getResources()) { - MetaData metaData = resource.getMetaData(); - if (Objects.nonNull(metaData) && Archetype.IGNORED_DEVICES.contains(metaData.getArchetype())) { - // bridge devices handled by bridge thing handler; other unknown devices ignored + ProductData productData = resource.getProductData(); + if (Objects.nonNull(productData) + && Archetype.BRIDGES.contains(productData.getProductArchetype())) { + // bridges are discovered elsewhere and handled by bridge thing handlers continue; }