Net::MQTT::Simple Missing

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
Bearded_Beef
Posts: 18
Joined: Thu Mar 11, 2021 5:51 pm

Net::MQTT::Simple Missing

Post by Bearded_Beef »

Hello!

Been trying to get notifications working on Home Assistant. In my log Im being told that Net::MQTT::Simple is missing, even though it says that it's installed and up to date. I'm not sure how to troubleshoot this piece tbh, and could use some direction. My apologies in advance if I'm missing something obvious, but I couldn't find anything that seemed to relate to this situation. Thanks!

Edit: I did read the documentation and I have installed every perl module there was. I also installed the mosquitto package and enabled it. I feel like I'm really close to having this figured out.
Bearded_Beef
Posts: 18
Joined: Thu Mar 11, 2021 5:51 pm

Re: Net::MQTT::Simple Missing

Post by Bearded_Beef »

Alright, so I went crazy with updating things and reconfiguring things. I broke it all and had to restore my config files and reinstall the event server. I am now back to working object detection and everything looks good on Zoneminders end. No longer getting the MQTT::Simple missing errors. In fact, I believe they are now communicating. I am getting messages in Home Assistant that state they have found objects, but I'm getting some weird errors.

"Invalid state for entity ID: sensor.driveway_alarm. State max length is 255."

and

"File "/usr/local/lib/python3.8/site-packages/zoneminder/monitor.py", line 169, in is_recording
return int(status) == STATE_ALARM
ValueError: invalid literal for int() with base 10: 'Ok'"

The first one appears to be fixable (https://github.com/home-assistant/core/issues/15362), but I am lost on the second one. It looks like it may be a problem with Home Assistant and 1.36 (https://github.com/home-assistant/core/issues/50949)?

Does anyone have this version working with HA or have I been banging my head against a wall? Did you have to make any adjustments? I cannot seem to access the components in HA through SSH, so if thats required can you let me know how you did it?
SteveGilvarry
Posts: 494
Joined: Sun Jun 29, 2014 1:12 pm
Location: Melbourne, AU

Re: Net::MQTT::Simple Missing

Post by SteveGilvarry »

Sounds like the changes here, not sure if resolved yet as looks like a change to API consumer is required
https://github.com/ZoneMinder/zoneminder/issues/3239
Production Zoneminder 1.37.x (Living dangerously)
Random Selection of Cameras (Dahua and Hikvision)
Bearded_Beef
Posts: 18
Joined: Thu Mar 11, 2021 5:51 pm

Re: Net::MQTT::Simple Missing

Post by Bearded_Beef »

SteveGilvarry wrote: Thu May 27, 2021 1:14 pm Sounds like the changes here, not sure if resolved yet as looks like a change to API consumer is required
https://github.com/ZoneMinder/zoneminder/issues/3239
That definitely seems to answer my second question, thank you very much!

With the 255 character issue, Im looking into either trying to limit the info given by ZM or trying to figure out the correct json configuration to parse the data a bit.
Bearded_Beef
Posts: 18
Joined: Thu Mar 11, 2021 5:51 pm

Re: Net::MQTT::Simple Missing

Post by Bearded_Beef »

Giving up on this after 2 nearly full days working on it. Integration with Home Assistant does not seem to be in the best place right now. I appreciate all of your help and of course Connor's active development.
Post Reply