Closed vanbalken closed 3 years ago
onvif documentation onvif source (message by IssueLinks)
Hey there @hunterjm, mind taking a look at this issue as its been labeled with a integration (onvif
) you are listed as a codeowner for? Thanks!
(message by CodeOwnersMention)
looks like this could be related to what I've discussed here https://github.com/home-assistant/core/issues/36111#issuecomment-633390203 with @hunterjm
This one is a little different. It looks like it's attempting to renew the subscription, but is failing before it gets a chance to. The device likely closes the connection before it can renew.
I'm having a similar thing with my IPC Dahua 1531S cameras. Checking in Onvif device manager I can see the events, however they stopped working in HA after a day or so.
When I delete and readd the cameras it works again.
same here on my Hikvision DS-HD1, everything works great for a couple of days and then suddenly it no longer reports motion or in some cases it's stuck in "motion detected", restarting HA solves the issue.
@hunterjm I recall from another issue you mentioned you have the same door bell camera, I'm curious if you experience similar issue.
@vanbalken Sorry to hijack this issue but I have a similar set up like you with the c100 but I don't see the motion sensor at all. Did you do something else to get the binary_sensor?
@herrwusel I needed to enable the motion sensor from the mobile app, but I didn't require any additional configuration in Home Assistant I think. I haven't used my c100 with Home Assistant in a couple of months so I'm not 100% sure :)
I'm still hitting this issue on my Hikvision DS-HD1, motion events work for a couple of hours after starting HA and then they just stop reporting.
Same camera attached to my Synology (for recording) through ONVIF works just fine, had to fallback to webhook intergation from Synology to HA.
@hunterjm I recall you have the same Doorbell, does that work ok for you?
@dkulchinsky - Yeah, but my doorbell has no issues reporting events. I may have used HikVision's batch update tool to disable daylight savings time on it since it was reporting the wrong timestamp, which may also cause issues with re-subscribing to events?
ohh, that could be! so you disabled DST and manually adjust TZ?
On Thu., Oct. 15, 2020, 18:34 Jason Hunter, notifications@github.com wrote:
@dkulchinsky https://github.com/dkulchinsky - Yeah, but my doorbell has no issues reporting events. I may have used HikVision's batch update tool to disable daylight savings time on it since it was reporting the wrong timestamp, which may also cause issues with re-subscribing to events?
[image: image] https://user-images.githubusercontent.com/747670/96192864-f048d680-0f14-11eb-8cbf-4091c53269b0.png
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/36336#issuecomment-709625494, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOY63PEAQIRVSROMLILDINDSK52IXANCNFSM4NPUOOJQ .
yes
Thanks @hunterjm, I'll try the same
@hunterjm, no luck here... I disabled DST and adjusted the TZ accordingly but events stop after some time.
I also verified the integration no longer complains about time difference.
Any other ideas?
Just wanted to chime in that Im having the same issues with an Anpviz camera. What is interesting that I have setup Surveillance station on my Qnap nas to record on motion and that has been running flawlessly.
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
The problem
The binary_sensor, for motion detection, created by the ONVIF integration stops working after a while. After rebooting Home Assistant the sensor works again until the same issue occurs again.
Environment
Traceback/Error logs
Additional information
My camera is a TP-Link Tapo C100. I've connected the camera using the UI. Information about connecting the camera using ONVIF can be found here: https://www.tapo.com/uk/faq/70/
The ONVIF service port of the camera is 2020, but in the stacktrace I see port 1024. Could this cause the issue? Or are multiple ports used?