This binding offers integration to a ZoneMinder Server. It currently only offers to integrate to monitors (eg. cameras in ZoneMinder).
It also only offers access to a limited set of values, as well as a even more limited option to update values in ZoneMinder.
It requires at least ZoneMinder 1.29 with API enabled (option 'OPT_USE_API' in ZoneMinder must be enabled).
The option 'OPT_TRIGGERS' must be anabled to allow openHAB to trip the ForceAlarm in ZoneMinder.
This binding supports the following thing types
|ZoneMinder Server||Bridge||Manual||A ZoneMinder Server. Required version is minimum 1.29|
|ZoneMinder Monitor||Thing||Automatic||Monitor as defined in ZoneMinder Server|
Getting started / Discovery
The binding consists of a Bridge (the ZoneMinder Server it self), and a number of Things, which relates to the induvidual monitors in ZoneMinder.
ZoneMinder things can be configured either through the online configuration utility via discovery, or manually through the 'zoneminder.things' configuration file.
The Bridge will not be autodiscovered, this behavior is by design.
That is because the ZoneMinder API can be configured to communicate on custom ports, you can even change the url from the default /zm/ to something userdefined.
That makes it meaningless to scan for a ZoneMinder Server.
The Bridge must therefore be added manually, this can be done from PaperUI.
After adding the Bridge it will go ONLINE, and after a short while and the discovery process for monitors will start.
When a new monitor is discovered it will appear in the Inbox.
|Channel ||Type ||Description|
|online ||Switch ||Parameter indicating if the server is online|
|CPU load ||Text ||Current CPU Load of server|
|Disk Usage ||text ||Current Disk Usage on server|
|Channel ||Type ||Description|
|online ||Switch ||Parameter indicating if the monitor is online|
|enabled ||Switch ||Parameter indicating if the monitor is enabled|
|force-alarm ||Switch ||Parameter indicating if Force Alarm for the the monitor is active|
|alarm ||Switch ||true if monitor has an active alarm|
|recording ||Text ||true if monitor is recording|
|detailed-status ||Text ||Detailed status of monitor (Idle, Pre-alarm, Alarm, Alert, Recording)|
|event-cause ||Text ||Empty when there is no active event, else it contains the text with the cause of the event|
|function ||Text ||Text corresponding the value in ZoneMinder: None, Monitor, Modect, Record, Mocord, Nodect|
|capture-daemon ||Switch ||Run state of ZMC Daemon|
|analysis-daemon ||Switch ||Run state of ZMA Daemon|
|frame-daemon ||Switch ||Run state of ZMF Daemon|
|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 "<username>=XXXX&<password>=YYYY&action=login&view=console" -c cookies.txt http://<yourzmip>/zm/index.php. Change <yourzmip>, <username> and <password> to the actual values. This will check if your server is accessible from the openHAB server.|