hjdhjd / homebridge-unifi-protect

:video_camera: Complete HomeKit integration for all UniFi Protect device types with full support for most features including HomeKit Secure Video, and more. https://homebridge.io
Other
1.46k stars 93 forks source link

Connection reset happening every hour according to Homebridge log #38

Closed tronny87 closed 4 years ago

tronny87 commented 4 years ago

Hi there,

I was looking at my Homebridge log for the first time in quite some time and noticed some frequent activity coming from the plug-in.

[8/13/2020, 2:15:19 PM] [UniFi Protect] X.X.X.X: Connection reset. [8/13/2020, 2:15:19 PM] [UniFi Protect] X.X.X.X: Unable to retrieve NVR configuration information from UniFi Protect. Will retry again later. [8/13/2020, 2:15:29 PM] [UniFi Protect] UniFi Controller [UDM-PRO]: Connected to the Protect controller API (address: X.X.X.X mac: XXXXXXXXXXX). [8/13/2020, 2:15:29 PM] [UniFi Protect] UniFi Controller [UDM-PRO]: Connected to the UniFi realtime system events API.

This supposed connection reset seems to be happening every hour, on the hour. I was wondering whether or not this event is normal?

Thanks!

hjdhjd commented 4 years ago

Thanks for reporting this. This is a harmless error, there for informational purposes. Connections to the controller occasionally get reset on the controller end. It’s not a bug...it’s informational.

That said, in looking at my own logs, it does seem to be occurring hourly...I’m guessing that Protect enforces a one-hour lifetime for connections. I’ll look into it and push an update to address. Thanks for raising it.

In other news...I have my G4 Doorbell...hoping to get something up and running in the coming days, depending on how busy the real world gets. :smile:

tronny87 commented 4 years ago

@hjdhjd Super stoked for doorbell support. I’ve been using the HomeKit motion alerts on the doorbell which have been working flawlessly, alongside doorbell press alerts from the Protect app.

Can’t wait to be able to get all my notifications via HomeKit and leave alerts from the Protect app behind :-)

brianmedia commented 4 years ago

In other news...I have my G4 Doorbell...hoping to get something up and running in the coming days, depending on how busy the real world gets. :smile:

Woohoo! 🎉 will be awesome to get the video notification on Apple TV when the doorbell rings.

fpuigb commented 4 years ago

Can't wait to start testing the doorbell integration :-)

hjdhjd commented 4 years ago

@fpuigb Me too! :smile:

hjdhjd commented 4 years ago

@tronny87 I've squashed this one. It'll be in an update later. Interesting bug / quirky behavior. It was fun to chase this one.

hjdhjd commented 4 years ago

Closing this one out - fixed in 3.2.0. There's also something there that a few folks have been waiting for...enjoy.

Affordic commented 2 years ago

@hjdhjd -- I am seeing this error numerous times in my logs: Unable to retrieve NVR configuration information from UniFi Protect. Will retry again later. and Controller API connection terminated because it was taking too long. This error can usually be safely ignored.

I am seeing these repeated many times. Is it possible this issue has returned after an update from Unifi?

jnanes commented 1 year ago

Ditto, same for me,

github-actions[bot] commented 1 year ago

This issue is locked to prevent necroposting on closed issues. Please create a new issue for related support requests, bug reports, or feature suggestions.