]> git.basschouten.com Git - openhab-addons.git/commitdiff
Add another motion detection topic for VivoTek FD9388-HTV (#17388)
authorMatthew Skinner <matt@pcmus.com>
Sun, 8 Sep 2024 11:14:09 +0000 (21:14 +1000)
committerGitHub <noreply@github.com>
Sun, 8 Sep 2024 11:14:09 +0000 (13:14 +0200)
Signed-off-by: Matthew Skinner <matt@pcmus.com>
bundles/org.openhab.binding.ipcamera/src/main/java/org/openhab/binding/ipcamera/internal/onvif/OnvifConnection.java

index d65e2802978a55b889a3b6c028cdae562fd5a98e..0c27eabcd9764d1fb4725112b7d9c491ffb8b6fd 100644 (file)
@@ -667,6 +667,13 @@ public class OnvifConnection {
                     ipCameraHandler.noMotionDetected(CHANNEL_CELL_MOTION_ALARM);
                 }
                 break;
+            case "VideoAnalytics/Motion":
+                if ("Trigger".equals(dataValue)) {
+                    ipCameraHandler.motionDetected(CHANNEL_MOTION_ALARM);
+                } else if ("Normal".equals(dataValue)) {
+                    ipCameraHandler.noMotionDetected(CHANNEL_MOTION_ALARM);
+                }
+                break;
             case "VideoSource/MotionAlarm":
                 if ("true".equals(dataValue)) {
                     ipCameraHandler.motionDetected(CHANNEL_MOTION_ALARM);