elad-bar / ha-blueiris

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

Server Down but HA showing 'Connected' on all cams. #212

Closed floodwayprintco closed 1 year ago

floodwayprintco commented 1 year ago

My BlueIris server went down last night. I had some automations set up based on the 'connected' status of cameras, and availability of the server device. They are all showing connected even though I can't pull up any cameras from HA and the server has been down about 8 hours at this point.

I must be missing something here, is there a reason my 'connected' status on cameras is not updating?

kramttocs commented 1 year ago

The 'connected' status is identifying if Blue Iris is able to connect to the camera not if HA can connect to BI/Camera. So BI has to be running to change this state. Hope that makes sense. Additionally, the connected status needs to be setup via MQTT (see the manual for details). Thanks

floodwayprintco commented 1 year ago

Thank you, I think I am missing the MQTT portion. I forgot I set that up manually for the motion.

kramttocs commented 1 year ago

Just to be clear though - if the BI server is down, it won't be able to update HA :)

That said, I could see the benefit of having a 'connected' sensor for the Server entity that if the integration failed to reach it, would change to offline/disconnected. Not sure how other integrations handle situations like this.

floodwayprintco commented 1 year ago

Thank you. I did find it odd that BlueIris has Watchdog settings per camera, but not for the server itself.

I do speculate that the next time I have this issue, that a camera or two would disconnect before the entire system locks up. So I will still be setting up all the rest of my MQTT settings.

I looked at Blue Iris Tools but at first glance it doesn't have the MQTT integration, which I want to use to tell HomeAssistant to physically reset the power on the machine with a smart plug.