fwestenberg / reolink_dev

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

Binary sensor don't reset. #390

Open Lieberkind72 opened 2 years ago

Lieberkind72 commented 2 years ago

Describe the bug

When i go in front of the camera, motion and person detection goes off. Very well. After 1 min. motion resets, but not person detection. (has been on for 33 min. now)

Vehicle detection resets after 8 seconds.

To Reproduce

I tried to change the timeout and off delay under "integrations/configure. no luck.

If I try to reset(off) from Developer tools it just goes on again after some time (10-30 sec) and the icon don't change.

Perhaps person detection resets when a vehicle detects. maybe!

Expected behavior

I expect that all sensors goes off after x amount of seconds.

Environment:

Home Assistant core-2021.11.5

Camera Model RLC-811A UID 95270003BT9HYA5Y Build No. build 21073008 Hardware No. IPC_523128M8MP Config Version v3.0.0.0 Firmware Version v3.0.0.494_21073008

Additional context

In Reolink app the person detection works.

dncex commented 2 years ago

same problem here; I am running the latest commit (36b94e263b3a427d1e0c819c0d239ee78ea4b63c). I can't say exactly but it seems that sometimes the sensor reset, sometimes no

cpainchaud commented 2 years ago

v0.47 is out and the following was added in https://github.com/fwestenberg/reolink_dev/blob/master/TSHOOT.md: 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.