-
-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
With NVR, AI events (person, pet, etc) only seem to work with first camera channel (and unreliably) #18
Comments
@mattdm first of all thank you very much for sponsering, that is amazing! Do you see There is currently a bug in my code wich causes events to be lost during processing due to the camera disconnecting before the data is beeing read giving a ConnectionResetError. This PR home-assistant/core#91070 will fix that, but I am still working on it. Hopefully it will be available in HA 2023.4.3 in a few days. |
Yeah — thanks for working on this!
I don't see that.... I have this:
(with tokens/passwords sanitized, I hope) followed by
(With a similar payload.) I think I was seeing_ the Webhook line before I "fixed" the https/http thing — that's where I learned what endpoint would need to be http — but those logs have rotated out. I could dredge them up from backup if that'd be really helpful.
|
The two messages you posted just mean you subscribed succesfully to the ONVIF WS base notification, but that does not mean that the cam can actually reach your HomeAssistant instance. You will have to turn on debug logging, make some movement in front of the cam, and then look if you see the What is the local HA URL you configured in settings->network ? |
Is the webhook line coming from the reolink integration or something else? I turned on debug output selectively. I am seeing this (from the camera that mostly works), at the time when a person was detected:
(with a bunch of XML) followed by:
... and then a bunch of JSON which looks to correspond to all of the cameras.... |
@mattdm alright, that means your ONVIF pushes are comming in fine. I will let you know when the patch release including this fix is available. |
Cool -- if that doesn't fix it, I'll send you more logs :) |
HomeAssistant 2023.4.5 is now available and includes the ONVIF push fix. |
Describe the bug
I have an 8-port NVR with five cameras. Motion events seem to be returned from all cameras (although not reliably, as there are many periods of "became unavailable"). All cameras have sensors for Person, Pet, Vehicle as appropriate, but only the one on the first channel ever seems to be triggered.
And, that one that does sometimes work also misses events -- for example, the Reolink event shows events this morning at 7:01:28, 7:07:09, 7:10:47, and 10:43:17. Home Assistant only shows 7:01:35 (and off a minute and one second later). (It does not show "unavailable", although yesterday evening it was unavailable for five minutes.)
To Reproduce
Intrinsic with the setup, I guess?
Expected behavior
I'd expect AI events to work from all devices, and reliably.
Screenshots
Environment:
Home Assistant: 2023.4.2 (container)
NVR: RLN8-410 (N3MB01), firmware v3.3.0.226_23031609
Cameras:
Additional context
With some sadness, I set up nginx to allow access to
/api/webhook
over http, and set the return URL as an http one. All other paths get redirected to https.I have debug logging on for reolink_aio.api, but of course it's a lot. I can send you whatever might be useful.
The text was updated successfully, but these errors were encountered: