Reolink NVR to Home Assistant Issue

Hello Everyone,
I’m pulling my hair for a few days now. I have 6 Reolink RLC-810A cameras connected to NVR Model RLN8-410. I added Reolink Integration from HACS and tried to add my cameras to HA however when i log in it does not show my cameras, see the picture below

If I connect my cameras to the switch directly (not using NVR) I don’t have any problem!

Before you ask The ONVIF protocol is enabled on the NVR!

I could kill to make the NVR work with my HS, Please HELP

1 Like

I too was having issues with motion detection, so I went with this method

Reolink NVR Camera(s) in Home Assistant
For example, if your Reolink NVR has the following information,
IP address: 192.168.86.17
username: admin
password: 123456
You may also change the channel number (starts at 0) to recieve different channels.
Motion detection (configuration.yaml)

binary_sensor:
  - platform: rest
    resource: http://192.168.86.17/api.cgi?cmd=GetMdState&channel=2&user=admin&password=123456
    name: Carport
    scan_interval: 2
    value_template: '{{ value_json[0].value.state }}'
    device_class: motion

  - platform: rest
    resource: http://192.168.86.17/api.cgi?cmd=GetAiState&channel=2&user=admin&password=123456
    name: Carport Vehicle AI
    scan_interval: 2
    value_template: '{{ value_json[0].value.vehicle.alarm_state }}'
    device_class: motion

  - platform: rest
    resource: http://192.168.86.17/api.cgi?cmd=GetAiState&channel=2&user=admin&password=123456
    name: Carport Person AI
    scan_interval: 2
    value_template: '{{ value_json[0].value.people.alarm_state }}'
    device_class: motion

  - platform: rest
    resource: http://192.168.86.17/api.cgi?cmd=GetAiState&channel=2&user=admin&password=123456
    name: Carport Pet AI
    scan_interval: 2
    value_template: '{{ value_json[0].value.dog_cat.alarm_state }}'
    device_class: motion

Camera (configuration.yaml)

stream:
camera:
  - platform: generic
    name: Carport
    still_image_url: http://192.168.86.17/cgi-bin/api.cgi?cmd=Snap&channel=2&rs=Carport&user=admin&password=123456
    stream_source: rtsp://admin:[email protected]:554/h264Preview_03_sub

Use Picture Glance Card to view camera in HA

Works flawless

7 Likes

@tteck Thank you! This worked to obtain motion events from my Reolink cameras via the NVR. Great work

1 Like

Great! light and performing, in fact it is of little use to see the video streaming, the important thing is to be able to intercept the alarms !!!
THANK YOU!

1 Like

Hi, silly question, do I just add these lines to the configuration.yaml file? You have mentioned “Motion detection (configuration.yaml)” and " Camera (configuration.yaml)"

Yes, if you don’t have a split configuration.

Does this work with the pet/animal detection?

Would it just be: value_template: ‘{{ value_json[0].value.animal.alarm_state }}’?

I’ve added all these sensors I’m not getting any updates, it always shows clear. Any ideas?

1 Like

Not sure what they’re calling it (not running that firmware), try “pet” :man_shrugging:
I’ll update if I find anything.

hi @rjmcfadd
for the pet detection, it’s : value_json[0].value.dog_cat.alarm_state

1 Like

Thanks @tteck and @mnpg! I tried that but I’m not getting any motion events from any of the AI sensors.