home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.14k stars 29.81k forks source link

Reolink IP NVR/camera integration reports camera authentication expired in core 2024.8.0b0 #123023

Closed chrisuk-web closed 1 month ago

chrisuk-web commented 1 month ago

The problem

Reolink IP NVR/camera integration reports camera authentication expired in core 2024.8.0b0

What version of Home Assistant Core has the issue?

core 2024.8.0b0

What was the last working version of Home Assistant Core?

core 2024.7.4

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

No response

Diagnostics information

N/A

Example YAML snippet

N/A

Anything in the logs that might be useful for us?

N/A

Additional information

Cannot reauthenticate. Backing out to last release of core fixes.

Product is Reolink Video Doorbell Camera Wired 2K WiFi with Chime

home-assistant[bot] commented 1 month ago

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)

mib1185 commented 1 month ago

I think you need to provide a bit more details about your issue, like "anything in the logs that might be useful for us" or details about your setup and configuration, thx :+1:

Knutnoh commented 1 month ago

same Problem on my Home Assistant 2024.7.3 . Suddenly the integration said that repairs were necessary because the authentication had expired. I can no longer connect to my cameras

Knutnoh commented 1 month ago

same Problem on my Home Assistant 2024.7.3 . Suddenly the integration said that repairs were necessary because the authentication had expired. I can no longer connect to my cameras

Logger: homeassistant.config_entries Quelle: config_entries.py:586 Erstmals aufgetreten: 22:22:21 (2 Vorkommnisse) Zuletzt protokolliert: 22:33:53

Error setting up entry Reolink Home Hub for reolink Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 586, in async_setup result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/reolink/init.py", line 58, in async_setup_entry await host.async_init() File "/usr/src/homeassistant/homeassistant/components/reolink/host.py", line 204, in async_init await self.subscribe() File "/usr/src/homeassistant/homeassistant/components/reolink/host.py", line 448, in subscribe self.register_webhook() File "/usr/src/homeassistant/homeassistant/components/reolink/host.py", line 549, in register_webhook webhook.async_register( File "/usr/src/homeassistant/homeassistant/components/webhook/init.py", line 54, in async_register raise ValueError("Handler is already defined!") ValueError: Handler is already defined!

starkillerOG commented 1 month ago

@kevinhaas please open a seperate issue since it is not related to this one and add a diagnostics file to the issue.

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

starkillerOG commented 1 month ago

@Knutnoh please enable debug logging of the reolink integration, then restart HomeAssistant, wait 5 minutes, disable debug logging and post the resulting debug txt file here

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

starkillerOG commented 1 month ago

@chrisuk-web what error do you have in the logs?

Most likely a error about the password containing specific special chars.

starkillerOG commented 1 month ago

@kevinhaas sure, in that case I won't be able to help you.

kevinhaas commented 1 month ago

I nuked all of my cameras again and now the devices are separated. That made no sense.

https://github.com/home-assistant/core/issues/121972

I've removed my comments from this thread but left them in the above, as it more closely resembles my original issue.

chrisuk-web commented 1 month ago

@chrisuk-web what error do you have in the logs?

Most likely a error about the password containing specific special chars.

Aha - no error messages as such, there are a couple of warnings:

2024-08-03 13:11:24.858 WARNING (MainThread) [reolinkaio.api] Reolink password contains incompatible special character, please change the password to only contain characters: a-z, A-Z, 0-9 or @$*~-+=!?.,:;'()[] 2024-08-03 13:11:24.858 WARNING (MainThread) [homeassistant.configentries] Config entry 'Reolink Video Doorbell WiFi' for reolink integration could not authenticate: Reolink password contains incompatible special character, please change the password to only contain characters: a-z, A-Z, 0-9 or @$*~-+=!?.,:;'()[]

My bad - was searching for an error message and didn't see this. Have now removed the invalid special character and it's now working ok. Many thanks for your help :-)

starkillerOG commented 1 month ago

@chrisuk-web glad the issue is now resolved for you. Indeed I made a change wich now does not allow special chars anymore that cause issues with some camera streams.

@Knutnoh if you still experience issues, please open a new issue with the debug log as detailed above.

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.