fwestenberg / reolink_dev

Home Assistant Reolink addon
MIT License
550 stars 102 forks source link

Entity "person detected" not working #504

Open MrGlad8 opened 2 years ago

MrGlad8 commented 2 years ago

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

macxq commented 2 years ago

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

cpainchaud commented 2 years ago

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

RickeyWard commented 2 years ago

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 commented 2 years ago

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

MrGlad8 commented 2 years ago

@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?

RickeyWard commented 2 years ago

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.

MrGlad8 commented 2 years ago

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!

RickeyWard commented 2 years ago

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.

cpainchaud commented 2 years ago

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

MrGlad8 commented 2 years ago

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".

macxq commented 2 years ago

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

MrGlad8 commented 2 years ago

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?

macxq commented 2 years ago

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

MrGlad8 commented 2 years ago

thanks! will check it out!

oneseventhree commented 2 years ago

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

Unifi

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