core: DSM integration not working when running docker package on Synology

The problem

All entities of DSM integration become inaccessible if the docker package is running on sinology At the same time, if the docker package is stopped, the DSM integration starts without errors and all entities are available.

What is version of Home Assistant Core has the issue?

core-2021.2.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Supervised

Integration causing the issue

DSM

Link to integration documentation on our website

No response

Example YAML snippet

# Put your YAML below this line

Anything in the logs that might be useful for us?

# Put your logs below this line

Logger: homeassistant.config_entries Source: components/synology_dsm/init.py:459 First occurred: 11:22:38 AM (1 occurrences) Last logged: 11:22:38 AM

Error setting up entry 192.168.41.3 for synology_dsm Traceback (most recent call last): File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 239, in async_setup result = await component.async_setup_entry(hass, self) # type: ignore File “/usr/src/homeassistant/homeassistant/components/synology_dsm/init.py”, line 186, in async_setup_entry await api.async_setup() File “/usr/src/homeassistant/homeassistant/components/synology_dsm/init.py”, line 336, in async_setup await self.async_update() File “/usr/src/homeassistant/homeassistant/components/synology_dsm/init.py”, line 459, in async_update await self._hass.async_add_executor_job( File “/usr/local/lib/python3.8/concurrent/futures/thread.py”, line 57, in run result = self.fn(*self.args, **self.kwargs) File “/usr/local/lib/python3.8/site-packages/synology_dsm/synology_dsm.py”, line 347, in update self._surveillance.update() File “/usr/local/lib/python3.8/site-packages/synology_dsm/api/surveillance_station/init.py”, line 42, in update live_view_datas = self._dsm.get( File “/usr/local/lib/python3.8/site-packages/synology_dsm/synology_dsm.py”, line 204, in get return self._request(“GET”, api, method, params, **kwargs) File “/usr/local/lib/python3.8/site-packages/synology_dsm/synology_dsm.py”, line 271, in _request raise SynologyDSMAPIErrorException( synology_dsm.exceptions.SynologyDSMAPIErrorException: {‘api’: ‘SYNO.SurveillanceStation.Camera’, ‘code’: 401, ‘reason’: ‘Invalid parameter’, ‘details’: None}

Hi! I have running HA on Raspberry PI 4B And my synology DS 412+ running on last version DSM 6.2.3-25426 Update 3

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 22 (10 by maintainers)

Most upvoted comments

Okay, I’ll try to describe in steps.

  1. Synology is on and running. The SS is also on and working, the cameras are recording video. Docker package stopped.
  2. I turn on HA on my raspberri.
  3. The integration of synology_dsm successfully connects to synology, pulls out a bunch of entities, all of them are available in HA (utilization of resources, cameras, etc.). There are no errors in the integration of sinology_dsm in the HA log. Everything works well.
  4. I turn on the docker package on synology. Docker is empty, there are no containers in it. I reboot HA.
  5. In HA all entities created by the integration of synology_dsm receive the status “unavailable” and in the HA log the errors given above.
  6. I stop the docker package on synology, and restart the HA. Now you can go to step 3, everything is repeated cyclically.