home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
72.69k stars 30.44k forks source link

Reolink person/pet/vehicle sensors repeatedly turn on/off and do not reflect camera events #90981

Closed arthurEspooner closed 1 year ago

arthurEspooner commented 1 year ago

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[bot] commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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

arthurEspooner commented 1 year ago

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 commented 1 year ago

@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 commented 1 year ago

removed

starkillerOG commented 1 year ago

@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 commented 1 year ago

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 commented 1 year ago

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: https://github.com/home-assistant/core/pull/91070 That will probably help a lot.

arthurEspooner commented 1 year ago

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

starkillerOG commented 1 year ago

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.