Hello everyone
I’m trying to add ZoneMinder to my Home Assistant to get a live feed from a camera.
ZoneMinder works as it should, I have a live feed of the camera in the GUI (after much toil).
I’ve been looking at the guide here but as many of the integration guides from the Home Assistant website, it’s very short and assumes a lot of knowledge. But I’ve tried my best.
Okay, here’s the setup:
- ZoneMinder is running on the same Raspberry Pi 3B+ as Home Assistant. (I only want one camera, currently running 1280*720, so as not to stress the CPU).
- This is my configuration.yaml:
#Camera feed from ZoneMinder
zoneminder:
- host: http://127.0.0.1/zm
path: /etc/zm/
path_zms: /zm/cgi-bin/nph-zms
ssl: false
verify_ssl: false
username: xxxx
password: xxxx
camera:
- platform: zoneminder
I know the guide says that the path is /zm/ but it’s not for me for some reason. /zm/ does not exist, but my zm.conf etc are in /etc/zm/. I’ve tried with SSL on or off and with https/http and port 443 and 80. The host is http://127.0.0.1/zm because if I use that URL in the browser then I get into ZM, so that’s just my idea. Home Assistant is talking to ZoneMinder locally anyway.
I’ve been trying to read the log error I get but it’s not really helping me along. Maybe one of your could help me decipher where the hookup is. This is the first error block I get:
Logger: homeassistant.setup
Source: components/zoneminder/__init__.py:75
First occurred: 23.02.28 (1 occurrences)
Last logged: 23.02.28
Error during setup of component zoneminder
Traceback (most recent call last):
File "/home/pi/homeassistant/lib/python3.8/site-packages/urllib3/connection.py", line 169, in _new_conn
conn = connection.create_connection(
File "/home/pi/homeassistant/lib/python3.8/site-packages/urllib3/util/connection.py", line 73, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/local/lib/python3.8/socket.py", line 918, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known
I get further errors afterwards, you can see all of them in this pastebin.
Anyone out there had success integrating ZoneMinder with Home Assistant who has an idea how to help? I would greatly appreciate your input.