core: Reolink sensors and cameras randomly and often go "Unavailable" for about 1min 15 seconds

The problem

I don’t know exactly when this started happening but it was sometime within the last 1-2 months and I can’t exactly nail down if it started with an update to the core or an update to the reolink integration (or randomly) but this issue came on suddenly and is now a consistent issue that I’d never come across before. Randomly, throughout the day, my Reolink cameras and their associated sensors within HA all go into an “Unavailable” state for approx 1 minute and 15 seconds before they return to their normal state…for camera feeds that normal state is “Idle” and for sensors that normal state is “On”, “Off”, “Clear”, etc. I don’t see a pattern to how often or when this happens…sometimes it’ll happen every few hours and other times it will happen every 5 minutes. It is however always for around a 1 minute and 15 seconds…sometimes a few seconds more and sometimes a few seconds less. In this “Unavailable” state, the camera video feeds are still visible via the HA Overview dashboard and my custom camera specific dashboards. The sensors however (ie “Person”, “Pet”, “Vehicle”, “Motion”, “Visitor” etc) do not work at all while “Unavailable”. All of my cameras are connected to a Reolink RLN16-410 NVR which itself is connected via ethernet to the same switch as the HA box and I’ve verified that these 1 min 15 sec outages are not seen when accessing the NVR-connected cameras via a local web-browser, via the native app, or via the NVR’s local UI…translation, there doesn’t seem to be anything wrong with the NVR itself or the cameras. Has anybody else come across this? I turned on dubug logging on the integration to see if anything unusual popped up and I do see what seems to be corresponding errors that read “error mapping response to channels”…see below for a sample of that.

What version of Home Assistant Core has the issue?

core-2024.1.6

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Reolink IP NVR/camera

Link to integration documentation on our website

https://www.home-assistant.io/integrations/reolink

Diagnostics information

config_entry-reolink-c586313577ecf11211f1695716351549.json(1).txt

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.components.reolink
Source: helpers/update_coordinator.py:332
Integration: Reolink IP NVR/camera (documentation, issues)
First occurred: 19:27:08 (11 occurrences)
Last logged: 21:36:16
Error fetching reolink.CamNVR data: Host 192.168.<redacted>.<redacted>:443 error mapping response to channels, received 82 responses while requesting 121 responses

Additional information

The timestamp on the error log entry "fetching reolink.CamNVR data" has the same exact time as the beginning of one of the 1 minute and 15 second outages, though in this particular case the outage was only 1 min 10 seconds.

About this issue

  • Original URL
  • State: closed
  • Created 5 months ago
  • Comments: 53 (13 by maintainers)

Most upvoted comments

The PR that will solve at least a lot of these issues has been merged: https://github.com/home-assistant/core/pull/110959 This will be included in the next HA 2024.2.3 patch release that is coming out in a few days.

If you still experiance issues once you upgraded to HA 2024.2.3, please make a new issue including a debug log showing the errors.

If you appreciate the reolink integration and want to support its development, please consider sponsering the upstream library or purchase Reolink products through this affiliate link.