question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Binary sensor is available in HA, but motion detection is not working

See original GitHub issue

Hi @fwestenberg, Thanks for this integration - I’ve been using it for a few months and it has been rock solid. I run a RLN8-410-E NVR with 5 cameras (RLC-410 & RLC-522). I’ve been running v0.07 since new (I think) with the following config and it has been running pretty much perfectly; Cameras;

 - platform: reolink_dev
    host: 192.168.0.46
    username: !secret dvr_username
    password: !secret dvr_password
    name: Front Door
    stream: sub
    protocol: rtmp
    channel: 0
    scan_interval: 5

Motion Sensors;

- platform: template
    sensors:
      motion_front_door:
        friendly_name: Motion Front Door
        device_class: motion
        entity_id: camera.front_door
        value_template: "{{ is_state('camera.front_door', 'motion') }}"
        delay_off: 
            seconds: 0

In the last month or so I enabled object detection (people only using Tensor Flow), and the this is triggered by motion. It has been working great and only alerts me when it sees people in the cameras.

However, since upgrading to v0.10, and removing the old config, whilst the cameras are all displaying fine, motion has stopped working reliably, and there are a few other issues worth mentioning. Here are the symptoms;

  1. Two of the five motion sensors are unavailable at any one time (and this changes on HA restart - sometimes the front door is unavailable, and then it becomes available and another becomes unavailable)
  2. Motion on the available motion sensors is unreliable (at best). Sometimes it works, other times not. I have verified that it is working fine from the Reolink app (and the console screen).
  3. Sensitivity status within HA does not match sensitivity status within the Reolink app. (eg, one cam is set to medium(33) in the Reolink app, but displays as 18 within HA entity attribute. (See below)
access_token: xxxxxxxxxxxxxxxxx
daynight_state: AUTO
sensitivity: 
- id: 0
  sensitivity: 18
  begin: '00:00'
  end: '06:00'
- id: 1
  sensitivity: 18
  begin: '06:00'
  end: '12:00'
- id: 2
  sensitivity: 18
  begin: '12:00'
  end: '18:00'
- id: 3
  sensitivity: 18
  begin: '18:00'
  end: '23:59'

friendly_name: Front Door
entity_picture: /api/camera_proxy/camera.front_door?token=xxxxxxxxxxxxxxxxxx
supported_features: 2
image

I am running HASSIO, in http mode, and with a reverse proxy enabling HTTPS (using Caddy add-on). I use a bought certificate and the same hostname inside and outside of my home network (using local and internet DNS to change the IP resolution depending whether you’re at home or away).

What information do you need from me to help sort this out? Thx James

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:64 (27 by maintainers)

github_iconTop GitHub Comments

4reactions
fwestenbergcommented, Jan 17, 2021

Until v0.8 HA was polling every second on the cgi API for motion. Because it was polling, https or http didn’t matter. Now it has switched to real-time push motion detection, the camera should be able to reach the HA webhook. And for some unknown reason, this only works over http for now. So IMO this is a great improvement, with some things to fix:

  • NVR
  • HTTPS
1reaction
macxqcommented, May 18, 2022

HI all! Let’s engage on reolink community forum and express that we need suport for https and prober AI detection propagation https://community.reolink.com/topic/3291/third-party-integration-support-ai-detection-home-assistant

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ring motion (binary sensor) not detected - Configuration
I have my Ring camera connected to HA. I can see the video preview in a card. I also have the binary_sensor enabled....
Read more >
Dahua binary_sensor motion_detected doesn't work anymore
Once it's on , it remains on even when there is no motion detected at the camera, even when motion detect is turned...
Read more >
Templates and Custom Sensors in Home Assistant - YouTube
Templates and Custom Sensors are a more advanced feature in Home ... 04:33 How to retrieve the state and attributes of a motion...
Read more >
Konnected not updating status of HA binary_sensors
I have just installed Home Assistant v0.7.0 and it successfully discovers my Konnected and pulls through all the binary sensors and switches I've...
Read more >
Best Motion Sensors for Home Assistant - Make It Work Tech
There are a TON of different motion sensors out there, but things like overall value, sensing distance, trigger time, and others make a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found