Skip to content
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 person/pet/vehicle sensors repeatedly turn on/off and do not reflect camera events #90981

Closed
arthurEspooner opened this issue Apr 6, 2023 · 11 comments · Fixed by #91070

Comments

@arthurEspooner
Copy link

arthurEspooner commented Apr 6, 2023

The problem

Events do not always fire for person/vehicle/pet. Seems very inconsistent. Usually reports "off". I can rarely get a person event to come through.

https://github.com/fwestenberg/reolink_dev

The above worked great before.

Aslo, the switch to enable/disable auto-tracking isn't available. I can toggle this via the camera itself.

This is an RLC-823a, latest firmware.

What version of Home Assistant Core has the issue?

2023.4.0

What was the last working version of Home Assistant Core?

N/A

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Reolink

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

No response

@home-assistant
Copy link

home-assistant bot commented Apr 6, 2023

Hey there @starkillerOG, mind taking a look at this issue as it has been labeled with an integration (reolink) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of reolink can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign reolink Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


reolink documentation
reolink source
(message by IssueLinks)

@starkillerOG
Copy link
Contributor

The enable/disable auto-tracking has been fixed in HA 2023.4.1, please update.

Could you enable debug logging under Settings->Devices & Services->Reolink integration overflow menu (three vertical dots)->Enable debug logging,
Then restart Home Assitant, wait for 5 minutes, disable debug logging and post the log here.

That will allow me to see what is going on with the ONVIF pushes.

@starkillerOG
Copy link
Contributor

If you appreciate the reolink integration and want to support its development, please consider sponsering the upstream library.

@arthurEspooner
Copy link
Author

yes the auto track switch is working now, thanks. what part of the logs are you interested in? it's 20k lines and i see stuff related to ONVIF subscription.

@starkillerOG
Copy link
Contributor

@arthurEspooner I am intrested in the ONVIF logs since that is what you are telling me is having issue.
Please just post it as a .txt file, I can sort through it and know what I am looking at (I wrote those debug messages myself).

@arthurEspooner
Copy link
Author

arthurEspooner commented Apr 7, 2023

removed

@starkillerOG
Copy link
Contributor

@arthurEspooner I do not see anything strange in the log, I can see the ONVIF events comming in fine.
Do you see events in the Reolink App while you do not see those events appearing in HomeAssistant?

@arthurEspooner
Copy link
Author

arthurEspooner commented Apr 7, 2023

i have a few automations linked to detection from the old integration and they fire 100% of the time. i do not use the reolink app for anything, i had blue iris set up previously. i am trying to migrate everything for my camera to HA now with this new integration.

i do get some events, just not all of them. i tested standing right in front of the camera for 2 minutes and the "person" sensor never turned "on". i tried it again later, it worked. now it doesn't work.

EDIT: i just tested again and it worked consistently. i'm not sure if 4.1 fixed something between last night and today but i'll do some more testing and update.

@starkillerOG
Copy link
Contributor

I found a issue which caused ONVIF events to be lost mid processing due to canncelation of the task due to the camera disconnecting. I made a fix for it here: #91070
That will probably help a lot.

@arthurEspooner
Copy link
Author

cool, i'll try it when updated. thanks.

@starkillerOG
Copy link
Contributor

HomeAssistant 2023.4.5 is now available and includes the ONVIF push fix.
Please let me know if it is now working for you on 2023.4.5.

If you appreciate the reolink integration and want to support its development, please consider sponsering the upstream library.

@github-actions github-actions bot locked and limited conversation to collaborators May 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants