diff --git a/bundles/org.openhab.core.config.discovery.addon.upnp/src/main/java/org/openhab/core/config/discovery/addon/upnp/UpnpAddonFinder.java b/bundles/org.openhab.core.config.discovery.addon.upnp/src/main/java/org/openhab/core/config/discovery/addon/upnp/UpnpAddonFinder.java index 4af9d96f85d..68925b6ce67 100644 --- a/bundles/org.openhab.core.config.discovery.addon.upnp/src/main/java/org/openhab/core/config/discovery/addon/upnp/UpnpAddonFinder.java +++ b/bundles/org.openhab.core.config.discovery.addon.upnp/src/main/java/org/openhab/core/config/discovery/addon/upnp/UpnpAddonFinder.java @@ -12,7 +12,8 @@ */ package org.openhab.core.config.discovery.addon.upnp; -import static org.openhab.core.config.discovery.addon.AddonFinderConstants.*; +import static org.openhab.core.config.discovery.addon.AddonFinderConstants.SERVICE_NAME_UPNP; +import static org.openhab.core.config.discovery.addon.AddonFinderConstants.SERVICE_TYPE_UPNP; import java.net.URI; import java.util.HashSet; @@ -25,6 +26,7 @@ import org.eclipse.jdt.annotation.NonNullByDefault; import org.eclipse.jdt.annotation.Nullable; import org.jupnp.UpnpService; +import org.jupnp.model.message.header.RootDeviceHeader; import org.jupnp.model.meta.DeviceDetails; import org.jupnp.model.meta.LocalDevice; import org.jupnp.model.meta.ManufacturerDetails; @@ -86,6 +88,7 @@ public UpnpAddonFinder(@Reference UpnpService upnpService) { } registry.addListener(this); upnpService.getControlPoint().search(); + upnpService.getControlPoint().search(new RootDeviceHeader()); } @Deactivate diff --git a/bundles/org.openhab.core.config.discovery.upnp/src/main/java/org/openhab/core/config/discovery/upnp/internal/UpnpDiscoveryService.java b/bundles/org.openhab.core.config.discovery.upnp/src/main/java/org/openhab/core/config/discovery/upnp/internal/UpnpDiscoveryService.java index e9f13bb600b..90d2dadcf5d 100644 --- a/bundles/org.openhab.core.config.discovery.upnp/src/main/java/org/openhab/core/config/discovery/upnp/internal/UpnpDiscoveryService.java +++ b/bundles/org.openhab.core.config.discovery.upnp/src/main/java/org/openhab/core/config/discovery/upnp/internal/UpnpDiscoveryService.java @@ -24,6 +24,7 @@ import org.eclipse.jdt.annotation.Nullable; import org.jupnp.UpnpService; +import org.jupnp.model.message.header.RootDeviceHeader; import org.jupnp.model.meta.LocalDevice; import org.jupnp.model.meta.RemoteDevice; import org.jupnp.model.types.UDN; @@ -151,6 +152,7 @@ protected void startScan() { } upnpService.getRegistry().addListener(this); upnpService.getControlPoint().search(); + upnpService.getControlPoint().search(new RootDeviceHeader()); } @Override