-Problem | Solution |
-Cannot connect to ZoneMinder Bridge | Check if you can logon to ZoneMinder from your openHAB server (with http). |
- | Check that it is possible to establish a Telnet connection from openHAB server to Zoneminder Server |
-ZoneMinder Bridge is not comming ONLINE. It says: 'OFFLINE - COMMUNICATION_ERROR Cannot access ZoneMinder Server. Check provided usercredentials' | Check that the hostname is valid, if using a DNS name, make sure name is correct resolved. Also check that the given host can be accessed from a browser. Finally make sure to change the additional path from '/zm', if not using standard setup. |
-Cannot connect to ZoneMinder Bridge via HTTPS, using Letsencrypt certificate | Verify your Java version, if Java is below build 101, letsencrypt certificate isn't known by Java. Either use HTTP or upgrade Java to newest build. Please be aware that https support is provided as an experimental feature. |
-I have tried all of the above, it still doesn't work | Try to execute this from a commandline (on your openHAB server): curl -d "=XXXX&=YYYY&action=login&view=console" -c cookies.txt http:///zm/index.php. Change , and to the actual values. This will check if your server is accessible from the openHAB server. |
-
+```
+rule "Record When Motion Detection Cleared"
+when
+ Item MotionSensorAlarm changed to OFF
+then
+ val zmActions = getActions("zoneminder", "zoneminder:monitor:1")
+ zmActions.triggerAlarmOff()
+end
+```
+
+```
+val int NUM_MONITORS = 6
+var int monitorId = 1
+
+rule "Rotate Through All Monitor Images Every 10 Seconds"
+when
+ Time cron "0/10 * * ? * * *"
+then
+ var String id = String::format("%d", monitorId)
+ ZmServer_ImageMonitorId.sendCommand(id)
+ monitorId = monitorId + 1
+ if (monitorId > NUM_MONITORS) {
+ monitorId = 1
+ }
+end
+```
diff --git a/bundles/org.openhab.binding.zoneminder/pom.xml b/bundles/org.openhab.binding.zoneminder/pom.xml
index e64421c6705..c2eb9d12813 100644
--- a/bundles/org.openhab.binding.zoneminder/pom.xml
+++ b/bundles/org.openhab.binding.zoneminder/pom.xml
@@ -1,5 +1,5 @@
-
-