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
70.05k stars 29.12k forks source link

Reolink pet detection issues #94484

Closed domosgabor closed 1 year ago

domosgabor commented 1 year ago

The problem

It seems that pet detection related binary sensors do not work in HA, although there are new events in the official Reolink Windows desktop application and in the Reolink mobile app. Person detection works fine.

image

What version of Home Assistant Core has the issue?

core-2023.6.1

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Supervised

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

I checked with my RLC-811A connected to a RLN-8 NVR and pet detection is working without any issue for me.

@domosgabor do you see any errors in the log?

Please turn on debug logging for the reolink integration, then restart HomeAssistant, ensure you have a pet detection on the camera while the debug logging is on, then turn off debug logging and post the debug log .txt file here and mention at which timestamp the reolink software told you the pet was detected. I can then hopefully figure out what the problem is.

mnpg commented 1 year ago

Hi @domosgabor, what is the the problem with the official Reolink HA integration? all the parameters and intelligence are in your camera. The Reolink HA integration is to access to detection responses or set some parameters of the camera (like the pet sensibility) and no more. You have to adjust the other parameters through the Reolink app that the official HA Reolink integration cannot set to have a better response. Regards

dabepp commented 1 year ago

I also have the issue that the pet detection is not working for my camera. It was not working with the HACS integration and now also with the official integration the same issue:

image

Model RLC-410W Build No. build 22042505 Hardware No. IPC_30K128M4MP Config Version v3.1.0.0 Firmware Version v3.1.0.739_22042505

starkillerOG commented 1 year ago

@dabepp please do not use both the HACS/ONVIF and build in integrations at the same time. remove the other integration and only use the reolink integration.

Please turn on debug logging for the reolink integration, then restart HomeAssistant, ensure you have a pet detection on the camera while the debug logging is on, then turn off debug logging and post the debug log .txt file here and mention at which timestamp the reolink software told you the pet was detected. I can then hopefully figure out what the problem is.

I will need a debug log to help you.

dabepp commented 1 year ago

Understood! Followed your instructions, will post logs as soon our tomcat (or one of the other cats) walk through our garden! ;-)

Thank you!

dabepp commented 1 year ago

Ok getting rid of the HACS Integration did the trick! Thank you for pointing into the right direction! IMG_5003

starkillerOG commented 1 year ago

@dabepp good to hear, thanks for the feedback.

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.

starkillerOG commented 1 year ago

This PR https://github.com/home-assistant/core/pull/94770 which is merged will add a aditional long polling fallback for receiving events (also pet detection)

It will be included in HomeAssistant 2023.7 which will be released July 5th 2023. Therefore I think it is save to close this issue.

If you still experiance problems when on the latest camera firmware and on HA 2023.7, please let me know.

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.

domosgabor commented 1 year ago

It seems that with the latest HA update pet detection works fine. Thanks!

starkillerOG commented 1 year ago

Thank you for the feedback!