Proper configuration mqtt / zoneminder?

Hi everyone,

I’m learning HA and have the addon mqtt broker installed. I’m not sure what I’m doing wrong here so hoping community can point it out.

I have zoneminder setup with event server and notifications are being sent to the mqtt broker. You can see flow in logs here:

I have a mqtt in flow configured to broker and topic: zoneminder/1
image
image

However, i’m not seeing any information in the debug. I used a out mqtt configured against the same topic and I see payloads coming.

Tips on what I’m doing wrong here? Ultimately I’m wanting to use mqtt to alert me so I can trigger a light to turn on.

Maybe you can help me?
I have the dlandon docker Zoneminder installed. I don’t get MQTT to work properly and i don’t see any logs with zmeventnotification.ini.

My broker is running correctly with other devices.
I also changed the secrets.ini with my username and password.

Likely this is on the zoneminder side. Do you see logs being generated within zoneminder that indicate zoneminder has sent a mqtt message?

No i don’t see anything. I should see zmeventnotification in the logs i think?

sounds like you do not have event server setup correctly.

  1. did you install event server with the container? Assume you may be using machine learning as well
  2. in your zmeventnotification.ini do you have this?
event_end_notify_on_hook_success = fcm,web,api,mqtt

1 i really don’t know, sorry! How can I install it in docker?
2 i found the line and i miss “mqtt”. I edited like your line.

I’m a little further now. Any suggestion?

I stumbled over this small step myself after realizing that the dlander container allows you to enable both ML and ES as part of the configuration. However what it doesn’t do is install a mqtt client within the container.

You need to shell into the docker container for zoneminder and run this:

perl -MCPAN -e "install Net::MQTT::Simple"

source info:
https://zmeventnotification.readthedocs.io/en/latest/guides/install.html

I’m having the same issue. Followed all the steps. debug says mqtt is running.
user and password, broker are all correct.

I did initially get it working but then messed up the installation, so started again clean. This time it will not send any payloads to my broker. Very odd.