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.6k stars 29.91k forks source link

Synology DSM integration doesn't work #84027

Closed intra-au closed 1 year ago

intra-au commented 1 year ago

The problem

Manually adding integration using admin account, successfull 2FA Setup throws error "Retrying setup: 'NoneType' object has no attribute 'get_all_cameras'"

What version of Home Assistant Core has the issue?

Home Assistant 2022.12.6

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

Synology DSM

Link to integration documentation on our website

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

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2022-12-15 03:21:17.046 ERROR (MainThread) [homeassistant.components.synology_dsm.coordinator] Unexpected error fetching 192.168.0.253 SynologyDSMCameraUpdateCoordinator data: 'NoneType' object has no attribute 'get_all_cameras'
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 225, in _async_refresh
    self.data = await self._async_update_data()
  File "/usr/src/homeassistant/homeassistant/components/synology_dsm/coordinator.py", line 125, in _async_update_data
    camera.id: camera for camera in surveillance_station.get_all_cameras()
AttributeError: 'NoneType' object has no attribute 'get_all_cameras'

Additional information

No response

home-assistant[bot] commented 1 year ago

Hey there @hacf-fr, @quentame, @mib1185, mind taking a look at this issue as it has been labeled with an integration (synology_dsm) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `synology_dsm` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Change the title of the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign synology_dsm` Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


synology_dsm documentation synology_dsm source (message by IssueLinks)

mib1185 commented 1 year ago

Hi @intra-au

how many nics and IP addresses do you use on your NAS? Maybe your setup matches the note in the docs. If not, then please enable debug logging, restart HA and provide the home-assistant.log. To do so add the following to your configuration.yaml:

logger:
  default: info
  logs:
    homeassistant.components.synology_dsm: debug
    synology_dsm: debug

Further if possible please download and provide the diagnostics data for this integration.

Note: it is better to drag the log into the comment (which will add it as an attachment) and not copy paste as it is hard to read logs in GitHub.

intra-au commented 1 year ago

home-assistant.log

please find attached debug log as requested. NAS has one physical interface enabled with few docker interfaces. Home Assistant is running as a docker on the Synology I try to add.

mib1185 commented 1 year ago

@intra-au this should be fixed with 2022.12.7