diff --git a/bundles/org.openhab.binding.ipcamera/src/main/java/org/openhab/binding/ipcamera/internal/CameraConfig.java b/bundles/org.openhab.binding.ipcamera/src/main/java/org/openhab/binding/ipcamera/internal/CameraConfig.java
index fbbbed579bfc2..3c51545db0019 100644
--- a/bundles/org.openhab.binding.ipcamera/src/main/java/org/openhab/binding/ipcamera/internal/CameraConfig.java
+++ b/bundles/org.openhab.binding.ipcamera/src/main/java/org/openhab/binding/ipcamera/internal/CameraConfig.java
@@ -30,6 +30,7 @@ public class CameraConfig {
public boolean useToken = true;
private int onvifMediaProfile;
private int pollTime;
+ private boolean hasExternalAlarmInputs = false;
private String ffmpegInput = "";
private String snapshotUrl = "";
private String mjpegUrl = "";
@@ -138,6 +139,10 @@ public int getPollTime() {
return pollTime;
}
+ public boolean getHasExternalAlarmInputs() {
+ return hasExternalAlarmInputs;
+ }
+
public int getOnvifPort() {
return onvifPort;
}
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 e43c05f09aacc..b6c45c17d5698 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
@@ -1700,7 +1700,7 @@ public void initialize() {
if (snapshotUri.isEmpty()) {
snapshotUri = "/ISAPI/Streaming/channels/" + cameraConfig.getNvrChannel() + "01/picture";
}
- if (lowPriorityRequests.isEmpty()) {
+ if (cameraConfig.getHasExternalAlarmInputs() && lowPriorityRequests.isEmpty()) {
lowPriorityRequests.add("/ISAPI/System/IO/inputs/" + cameraConfig.getNvrChannel() + "/status");
}
break;
diff --git a/bundles/org.openhab.binding.ipcamera/src/main/resources/OH-INF/thing/thing-types.xml b/bundles/org.openhab.binding.ipcamera/src/main/resources/OH-INF/thing/thing-types.xml
index d2f687f79881d..7c5780326b371 100644
--- a/bundles/org.openhab.binding.ipcamera/src/main/resources/OH-INF/thing/thing-types.xml
+++ b/bundles/org.openhab.binding.ipcamera/src/main/resources/OH-INF/thing/thing-types.xml
@@ -1986,6 +1986,14 @@
true
+
+
+ Select if your camera supports external alarm inputs (i.e. for externally connected PIR sensors, etc.).
+
+ false
+ true
+
+