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.39k stars 30.3k forks source link

Reolink Duo Wifi : Sensors not working from second lens (Lens1) #94808

Closed dhavaldesai-HA closed 1 year ago

dhavaldesai-HA commented 1 year ago

The problem

Hi,

I got Reolink Duo Wifi camera and have intergrated it using HA Reolink intergration. Unfortunately the Person/Pet/Vehical detection sensors from Lens1 are not available. Same sensors from Lens0 are working fine.

Can someone help please?

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 OS

Integration causing the issue

No response

Link to integration documentation on our website

No response

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

@dhavaldesai-HA I am code-owner of the reolink integration and should be able to help you. But first I need some additional information: In the reolink app/client:

starkillerOG commented 1 year ago

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.

dhavaldesai-HA commented 1 year ago

Hi @starkillerOG ,

Thanks for picking this case up.

does the duo camera show up as two seperate camera's? Yes, I see two separate cameras. image

can you see a motion event comming in on lens 0 while lens 1 is not seeing a motion event? Yes, motion event, person event and vehicle even are separate per lens.

can you see a motion event comming in on lens 1 while lens 0 is not seeing a motion event? Yes, motion event, person event and vehicle even are separate per lens.

Can you filter the playback of the duo camera for motion seperately per lens? No, but I'm not completely sure what you're asking. If Lens 1 sees a vehicle, it sends me an alert that "vehicle was detected on Front Camera 1" but it records the event on both camera. When I playback that event, it shows me the feed from both camera. Similarly, If Lens 0 sees a person, it sends me an alert that "Person was detected on Front Camera 0" but it records the event on both camera. When I playback that event, it shows me the feed from both camera.

Today 'vehicle detected on Front Camera 1" notification was correctly sent thru Reolink app 8 times. In HA, Vehicle sensor for Lens0 remains off which is correct as vehicle was detected in front of Lens 1.

Hope I was able to explain it in detail. Please let me know if you need any other info.

starkillerOG commented 1 year ago

@dhavaldesai-HA could you turn on debug logging for the reolink integration, then restart HomeAssistant, wait 2 minutes, disable debug logging and post the resulting .txt log file here. I need to see how the channels are beeing reported for the DUO wifi.

starkillerOG commented 1 year ago

And what firmware version of the DUO wifi are you running?

dhavaldesai-HA commented 1 year ago

Hi @starkillerOG ,

Sorry for the delayed response. I was in vacation. Debug file is attached. Please note that I got two Reolink cameras. Garden Cam is is RLC-510WA which is working fine. Front camera is the Reolink Duo WiFi which is facing this issue.

Firmware of Duo : v3.0.0.1388_22100601

home-assistant_reolink_2023-07-29T13-28-23.463Z.log

starkillerOG commented 1 year ago

@dhavaldesai-HA I am working on improving the support for the Reolink DUO (v1) now. One additional question: Can you set the motion and/or AI detection sensitivity levels seperatly for each lens of the DUO camera in the Reolink app, or if you change in lens 0 does the same value also get applied to lens 1?

starkillerOG commented 1 year ago

@dhavaldesai-HA This PR https://github.com/starkillerOG/reolink_aio/pull/42 in the upstream library should enable the motion/AI sensors + sensitivity number entities for the Reolink DUO (v1). I am just waiting on your response if the sensitivity levels can be set seperatly before I merge it.

dhavaldesai-HA commented 1 year ago

Hi @starkillerOG ,

I'm NOT able to set the motion and AI detection sensitivity in Reolink app separately for each lens of Duo. There is only one setting that that applies to both lenses.

image

image

starkillerOG commented 1 year ago

@dhavaldesai-HA thank you for the feedback, will remove the second entity for those settings in that case. So clicking on the gear icon of lens 1 and lens 2 give the same settings. Its an intresting camera, some things are seperated like the motion events and stream channels while others are coupled.....

dhavaldesai-HA commented 1 year ago

@starkillerOG , Honestly speaking I never noticed it before you specifically asked for it. I got this cam setup in a way that Len0 will never see a vehicle (only person) while Len1 will mostly see vehicles and very rarely people. I never had to change the default values of sensitivity.

"So clicking on the gear icon of lens 1 and lens 2 give the same settings." --> Yes.

Some useless setting are individual per lens, for example, 'display' setting. image

While some stream related important settings are coupled, e.g. motion/smart sensitivity, alarm delay, etc. image

starkillerOG commented 1 year ago

Is the day and night setting individual per lens?

dhavaldesai-HA commented 1 year ago

No, single setting for day/night, for spotlight and for audio.

image

skaeley commented 1 year ago

Hi, just for reference I have the same issue. I have Reolink Duo Wi-Fi as well, same issue only one of the cameras will work with automations and detect people/cars. Happy to make a donation to get this fixed.

thanks

starkillerOG commented 1 year ago

@dhavaldesai-HA @skaeley The fixes have been implemented and should become available once HA 2023.8.3 is released (I think in 3 days time).

Please let me know if the second lens motion/AI sensors indeed show up once on HA 2023.8.3.

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.

dhavaldesai-HA commented 1 year ago

@starkillerOG , will do and get back to you. Thanks ! Will make sure to get you few cups of coffees on the way as well...

skaeley commented 1 year ago

Thank you very much, will provide feedback and have sent something to say thank you.Thanks Sanjay Sent from my iPhoneOn 15 Aug 2023, at 10:48, starkillerOG @.***> wrote: @dhavaldesai-HA @skaeley The fixes have been implemented and should become available once HA 2023.8.3 is released (I think in 3 days time). Please let me know if the second lens motion/AI sensors indeed show up once on HA 2023.8.3. 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.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

starkillerOG commented 1 year ago

@dhavaldesai-HA @skaeley HomeAssistant 2023.8.3 is now available including the fix.

dhavaldesai-HA commented 1 year ago

@starkillerOG, Thanks ! Just upgraded to version 2023.8.3. Motion/AI sensors of second lens (Lens1) show up. Prefect !! Thank you so much. Coffee is on the way ...

skaeley commented 1 year ago

@starkillerOG All worked for me, thank you again, coffee already donated.Appreciate the hard work,ThanksSent from my iPhoneOn 15 Aug 2023, at 10:48, starkillerOG @.***> wrote: @dhavaldesai-HA @skaeley The fixes have been implemented and should become available once HA 2023.8.3 is released (I think in 3 days time). Please let me know if the second lens motion/AI sensors indeed show up once on HA 2023.8.3. 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.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

starkillerOG commented 1 year ago

@dhavaldesai-HA @skaeley thanks for the feedback, good to hear it is indeed working :) Thank you very much for the donations, much appriciated!