-
-
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
Events intermittently not processed by Home Assistant #15
Comments
I am aware of this issue, have confirmed it lokaly in my setup and found a solution. |
If you appreciate the reolink integration and want to support its development, please consider sponsering the upstream library. |
@dmperl when looking at your log more closely I do not see any ONVIF events comming in, what local HomeAssistant URL do you have configured under settings->network? |
YES! I did. I got this message after the re-start from the 2023.4.0 upgrade: In configuration.yaml, I have both
I re-booted the sever (Raspberry Pi) and the message went away. (or did I just press Ignore??) Settings -> System -> Network -> Home Assistant URL uh-oh.. Invalid local network URL I used Duck DNS and Let's Encrypt to set this up. I'm not sure how to setup a local domain URL using the same certificate. Should I go back to the Home Assistant Community Forum? |
@dmperl you will have to use something like |
Ok. I think it's better but now the alarm report seems to be delayed by 60 seconds. Installed and running nginx: nginx SSL config: Verified that: Settings -> System -> Network -> Home Assistant URL is AOK, no error messages. Enable Reolink debug at 13:22 Disable debug at at 13:29 (log attached) Thank you for reviewing this. ;-) |
Home Assistant and Camera time are less than 1 second different. |
@dmperl I still do not see the ONVIF events comming into HomeAssistant. |
Originally, I had specified a local IP address for the internal URL. Now I have the same xxxxx.duckdns.org domain name for both internal and external URL values. (I obscured the name in the Home Assistant URL image posted earlier.) The cameras and the Home Assistant server are on different VLANs but I have enabled some cross traffic, at least to the extent that alarm/event posting works for my Amcrest and Unifi cameras. I'm very confused now. If no ONVIF events are coming through, what is generating the Person on/off events in the Home Assistant logbook? |
@dmperl polling every 60 seconds is used to get the camera state (floodlight etc) but also the motion and AI state as backup for the ONVIF pushes. However relaying soly on the polling is slow and you will miss a lot of events. You will have to configure a the local HTTP adress while using the HTTPS for the externall adress and using NGINX for the mangement of the certificate. So change https://....duckdns... to Lets first see if that works and then worry about the VLAN if it doesnt. Could you change the local URL, restart HomeAssistant and make another debug log with you generating some motion events? |
@dmperl please remove the SSL certificate configured in your YAML configurations file. (It schould now be configured in NGINX) |
It's in there: nginix: but if I remove it from my configuration.yaml file (lines 7 & 8) then my external duckdns login stops working. I'm confused by this error message:
If I replace the local IP address with the duckdns FQDN, the error message "goes away", but neither option (IP address or FQDN) let's the ONVIF events through. sorry to be so dense. |
You will have to remove the ssl_certificate and ssl_key from the http YAML config. You will also need to have http://192.168.1.IP:8123 in as local URL, otherwise Reolink ONVIF pushes will also never work. |
Got it. All issues were self-inflicted wounds. I found the picture that explained the error of my ways here: https://kleypot.com/home-assistant-nginx-unencrypted-local-traffic/ I forgot to change the forwarding port destination from 8123 to ssl/443. Your last post and a good night sleep helped me pay attention to that detail. "good" log file attached. Thanks!! |
@dmperl Thanks for the feedback. |
Describe the bug
occasionally alarms sent from my reolink camera are "lost" and do not trigger Home Assistant automations as expected.
To Reproduce
Repeatedly trigger camera with Person/Pet/Vehicle "alarms" sooner or later you will see that some "alarms" do not get processed correctly by the io handler on Home Assistant
Expected behavior
All alarms should be processed correctly when received by Home Assistant.
Screenshots
A vehicle alarm is generated at 16:25:01 April 8, 2023:
No logbook entry is created on Home Assistant for the corresponding time:
General "history" view. missing event at 16:25
Environment:
Please provide useful information about your environment, like:
Additional context
Add any other context about the problem here.
I have a debug log: home-assistant_reolink_2023-04-08T22-07-19.378Zx.log The full log is 67MB. Upload limit is 25MB. Zipped version is 2.9MB (attached)
searching log for "16:24" yields the following excerpt:
Note:
</SOAP-ENV:Header>SOAP-ENV:Bodywsnt:RenewResponsewsnt:TerminationTime2023-04-08T16:24:01Z</wsnt:TerminationTime>
home-assistant_reolink_2023-04-08T22-07-19.378Zx.zip
The text was updated successfully, but these errors were encountered: