diff --git a/bundles/org.openhab.binding.ipcamera/src/main/java/org/openhab/binding/ipcamera/internal/handler/IpCameraHandler.java b/bundles/org.openhab.binding.ipcamera/src/main/java/org/openhab/binding/ipcamera/internal/handler/IpCameraHandler.java index cab6e79c8..e43c05f09 100644 --- a/bundles/org.openhab.binding.ipcamera/src/main/java/org/openhab/binding/ipcamera/internal/handler/IpCameraHandler.java +++ b/bundles/org.openhab.binding.ipcamera/src/main/java/org/openhab/binding/ipcamera/internal/handler/IpCameraHandler.java @@ -1424,7 +1424,7 @@ public class IpCameraHandler extends BaseThingHandler { } logger.debug("About to connect to the IP Camera using the ONVIF PORT at IP: {}:{}", cameraConfig.getIp(), cameraConfig.getOnvifPort()); - onvifCamera.connect(thing.getThingTypeUID().getId().equals(ONVIF_THING)); + onvifCamera.connect(supportsOnvifEvents()); return; } if ("ffmpeg".equals(snapshotUri)) {