-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
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
Reolink "Did not receive initial ONVIF" after upgrade to 2023.4.0 #90931
Comments
Hey there @starkillerOG, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) reolink documentation |
Think I managed to work out how to enable debug mode. I'm not sure what I am looking at but the only thing which keeps repeating is |
Think I am in the same boat here. Oddly enough, it only references 1 of my 2 cameras in the error message |
@capsel22 the "ability error" is unrelated. |
Yes I've tried this and other variations of the http address and nothing seem to clear the ONVIF error. I think the http is set correctly, if I misconfigure it I get the SSL error for motion sensor and as far as I can tell everything works except this ONVIF error showing. |
Same problem here with my RLC-511, I tried to fiddle with the network settings with no result, error is still there. |
@starkillerOG my HTTP URL in network settings looks right. http://192.168.1.104:8123 The URL is accessible fine, the camera is on the same VLAN and wired. The camera that is triggering the repair notifiication is: DrivewayDuoCam The other camera below isn't mentoined in the error: CatioCam For reference, below is the full "error"/notifcation I get when HomeAssistant starts up now.
Both cameras appear to be working though. I see motions alerts being recognized and cleared on the device page for each camera. |
My cameras are: RLC-511 Hard wired, HA url is ok, I tried direct ip and normal .local address and HA is perfectly reachable in both cases But contrary to cmille34, I don't see anything in the log, only the repair notification in system. |
The repair issue is new in HA 2023.4, but even if it is raised, the underlying connection is not changed. As a backup in both 2023.3 and 2023.4 polling of the motion/AI state is done every 60 seconds, but that is a game of change if it catches the motion/AI event. About 20% of motion events is captured using polling at 60 seconds and is therefore quite unreliable. It seems unlikely that ONVIF pushes were working in 2023.3 and stopped working on 2023.4, If that is really true, I would need 2 debug logs: one on 2023.3 and one on 2023.4 in the same situation, one showing the ONVIF pushes in the debug log and the other not. |
If you turn on debug logging and see the ONVIF pushes comming in for the camera that is giving the repairs issue, it could be that only the initial state is not pushed by the WS base subscription and then there is potentially something I can do about it. If you never see ONVIF pushes from the camera, there is some issue in your network configuration, which I can do nothing about. At last a possibility could be that your specific camera model does not support ONVIF WS base notifications. In that case I would be really intrested to know which models do not support this. I do see this list on the reolink site: https://support.reolink.com/hc/en-us/articles/900000617826-Which-Reolink-Products-Support-CGI-RTSP-ONVIF but I have no idea if that is accurate. If that is the case I could increase the polling intervall for those models to not mis so much motion/AI events, but than there will always be a delay between the detection and HomeAssistant showing the change. And this is resource intensive on the camera, HomeAssistant and your network. |
Same happened for me, same boat as you guys |
It could be possible that I had the chance to just be in a polling event when I saw motion detection working with the previous HA version. To be honest, I never checked if it worked every time. |
@TekFan you can enable debug mode by going to settings->devices->reolink integration of the camera overflow menu (three dots)->enable debuging |
Well motion detection works perfectly via ONVIF in Surveillance Station (Syno. NAS), so I'm sure ONVIF push is supported on my cams.
I see the RLC-511W is listed as ONVIF capable but not my RLC-511 POE, but it's support ONVIF OK, as I said it works perfectly with my NAS and the ONVIF port is set in the camera config.
Yeah, I'm afraid that's not a good idea, it will load the network, the cameras and HA and you will still miss very short events anyway. |
@TekFan do note that ONVIF does also support polling wich I do not use because the HTTP API is better for that. The pushes are comming from the ONVIF WS base notification pushes, not the ONVIF pull point subscription. It might still be that the Surveillance Station is using the ONVIF pull point subscription, I do not know.... I really need a debug log to see what is going on. |
Jeez, Im stupid, I completely forgot about this option, thanks ! |
@TekFan just for a test, could you turn off your Syno NAS/Survailance Station and then restart HomeAssistant and see if it is then working? |
I can run another debug and will upload later. I don't have logs from 2023.3 though Looking at this list you linked my camera 420-5mp does not support ONVIF which would explain the error and why it's not receiving expected ONVIF. Interestingly the webgui of the camera does have setting to change the ONVIF 8000 port, so not sure if list is inaccurate or the setting doesn't do anything. As mentioned before, motion works and everything else does too just the error. You mentioned in another comment about network setup. In my case, I've got a flat network everything on the same IP range. The cameras and HA don't even go through a router, don't think anything is being filtered. |
@capsel22 In that case I would be really interested in a debug log when you wave in front of the camera mentioned in the repairs issue/warning. Please restart HomeAssistant while debug mode is on, I can then see what is going on and can adjust the code acordingly. |
Got it, but as notifications are instantaneous in the SS UI, I don't think it's polling.
Yeah, I thought about that as well. I could try this if it occurs again, because.... actually now it works ! I just had time to do a debug session and it's full of this: 2023-04-06 20:17:17.561 INFO (MainThread) [reolink_aio.api] Reolink Entree ONVIF event channel 0, Motion: True So I guess the webhook is working ? |
Right ok, so this is getting wierd now. not quite sure where to go from here |
Mmmm, I'm going nuts... |
Same boat as you @TekFan motion was working, restarted not working. Removed integration and readded; motion works, enabled debugging - stopped. Really fiddly. I'm trying to catch some useful data to analyse but can't work this out. I'm also using QNAP with QVR but looks like I'm not using ONVIF but RTSP. At least that's what the QVR setup shows |
Yes that means the webhook is working and you are receiving ONVIF events |
@capsel22 As far as I am aware RTSP is only video so in that case QNAP would not have any awerness of motion/people/vehicle events etc. If QNAP does show the events it is most likely using RTSP for the video feed and ONVIF for the notifications, or it is doing its own AI processing to detect events. No idea how QNAP works. |
yes it could be. Just strange on 2023.3 everything worked. I will turn my qnap off and do a few tests |
I'm also having these problems. Thing is, the video doorbell is connected to my NAS (Synology) and is working alright. The indoor cam (E1 Zoom) is not connected to my NAS and is giving me an error. |
Good morning
The webhook message has now gone, will monitor and give feedback
Thank you again for your invaluable assistance
…On Thu, 20 Apr 2023 at 13:00, starkillerOG ***@***.***> wrote:
@Lezcarr <https://github.com/Lezcarr> in that case I am not sure why it
is not working.
Do you have the doorbell in a seperate VLAN perhaps?
Any other non basic network configurations?
Could you enable debug logging under Settings->Devices & Services->Reolink
integration overflow menu (three vertical dots)->Enable debug logging,
Then restart Home Assitant, wait untill it is fully stated, press the
doorbell and make some motion events in front of the doorbell, disable
debug logging and post the log here. I can then have a look if I can see
anything out of the ordinary.
—
Reply to this email directly, view it on GitHub
<#90931 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOHKWUB6IM5LWVIOKKYPQD3XCEQM7ANCNFSM6AAAAAAWVLFTDM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I have this morning received updated firmware for the E1 Zoom from Reolink support (v3.0.0.2138_23042609), which they asked me to test. Unfortunately it appears to have broken something in HA: I wonder whether I should try any troubleshooting before going back to them? Edit: Added debug logs: home-assistant_reolink_2023-05-03T09-53-33.214Z.log Edit 2: I tried removing and-readding the camera to HA, only to be met with "Host 192.168.1.161:443: failed to subscribe, could not find TerminationTime". I tried enabling HTTP only (disabling HTTPS) but the same message is received on port 80. All errors seem to pertain to this missing TerminationTime. |
@Valiante I looked through your debug log and this is the subscription response your camera is sending:
Indeed the Please report back to Reolink that the (beta) firmware you received is missing the |
Did as you suggested and they came back with another (beta) firmware (v3.0.0.2115_23050409) today, which I have just installed. I have successfully re-added the camera and I'm no longer getting the webhook URL unreachable error after restarting HA. Would you like me to gather any logs or do any specific testing again this latest version? On the surface it appears to be working correctly. New subscription response, including TerminationTime: <?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:xmime="http://tempuri.org/xmime.xsd" xmlns:xmime5="http://www.w3.org/2005/05/xmlmime" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:ns1="http://www.onvif.org/ver10/actionengine/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:ns10="http://www.onvif.org/ver10/events/wsdl/PullPointBinding" xmlns:ns11="http://www.onvif.org/ver10/events/wsdl/CreatePullPointBinding" xmlns:ns12="http://www.onvif.org/ver10/events/wsdl/PausableSubscriptionManagerBinding" xmlns:ns13="http://www.onvif.org/ver10/network/wsdl/RemoteDiscoveryBinding" xmlns:ns14="http://www.onvif.org/ver10/network/wsdl/DiscoveryLookupBinding" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:ns3="http://www.onvif.org/ver20/analytics/wsdl/RuleEngineBinding" xmlns:ns4="http://www.onvif.org/ver20/analytics/wsdl/AnalyticsEngineBinding" xmlns:tan="http://www.onvif.org/ver20/analytics/wsdl" xmlns:ns5="http://www.onvif.org/ver10/events/wsdl/PullPointSubscriptionBinding" xmlns:ns6="http://www.onvif.org/ver10/events/wsdl/EventBinding" xmlns:ns7="http://www.onvif.org/ver10/events/wsdl/SubscriptionManagerBinding" xmlns:ns8="http://www.onvif.org/ver10/events/wsdl/NotificationProducerBinding" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:ns9="http://www.onvif.org/ver10/events/wsdl/NotificationConsumerBinding" xmlns:tad="http://www.onvif.org/ver10/analyticsdevice/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tls="http://www.onvif.org/ver10/display/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trc="http://www.onvif.org/ver10/recording/wsdl" xmlns:trp="http://www.onvif.org/ver10/replay/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:trv="http://www.onvif.org/ver10/receiver/wsdl" xmlns:tse="http://www.onvif.org/ver10/search/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<SOAP-ENV:Header>
<wsa5:Action SOAP-ENV:mustUnderstand="1">http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/SubscribeResponse</wsa5:Action>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<wsnt:SubscribeResponse>
<wsnt:SubscriptionReference>
<wsa5:Address>http://192.168.1.161:8000/onvif/Notification?Idx=2329981</wsa5:Address>
</wsnt:SubscriptionReference>
<wsnt:CurrentTime>2023-05-04T12:05:28Z</wsnt:CurrentTime>
<wsnt:TerminationTime>2023-05-04T12:20:28Z</wsnt:TerminationTime>
</wsnt:SubscribeResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope> |
@Valiante great to hear Reolink came back with a working (beta) firmware so fast. Please report back to Reolink that the (beta) firmware (v3.0.0.2115_23050409) is working and fixed the issue, please also ask them to include this fix in a new firmware release for all users. |
Hi @starkillerOG , do you have an eta for the repair message suppression for older firmwares ? |
@starkillerOG I just updated to HA 2023.6.0 and I am still getting the webhook error for my E1 Zoom. Is it because the firmware is not old enough that PR: #91015 is not able to fix? Snapshot from Reolink website of the firmware my E1 Zoom is currently on. |
@rleongcs yes the firmware version is too recent, but apperently might still not push its initial state on the ONVIF ws base notification then. |
Yes, it does as previously mentioned in this thread. Was just hoping that the fix would help as it does takes some time before there is a movement on that camera. 😃 |
@rleongcs I will work on improving this in the future with ONVIF long polling, but that requires quite some effort and time, so it can take quite long before I get that implemented. |
I would like to chime in briefly and say that I was having no luck linking my ReoLink NVR/cameras to HA using ONVIF and was getting that same error message (only intermittent polling, no person/pet detection etc), but after manually updating the firmware on all my cameras and the NVR itself everything seems to be working well and not getting the error even at the start. My cameras are RLC_820A's and the NVR is RLN16_410. Found some posts from two years ago that ReoLink's auto-updating doesn't work, I guess it still doesn't! |
@dellspector you are right, build in firmware upgrade from reolink does not work. |
If you appreciate the reolink integration and want to support its development, please consider sponsering the upstream library or purchase Reolink products through this affiliate link. |
The long polling PR #94770 is merged and will be included in HomeAssistant 2023.7 which will be released July 5th 2023. It will add a aditional long polling fallback for receiving events (motion/people/visitor etc) and should get rid of the warnings. If you still experiance problems when on the latest camera firmware and on HA 2023.7, please let me know. |
@starkillerOG I just updated to 2023.7 and still see the error. Just wanted to confirm if I will see the error but it will go away or I should not see it at all? |
I confirm, error is still there until the first event. |
@rleongcs @TekFan that is not what I was expecting. I want to see how the old E1 Zoom is responding to the long polling requests. |
@starkillerOG Attached please find the log file. The camera in question is |
@rleongcs thank you for the debug log, that helps! I will make a (more complex) PR to prevent the repair issues from beeing created at all (delay the creation of the repair issues with 90 seconds such that the ONVIF long poll is already received). |
@starkillerOG Great to hear that the debug log helps. Thank you very much on working to help better this integration. I have also sponsored some coffee for you 😉 |
@rleongcs thank you, much appreciated:) |
@starkillerOG I am not seeing the previous error after upgrading to HA 2023.8.0. 🎉 Thank you! |
Greath, glad it is finally resolved |
I can confirm for my RLC-511's as well. |
The problem
Getting Reolink webhook URL unreachable // Did not receive initial ONVIF state from CCTV Camera after updating to 2023.4.0. No issue on 2023.3.6
Screenshot attached.
I've removed integration and re-added all my cameras, however this error message doesn't clear.
I also checked if my https/http links changed after upgrade, but everything looks correct. Changing them creates the usual SSL error for motion sensors. So I think everything is correct in "Network" tab.
Not sure where to find any additional logs, if you let me know I'll be happy to supply.
Those are RLC-420-5MP , no NVR
What version of Home Assistant Core has the issue?
2023.4.0
What was the last working version of Home Assistant Core?
2023.3.6
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Reolink IP NVR/camera
Link to integration documentation on our website
https://www.home-assistant.io/integrations/reolink
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
The text was updated successfully, but these errors were encountered: