core icon indicating copy to clipboard operation
core copied to clipboard

Reolink integration - cameras frequently unavailable

Open acs-lux opened this issue 8 months ago • 28 comments

The problem

Reolink integration appears to restart frequently and cameras go offline or unavailable

What version of Home Assistant Core has the issue?

Latest and previous, issue has been present for a long time.

What was the last working version of Home Assistant Core?

Unknown, issue has been present for a long time.

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Reolink

Link to integration documentation on our website

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

Diagnostics information

Image

Here you see how often the integration is unavailable. The integration has the following:

Home Hub, 2 x Argus 4 Pro and 6 x E1 Pro cameras plus 1 x Argus PT Ultra.

Example YAML snippet


Anything in the logs that might be useful for us?


Additional information

The app does not have this issue and remains connected to the hub and cameras.

Latest version of HA with updated Reolink integration is no different.

acs-lux avatar Apr 03 '25 08:04 acs-lux

Hey there @starkillerog, mind taking a look at this issue as it has been labeled with an integration (reolink) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of reolink can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign reolink Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


reolink documentation reolink source (message by IssueLinks)

home-assistant[bot] avatar Apr 03 '25 08:04 home-assistant[bot]

Image

Added home hub to the history plots and it seems to stay available. The HA server was restarted 3 times during the plot so those outages can be ignored.

acs-lux avatar Apr 03 '25 08:04 acs-lux

On first inspection it seems to be an issue with the (wifi) connection or overloading of the camera's (CPU) since I see timeouts. But I will look into it further.

  1. Please share the diagnostic info file
  2. please share a debug log of +- 5 minutes in which at least 2x the entities went unavailable. (please share it as a .log file instead of posting it as text).

https://www.home-assistant.io/docs/configuration/troubleshooting/#download-diagnostics

starkillerOG avatar Apr 03 '25 11:04 starkillerOG

I have just installed the latest version of Reolink on HA and have the most up to date HA and Reolink NVR and Camera firmware. I am also finding that all the Reolink devices keep going offline than shortly later back online again. Just keeps on Initialising every 60 seconds or so. Very annoying and disappointing

Image

.

Croft5 avatar Apr 04 '25 10:04 Croft5

config_entry-reolink-01J8QKK97BQK30MHW78JPKH436.json

Here is the diagnostic file, logs to come...

acs-lux avatar Apr 04 '25 12:04 acs-lux

Home Hub CPU usage is typically arround 30% but often goes to 100% for some reason, according to the sensor data. Cameras are connected via the home hub so maybe this has something to do with it. Ive no idea though. Happy to do tests and try to help resolve this.

acs-lux avatar Apr 04 '25 13:04 acs-lux

I had the same problem in the past. After restarting the hub, the issue went away. It hasn't recurred since.

hendrikwolf79 avatar Apr 04 '25 14:04 hendrikwolf79

Hi,

Thank you for your replies, much apricated. Looking in my HA logs I see many error files for Reolink, here are 3 of them...

[cid:d5352d4b-e2ef-47e1-bbf5-8fee11c783a6]

Do let me know if me sending you more detailed info would be helpful.

All the best, Dave


