elad-bar / ha-blueiris

Integration with Blue Iris Video Security Software
182 stars 42 forks source link

Motion binary sensors not updating all of a sudden #183

Closed PMaxx-Gaming closed 2 years ago

PMaxx-Gaming commented 2 years ago

I've tried deleting the integration, removing it from HACS and then reinstalling/configuring it from scratch, but for some reason while my binary sensors show up in HA; they don't change state when there is motion.

I have motion alerts set up in Blue Iris, which are working just fine, and the integration has worked fine for over a year, but recently the motion binary sensors stopped working and I haven't changed anything.

Is this a known bug, or has something changed with the integration?

kramttocs commented 2 years ago

Nothing has changed in regard to that. I'd look into your MQTT setup. Maybe install MQTT explorer and make sure BI is sending them as expected.

kramttocs commented 2 years ago

Can you elaborate on 'all of a sudden'? What all changed? Just the reinstallation?

PMaxx-Gaming commented 2 years ago

I just reinstalled it in hopes that it would fix the issue. I'm not entirely sure when the issue started, as the only binary sensor I use is to trigger a light to come on at my front door when motion is detected between certain time periods, and I'm not generally home during this time.

All I can say for certain is that it WAS working for a long time, and some time fairly recently it's stopped working, when I haven't changed any of my configuration that should have affected it.

kramttocs commented 2 years ago

I don't know that I have any motion sensors setup for the cameras in HA but I'll check. Can you confirm that MQTT is getting the message(s)?

PMaxx-Gaming commented 2 years ago

I'm installing MQTT explorer now to check that. I also double checked my MQTT config in HA and BI, and they both seem fine

PMaxx-Gaming commented 2 years ago

Considering I've never really used MQTT before, aside from following a couple of tutorials for HA, MQTT Explorer seems way over my head... I don't even know where to start with it, unfortunately.

kramttocs commented 2 years ago

No worries. I just tested setting it up on a camera that didn't have motion alerts previously and it's working (don't you just love hearing that? :) image

Explorer is really the best option but I don't have it installed at the moment or else I'd try to walk through setting it up so we can see what we need. Check BI to ensure the MQTT server is setup in the global options and check the camera to ensure the 1) it's getting triggered, 2) the alert is set to send on "triggered' and 3) the 'on alert' and 'on reset' MQTT messages are setup correctly as per the manual here on Github

If those all look good, go to HA and make sure the mqtt integration looks good

Keep me updated

PMaxx-Gaming commented 2 years ago

I think there may have been an issue with my Mosquitto Broker addon. I've just reinstalled it, and I'm doing some more troubleshooting now.

PMaxx-Gaming commented 2 years ago

I wasn't able to pinpoint where the issue was, so I uninstalled everything MQTT related and reinstalled and configured from scratch. Everything seems to be working fine again now :)

It definitely seems like it was an issue with MQTT on my network though, rather than this integration.

kramttocs commented 2 years ago

Good deal