reolink_dev icon indicating copy to clipboard operation
reolink_dev copied to clipboard

Entity "person detected" not working

Open MrGlad8 opened this issue 2 years ago • 16 comments

When I compare to the Reolink app it notices motions when HA isnt. Is there a problem with this "person detected" entity?

MrGlad8 avatar May 22 '22 20:05 MrGlad8

this is due to lack of proper api exposed by Reolink - vote and be verbal for it on their community forum https://community.reolink.com/topic/3291/third-party-integration-support-ai-detection-home-assistant/12

macxq avatar May 23 '22 07:05 macxq

https://github.com/fwestenberg/reolink_dev/blob/master/TSHOOT.md

cpainchaud avatar May 25 '22 08:05 cpainchaud

I have the same issue, "person detection" sensor works about 2 times per restart of the reolink NVR. Can possibly someone explain this line in the readme:

notice: for using the motion detection, your Homa Assistant should be reachable (within you local network) over http (not https).

RickeyWard avatar Jun 10 '22 20:06 RickeyWard

@MrGlad8 Make sure Reolink has "onvif" enabled and make sure your internal network uses http not https

RickeyWard avatar Jun 13 '22 21:06 RickeyWard

@MrGlad8 Make sure Reolink has "onvif" enabled and make sure your internal network uses http not https

Hm, I do access my Home Assistant through duckdns.org. Is that giving me problem here? Onvif, I cant see that setting specific in the camera setting. Do all Reolink cameras have it?

MrGlad8 avatar Jun 13 '22 21:06 MrGlad8

The NVR definitely has the setting but you have to use the mouse and attached screen to set it you cannot set it with the app or web interface.

Also, you have to have an internalURL set up that is http, not https for person detection to work. I can confirm that. I was struggling with it for a while. Verified that changing both of those things fixed it.

RickeyWard avatar Jun 13 '22 21:06 RickeyWard

But explain more please. Because the way I have my HA setup is through DuckDNS and I mean that is via https ... so that means I wont be able to get those notices? I mean everything else work!

MrGlad8 avatar Jun 26 '22 22:06 MrGlad8

You'll have to serve home assistant locally via http, with a reverse proxy for https. Tons of YouTube videos and tutorials online explaining how to do that. There's a first party nginx add on that works with duck dns to make it easier.

RickeyWard avatar Jun 26 '22 23:06 RickeyWard

You can also change this setting "You can re-configure default timer called "Motion states update fallback delay (seconds)" for a specific camera, it defaults to 30 seconds but you can go down to 2-5 seconds. Because it will hammer your camera's API every X seconds, it may have CPU/RAM/stability impacts on your camera."

It's less efficient for the camera but anyway Reolink's firmware and subscription system is so buggy I think we should stop using the subscription entirely

cpainchaud avatar Jun 27 '22 07:06 cpainchaud

You can also change this setting "You can re-configure default timer called "Motion states update fallback delay (seconds)" for a specific camera, it defaults to 30 seconds but you can go down to 2-5 seconds. Because it will hammer your camera's API every X seconds, it may have CPU/RAM/stability impacts on your camera."

It's less efficient for the camera but anyway Reolink's firmware and subscription system is so buggy I think we should stop using the subscription entirely

Thanks. Will try this. I dont understand what to do with that http, better off buying another brand maybe. I just want the API to report the motion detect immediately to my HA, how hard can that be? When watching the log for the motion detected I see a few weird notices that repeats; "Cleared (no detected)", "became unavalible", and sometime I see "detected".

MrGlad8 avatar Jul 09 '22 19:07 MrGlad8

I just want the API to report the motion detect immediately to my HA, how hard can that be? definitely, it must be hard for the Reolink

there is topic on their forum - https://community.reolink.com/topic/3291/third-party-integration-support-ai-detection-home-assistant/41 - that many of you shared a support, do it and express your expectation to them

macxq avatar Jul 11 '22 11:07 macxq

I just want the API to report the motion detect immediately to my HA, how hard can that be? definitely, it must be hard for the Reolink

there is topic on their forum - https://community.reolink.com/topic/3291/third-party-integration-support-ai-detection-home-assistant/41 - that many of you shared a support, do it and express your expectation to them

Thank you. What brand should I go for if I want full API support with HA?

MrGlad8 avatar Jul 11 '22 13:07 MrGlad8

Unifi https://www.home-assistant.io/integrations/unifiprotect/ ?

macxq avatar Jul 11 '22 14:07 macxq

thanks! will check it out!

MrGlad8 avatar Jul 11 '22 20:07 MrGlad8

I just want the API to report the motion detect immediately to my HA, how hard can that be? definitely, it must be hard for the Reolink

there is topic on their forum - https://community.reolink.com/topic/3291/third-party-integration-support-ai-detection-home-assistant/41 - that many of you shared a support, do it and express your expectation to them

I also posted my 2 cents. hopefully we get a proper API

oneseventhree avatar Jul 17 '22 11:07 oneseventhree

Unifi

anyone other brands? They sadly don't sell Unifi in Australia.. and the ones they do sell are over $800

oneseventhree avatar Dec 07 '22 09:12 oneseventhree