Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Reolink Duo PoE entities problem #134912

Closed
eaves33 opened this issue Jan 6, 2025 · 15 comments · Fixed by #135035
Closed

Reolink Duo PoE entities problem #134912

eaves33 opened this issue Jan 6, 2025 · 15 comments · Fixed by #135035
Assignees

Comments

@eaves33
Copy link

eaves33 commented Jan 6, 2025

The problem

Hello everyone.
I have my 9 reolink (two of them are Reolink Duo Poe, the first version of reolink duo) cameras in HA, integrated via NVR. For this tipe of camera two devices are created (one for each camera lens). In Reolink Duo 2 PoE only a device is created, containing both lens images combined.

Reolink0

Everything was fine until about 3 weeks ago when entities from this type of camera have started to become duplicated time by time. That means that some times a new entity is created for a camera adding "_2" in the end of the name. This makes my dashboard to stop working.

reolink

Can you figure out what can it be?

What version of Home Assistant Core has the issue?

2025.1.0

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

Link to integration documentation on our website

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

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

@home-assistant
Copy link

home-assistant bot commented Jan 6, 2025

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)

@starkillerOG
Copy link
Contributor

Did you downgrade your HomeAssistant version at any point?

@starkillerOG
Copy link
Contributor

Could you share your diagnostics file for the reolink integration?

@jselande
Copy link

jselande commented Jan 6, 2025

Hi,
Same problem here, Duo PoE connected to NVR, happens every restart/reload, even if you delete the "ghost camera/channel + entities" it comes back next restart and also recreate camera/channel 2 with default area, first camera/channel is always intact.
I did use restore about a month ago when the "Reolink- reload Integration deletes and adds again devices #131421" occurred.

@eaves33
Copy link
Author

eaves33 commented Jan 6, 2025

Did you downgrade your HomeAssistant version at any point?

No

@eaves33
Copy link
Author

eaves33 commented Jan 6, 2025

Could you share your diagnostics file for the reolink integration?

there you have! Hope you can help me. Thanks in advance

config_entry-reolink.json

@starkillerOG
Copy link
Contributor

@eaves33 I see you have the "reolink_discovery" custom component installed.
Could you start by removing this custom component and see if that helps?

If it does not help, I will need to get a debug log from the startup process:
Enable debug logging, then restart the reolink integration (or the full HA), wait untill the reolink integration is fully loaded and then wait an extra 2 minutes. Then disable debug logging and post the resulting log.txt file here.

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

@eaves33
Copy link
Author

eaves33 commented Jan 7, 2025

I deleted the custom componen. Probem persists. There is the depuration log.
home-assistant_reolink_2025-01-07T10-39-11.813Z.log

@eaves33
Copy link
Author

eaves33 commented Jan 7, 2025

I think i found it. Now I downgraded the firmware version of NVR to the previous version and, for now, it seems to be working.

@starkillerOG
Copy link
Contributor

@eaves33 your debug log revealed an issue which could explain this behaviour.
I have fixed the bug in this PR: #135035.

It should be fixed in HA 2024.1.2 which should be released Jan 10th

@eaves33
Copy link
Author

eaves33 commented Jan 7, 2025

@eaves33 your debug log revealed an issue which could explain this behaviour.

I have fixed the bug in this PR: #135035.

It should be fixed in HA 2024.1.2 which should be released Jan 10th

Thank you very much. I also noticed something now. Integration is ok and official Reolink nvr app shows all recording in the time line but if I add a camera card to the home assistant dashboard the Reolink nvr starts rebooting time to time (if I open dashboard card of camera in homeassistant) with data loss. If I remove the card (although I keep Reolink integration in HA) the Reolink nvr doesn't reboot anymore and I have no monentanial data loss in nvr.

@starkillerOG
Copy link
Contributor

That is weird, maybe you are overloading the CPU of the NVR with two many streams at the same time.
I noticed you have 10 streaming channels on a 8 channel NVR. (The 2x DUO take up 4 stream channels).
Although this is allowed, I think this is the absolute max the NVR can handel and is 2 more streams than normal when not using DUOs.

Maybe the extra stream (or maybe even multiple streams if you have multiple camera cards on that dashboard) is pushing the NVR over the edge and overloading the CPU causing it to lock up and crash.

What is the CPU load on the NVR?
If you connect a screen and mouse to the NVR you should be able to see the CPU usage (I don't remember where exactly in the menu, but somewhere in the settings and then info or something)

@starkillerOG
Copy link
Contributor

The data loss is properbly just because the NVR is rebooting itself after the crash. The rebooting always takes a while (should be max 2 minutes or so). during the reboot it will not be recording causing a gap in the recording.

@eaves33
Copy link
Author

eaves33 commented Jan 7, 2025

Makes sense. But why doesn't it overload with 10cameras if I don't have HA card? And in fact it already worked like that for a long time. Really strange. I will see cpu usage and let you know. Thank you for your patience

@starkillerOG
Copy link
Contributor

The fix has been merged and will be available in HA 2025.1.2.

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants