fwestenberg / reolink_dev

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

Motion detection not working #85

Closed smugleafdev closed 3 years ago

smugleafdev commented 3 years ago

(Unsure if this is an issue with this addon or not, but I'll post here just in case.)

I have been using the addon for months and it's been great. I still have the Reolink app on my phone running and it notifies me of any movement. Unfortunately, I'm not seeing motion detected in HA. According to my history graph, it has seen motion once in the last 24 hours, coincidentally at a time that there was not motion. I believe my config for the binary sensor is identical to the one in the docs here, and HA is telling me that motion detection enabled is true. I get about twenty motion detections every day in the Reolink app, and I would expect to see these same things in HA but I'm not.

Rolink IP camera: v0.7 HA: 0.117.1 + 0.118.4 (tested on both)

fwestenberg commented 3 years ago

This issue is fixed with the redesigned integration. The pull request is in review state, but I hope it will be done soon.

fwestenberg commented 3 years ago

Can you please update to v0.8? It should be fixed now. Please remove all config first and add the camera using the integration flow. It will create all switches and binary sensor for motion detection for you.

smugleafdev commented 3 years ago

Can you clarify what you mean? I removed all references to my camera including the configuration.yml camera: setup, uninstalled the HACS integration, installed it again to v0.8, and now my camera feed isn't appearing.

When I initially updated, all I did was update and got this error message: The reolink_dev platform for the camera integration does not support platform setup. Please remove it from your config. Removing all of my camera: config didn't fix it.

fwestenberg commented 3 years ago

Is the Reolink integration showing up in the Integrations page? (Click add integration and search Reolink).

smugleafdev commented 3 years ago

It's showing now! It wasn't when I checked hours ago.

Still not getting motion detection though. It initialized to detecting motion upon install, and after a minute went to no motion, and has stayed there since. I stood in front of the camera holding my laptop and no motion was detected.

motion

fwestenberg commented 3 years ago

Can you set your logging for reolink_dev to debug and try to create a motion alert. The post the log here please. Thanks!

smugleafdev commented 3 years ago

I added

logger:
  default: info
  logs:
    custom_components.reolink_dev: debug

restarted, and waved at the camera, but I'm not seeing anything in the standard logs, and nothing of value in the full logs. Just setup junk, and "Finished fetching reolink data in X.XXX seconds"

smugleafdev commented 3 years ago

Not sure if it counts as a separate bug, but every time I restart HA it defaults to motion being detected.

fwestenberg commented 3 years ago

This is fixed in v0.9.

rysm83 commented 3 years ago

I wasn't to leave a comment on this, but not sure if its the same issues being faced above. I'm seeing issues with AI motion detection. I have updated to the latest version tat says it supports Person, Vehicle, and Pet detection. I see the sensors populated in Home Assistant but they are not detecting any motion. I tested and confirmed that when set to on in the app i do get notifications within the Reolink app for person detection. Not sure if I have a bug or un supported camera. the Camera that I'm using is RLC-520A

Siwus90 commented 3 years ago

RLC-510WA too.

0la1 commented 2 years ago

Hi,

just installed the Reolink integration for my RLC-842A. I have the same issue with the sensors, they are not available. 37ED60B9-2008-43EA-B40F-6A59894BED85

The integration runs on v.0.57 and the camera is updated to the newest version. @fwestenberg you are stating that this is fixed in v.0.9. How do I upgrade to this version?

Thanks very much!

MiddleSiggy commented 2 years ago

I also have a similar issue with my RLC-820A cameras doing any AI detection. The Cameras have motion, people, car, and pet detection, and it works in the ReoLink App, but HA does not get any notification.

Inside HA all I see is the 4 states showing as unavailable: BackYard_Capture

If it helps, all of the cameras are plugged into a NVR "RLN16-410"

All cameras are the running the current firmware.

Let me know if I can help with anything

kvmgz commented 2 years ago

Same here. With the previous version, it worked 95% of the time. It became unavailable from time to time but it fixed itself after a few seconds or minutes.