Zoneminder question

I set up my config file as follow

sensor:
  - platform: zoneminder
    include_archived: false
    
zoneminder:
  - host: https://10.0.1.21:8443/zm/
  
camera:
  - platform: zoneminder

I

it is not working. i have this Invalid config

The following integrations and platforms could not be set up:

Please check your config.

What does the log file say?

Unable to prepare setup for platform zoneminder.sensor: Unable to set up component.
8:14:37 PM – setup.py (ERROR) - message first occurred at 8:14:33 PM and shows up 2 times
Error setting up entry for hacs
8:14:37 PM – components/frontend/__init__.py (ERROR)
Error during setup of component zoneminder
8:14:33 PM – components/zoneminder/__init__.py (ERROR)

Pretty sure you have to re-arrange the order:

zoneminder:
  - host: https://10.0.1.21:8443/zm/

sensor:
  - platform: zoneminder
    include_archived: false
 
camera:
  - platform: zoneminder

The “host:” should only have an ip address, like:

host: 10.0.1.21

Add the path to a separate line, like:
path_zms: /zm/cgi-bin/nph-zms

1 Like

I tried reordering like this

zoneminder:
  - host: 10.0.1.21
    path_zms: /zm/cgi-bin/nph-zms
  


sensor:
  - platform: zoneminder
    include_archived: false
  
 
camera:
  - platform: zoneminder

I am not sure what the path will be. I installed my Zone minder on Unraid

Usually the path is just /zm but it’s whatever the URL says when you accesss Zoneminder’s UI

I tried all possible option it still doent work. this is the last config i tried and it it the same thing.
can anybody share the config file

zoneminder:
  - host: 10.0.1.21:8443
    path: /zm/
    path_zms: /zm/cgi-bin/nph-zms
    ssl: true
    verify_ssl: true

Remove the - it’s not needed.
Remove the path and path_zms

zoneminder:
  host: 10.0.1.21:8443
  ssl: true
  verify_ssl: true

thanks for trying to help anyways, but it the same thing

Have you tried to most basic one:

zoneminder:
  host: 10.0.1.21

You don’t need username & password?

zoneminder:
  host: 10.0.1.21
  username: yyy
  password: xxx

Have you checked your certificate? Can you acess ZM with a webbrowser from the same machine as hass is installed on?

Post logs otherwise we’re just wildly guessing.

thanks again, never mind i could not get it to work. i just added the cameras manually.

I have just tried this integration and initially I had similar issues as the OP.

It turned out that the ZM user has to have “API Enabled” set to yes to make it work.

Before using this integration, I have tried manually to connect cameras (RTSP) to lovelace. The live stream had huge lag and nothing helped to reduce it. But this integration works well.