ZoneMinder


The ZoneMinder component sets up the integration with your ZoneMinder instance so that cameras, sensors, and switches can use it.

Configuration

# Example configuration.yaml entry
zoneminder:
  host: ZM_HOST

Configuration Variables

host

(string)(Required)Your ZoneMinder server’s host (and optional port), not including the scheme.

path

(string)(Optional)Path to your ZoneMinder install.

Default value: /zm/

path_zms

(string)(Optional)Path to the CGI script for streaming. This should match PATH_ZMS in ZM’s “Paths” settings.

Default value: /zm/cgi-bin/nph-zms

ssl

(boolean)(Optional)Set to true if your ZoneMinder installation is using SSL.

Default value: false

verify_ssl

(boolean)(Optional)Verify the certification of the endpoint.

Default value: true

username

(string)(Optional)Your ZoneMinder username.

password

(string)(Optional)Your ZoneMinder password. Required if OPT_USE_AUTH is enabled in ZM.

Full configuration

# Example configuration.yaml entry
zoneminder:
  host: ZM_HOST
  path: ZM_PATH
  path_zms: ZM_PATH_ZMS
  ssl: true
  verify_ssl: true
  username: YOUR_USERNAME
  password: YOUR_PASSWORD

Service

Once loaded, the zoneminder platform will expose a service (set_run_state) that can be used to change the current run state of ZoneMinder.

Service data attribute Optional Description
name no Name of the new run state to set.

For example, if your ZoneMinder instance was configured with a run state called “Home”, you could write an automation that changes ZoneMinder to the “Home” run state by including the following action:

action:
  service: zoneminder.set_run_state
  data:
    name: Home