mirror of
https://github.com/danieldemus/openhab-addons
synced 2026-07-29 12:34:21 +02:00
[ipcamera] Fix Reolink events do not auto restart (#17581)
* Fix Reolink events do not auto restart. Signed-off-by: Matthew Skinner <matt@pcmus.com>
This commit is contained in:
+5
@@ -1593,6 +1593,11 @@ public class IpCameraHandler extends BaseThingHandler {
|
||||
sendHttpGET("/api.cgi?cmd=GetMdState&channel=" + cameraConfig.getNvrChannel() + reolinkAuth);
|
||||
} else {
|
||||
onvifCamera.sendOnvifRequest(RequestType.Renew, onvifCamera.subscriptionXAddr);
|
||||
if (onvifCamera.pullMessageRequests.intValue() == 0) {
|
||||
logger.debug("The alarm stream was not running for Reolink camera {}, re-starting it now",
|
||||
cameraConfig.getIp());
|
||||
onvifCamera.sendOnvifRequest(RequestType.PullMessages, onvifCamera.subscriptionXAddr);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case DAHUA_THING:
|
||||
|
||||
Reference in New Issue
Block a user