From: TiredOldSpark Sent: Friday, April 04, 2025 14:14 To: home-assistant/core Cc: David Edmonds; Comment Subject: Re: [home-assistant/core] Reolink integration - cameras frequently unavailable (Issue #142162)

[acs-lux]acs-lux left a comment (home-assistant/core#142162)https://github.com/home-assistant/core/issues/142162#issuecomment-2778704404

Home Hub CPU usage is typically arround 30% but often goes to 100% for some reason, according to the sensor data. Cameras are connected via the home hub so maybe this has something to do with it. Ive no idea though. Happy to do tests and try to help resolve this.

— Reply to this email directly, view it on GitHubhttps://github.com/home-assistant/core/issues/142162#issuecomment-2778704404, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AM5MCTLEY3OLRBX6LMEJEIL2X2AT3AVCNFSM6AAAAAB2LSAJWOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDONZYG4YDINBQGQ. You are receiving this because you commented.

Croft5 avatar Apr 04 '25 14:04 Croft5

Tried a restart but Reolink is still stopping and restarting

Croft5 avatar Apr 04 '25 15:04 Croft5

home-assistant_reolink_2025-04-07T18-30-52.498Z.log I am seeing this same issue. My WYZE cameras through webrtc are always stable but the Reolink integration is almost never stable.

Safislab777 avatar Apr 07 '25 17:04 Safislab777

@Safislab777 could you also share your diagnostic info file? https://www.home-assistant.io/docs/configuration/troubleshooting/#download-diagnostics

It seems like there is a pretty spotty connection between your WiFi NVR and the cameras.

starkillerOG avatar Apr 08 '25 09:04 starkillerOG

@starkillerOG , I just realized that I was trying different ghz connections from my NVR to see if switching wifi bands would help. I know that 2 of my cams are a bit far away and am waiting on my repeater to help solve, there are 3 cameras relatively close to the NVR and should have pretty solid signal. I have attached a new log file and diagnostics. I really appreciate your help with this. I recently got rid of my WYZE cameras because I love the REOLINK integration. The WYZE came were super stable using the Gortc/webrtc integration and the dashboard cams were solid and only a few seconds delay.

config_entry-reolink-01JQYT6R348VDZS80HPVXVWQQY (1).json home-assistant_reolink_2025-04-08T14-55-24.260Z.log

Safislab777 avatar Apr 08 '25 15:04 Safislab777

@starkillerOG I have also noticed that this message pops up on my dashboard sometimes when it loses the feed. Could there be an issue with me still using webrtc for a few WYZE cameras? My Reolink dashboard card is setup using picture entity card and pointing at reolink entity unlike how the RTC(WYZE) cameras are setup in the dashboard.

Image

Safislab777 avatar Apr 08 '25 15:04 Safislab777

@Safislab777 What happened in-between the two debug logs you made? The Hub/NVR is reporting Backyard Left disapeared from the Hub/NVR, while a TrackMix showed up that was not there before. Moreover the channel of the Dining Room has somehow changed from channel 4 to channel 6.

Something strange is going on with your network. Did you actively add/remove cameras in-between the two debug logs? Or made other network changes?

[
   {
      "cmd" : "GetChannelstatus",
      "code" : 0,
      "value" : {
         "count" : 16,
         "status" : [
            {
               "channel" : 0,
               "name" : "Driveway",
               "online" : 1,
               "sleep" : 0,
               "uid" : "9527000IO7UX1337"
            },
            {
               "channel" : 1,
               "name" : "Side Yard",
               "online" : 1,
               "sleep" : 0,
               "uid" : "952700088M2CF40H"
            },
            {
               "channel" : 2,
               "name" : "",
               "online" : 0,
               "sleep" : 0,
               "uid" : ""
            },
            {
               "channel" : 3,
               "name" : "Backyard Left",
               "online" : 1,
               "sleep" : 0,
               "uid" : "9527000I9RGS7EB7"
            },
            {
               "channel" : 4,
               "name" : "Dining Room",
               "online" : 1,
               "sleep" : 0,
               "uid" : "9527000I3O9B1C22"
            },
            {
               "channel" : 5,
               "name" : "Garage",
               "online" : 1,
               "sleep" : 0,
               "uid" : "9527000I3O9S1A7R"
            },
            {
               "channel" : 6,
               "name" : "",
               "online" : 0,
               "sleep" : 0,
               "uid" : ""
            },
            {
               "channel" : 7,
               "name" : "",
               "online" : 0,
               "sleep" : 0,
               "uid" : ""
            },
   {
      "cmd" : "GetChannelstatus",
      "code" : 0,
      "value" : {
         "count" : 16,
         "status" : [
            {
               "channel" : 0,
               "name" : "Driveway",
               "online" : 1,
               "sleep" : 0,
               "uid" : "9527000IO7UX1337"
            },
            {
               "channel" : 1,
               "name" : "Side Yard",
               "online" : 1,
               "sleep" : 0,
               "uid" : "952700088M2CF40H"
            },
            {
               "channel" : 2,
               "name" : "",
               "online" : 0,
               "sleep" : 0,
               "uid" : ""
            },
            {
               "channel" : 3,
               "name" : "",
               "online" : 0,
               "sleep" : 0,
               "uid" : ""
            },
            {
               "channel" : 4,
               "name" : "TrackMix",
               "online" : 1,
               "sleep" : 0,
               "uid" : "9527000IDW2FPF0Z"
            },
            {
               "channel" : 5,
               "name" : "Garage",
               "online" : 1,
               "sleep" : 0,
               "uid" : "9527000I3O9S1A7R"
            },
            {
               "channel" : 6,
               "name" : "Dining Room",
               "online" : 1,
               "sleep" : 0,
               "uid" : "9527000I3O9B1C22"
            },
            {
               "channel" : 7,
               "name" : "",
               "online" : 0,
               "sleep" : 0,
               "uid" : ""
            },

starkillerOG avatar Apr 09 '25 07:04 starkillerOG

@starkillerOG , Ya I got a bit "inspired" and started switching things around. lol. I changed a few cams around that had better wifi power into better positions to see if the network stabilized. I still notice that the integration initializes frequently and all cams go unavailable for a matter of a few minutes then come back on. I am going to keep it the way it is for a few days and see if anything changes.

Safislab777 avatar Apr 09 '25 15:04 Safislab777

Hey, just to add to the conversation, I have 4 reolink cameras connected through Ethernet to the NVR and I'm also experiencing this issue.

config_entry-reolink-01JJ6WDR2GTHCR6E1P63E4SW9K.json

SergioRosello avatar Apr 11 '25 21:04 SergioRosello

Just to provide some additional details: in my case I have zero issues with RTSP protocol, video streaming is always working good. All the commands, that uses ONVIF, are often unavailable. Thanks

giovanniong98 avatar Apr 12 '25 10:04 giovanniong98

@giovanniong98 what do you mean the commands that use ONVIF??? Are you using the Reolink integration or the ONVIF integration?

The Reolink integration does not use ONVIF commands.

starkillerOG avatar Apr 13 '25 12:04 starkillerOG

@SergioRosello Could you make a debug log in which the cameras go to unavailable and come back?

https://www.home-assistant.io/docs/configuration/troubleshooting/#enabling-debug-logging

starkillerOG avatar Apr 13 '25 12:04 starkillerOG

@starkillerOG sorry, I'm not an expert. What I can confirm is that when all the entities of the cameras are unavailable, the video streaming in home assistant is working good via the reolink integration. Not being able to change the entities also means that I get home and the alarm starts because the cameras entities are offline and cannot be toggled. Please help to fix it asap.

giovanniong98 avatar Apr 14 '25 15:04 giovanniong98

For me at least, my issue appears resolved following the recent HA update.

Many thanks

acs-lux avatar Apr 17 '25 17:04 acs-lux

I can finally provide some more details: when one camera goes offline because I unplug it, all the other ones of my reolink system goes offline too (only in home assistant). This is weird. Can it be fixed? Sometimes I need to unplug one for some reason

giovanniong98 avatar Apr 19 '25 15:04 giovanniong98

I can finally provide some more details: when one camera goes offline because I unplug it, all the other ones of my reolink system goes offline too (only in home assistant). This is weird. Can it be fixed? Sometimes I need to unplug one for some reason

You hit the nail on the head here. I've been struggling with understanding why none of my cameras had all sensors marked as unavailable, but I could retrieve snapshots and feeds. I keep one of my cameras off until I decide it's needed (via a power relay), and so I turned it on to test this. Voila, all of my camera's and sensors are now available. Definitely a bug.

semisynthetic avatar Apr 21 '25 22:04 semisynthetic

@SergioRosello Could you make a debug log in which the cameras go to unavailable and come back?

https://www.home-assistant.io/docs/configuration/troubleshooting/#enabling-debug-logging

Here you are @starkillerOG

home-assistant_reolink_2025-04-22T11-05-33.872Z.log

SergioRosello avatar Apr 22 '25 11:04 SergioRosello

FYI

I have disabled my Reolink in HA because it constantly loses contact. I have an NVR and six POE cameras, no Wi-Fi involved 😊

Dave

From: Sergio Roselló Morell @.> Sent: 22 April 2025 12:08 To: home-assistant/core @.> Cc: David Edmonds @.>; Comment @.> Subject: Re: [home-assistant/core] Reolink integration - cameras frequently unavailable (Issue #142162)

@SergioRosellohttps://github.com/SergioRosello Could you make a debug log in which the cameras go to unavailable and come back?

https://www.home-assistant.io/docs/configuration/troubleshooting/#enabling-debug-logging

Here you are @starkillerOGhttps://github.com/starkillerOG

home-assistant_reolink_2025-04-22T11-05-33.872Z.loghttps://github.com/user-attachments/files/19848646/home-assistant_reolink_2025-04-22T11-05-33.872Z.log

— Reply to this email directly, view it on GitHubhttps://github.com/home-assistant/core/issues/142162#issuecomment-2820975695, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AM5MCTNA6YSOZKF7EYGN3LL22YPJNAVCNFSM6AAAAAB2LSAJWOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQMRQHE3TKNRZGU. You are receiving this because you commented.Message ID: @.@.>> [https://avatars.githubusercontent.com/u/6085350?s=20&v=4]SergioRosello left a comment (home-assistant/core#142162)https://github.com/home-assistant/core/issues/142162#issuecomment-2820975695

@SergioRosellohttps://github.com/SergioRosello Could you make a debug log in which the cameras go to unavailable and come back?

https://www.home-assistant.io/docs/configuration/troubleshooting/#enabling-debug-logging

Here you are @starkillerOGhttps://github.com/starkillerOG

home-assistant_reolink_2025-04-22T11-05-33.872Z.loghttps://github.com/user-attachments/files/19848646/home-assistant_reolink_2025-04-22T11-05-33.872Z.log

— Reply to this email directly, view it on GitHubhttps://github.com/home-assistant/core/issues/142162#issuecomment-2820975695, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AM5MCTNA6YSOZKF7EYGN3LL22YPJNAVCNFSM6AAAAAB2LSAJWOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQMRQHE3TKNRZGU. You are receiving this because you commented.Message ID: @.@.>>

Croft5 avatar Apr 22 '25 11:04 Croft5

Also experiencing the same issue. 6 battery cams connected to the home hub, the integration keeps restarting, the cameras briefly go offline in HA then come back up (but actually stay online in the reolink app). Occasionally after a HA restart, the integration doesn't even come back up for a while (5 minutes or more). No vlans, cameras are connected to my main wifi (not the hubs because the hub wifi isn't strong enough). HA is connected to the hub (not directly to the cameras). Also noticed random CPU spikes too in HA for the hub.

lexiismadd avatar Apr 30 '25 09:04 lexiismadd

Same issue with 3poe cameras and hardwired NVR

meramsey avatar May 05 '25 00:05 meramsey

@SergioRosello I looked at your debug log, your issues is beeing caused by the snapshot returning an error. I don't know why the snapshot is returning an error, but I did fix the entites going unavailable in this PR: https://github.com/home-assistant/core/pull/144583.

The fix will be included in HA 2025.5.2 which is expected May 16th. Please let me know if you still experiance issues after updating.

starkillerOG avatar May 14 '25 11:05 starkillerOG

@acs-lux I took another look at your debug log and can confirm you have the same situation as @SergioRosello

starkillerOG avatar May 14 '25 12:05 starkillerOG