Closed poulpor closed 3 years ago
Hi @poulpor
for host
networking mode, please try localhost
(or 127.0.0.1) as host for integration setup
for bridge
networking mode, LAN-IP or hostname (unless properly working DNS configuration exists for container) should work.
About the error message SynologyDSMAPIErrorException: {'api': 'SYNO.Core.SecurityScan.Status', 'code': 1300, 'reason': 'Unknown', 'details': None}
- could you please check the Security Advisor app from DSM if there are any issues?
Hi @mib1185 and thank you for your helpful reply! Thanks to you, I understood that I have a problem with the Security Advisor app, which gives me an "operation failed" message whenever I run it and I can't do anything to get rid of this message box. I know it worked fine until mid 2020 because I can see some reports and logs, obviously, something went wrong since that time. But it's not important, I never really used it, so instead I cloned the Synology_DSM component and placed it in my /config/custom_components folder, then modified _self._withsecurity = True to False. Now Synology_DSM is loading fine, listing 11 devices and 72 entities. Thank you very muchfor pointing me in the right direction!
The problem
Hello, I'm new to Home Assistant but not to docker and I can't understand what I'm doing wrong here. I've installed Home Assistant Core on an xpenology DS918+, DSM 6.2.3-25426 update 3 in docker container in host then bridge, because I thought it could be the problem. I've created a specific user with administrator rights, without access to all locations and applications. But I also tried with other admin accounts, with or without 2FA authentication, the result is always the same error log.
When I add Synology_DSM integration, I can connect to the Nas by entering its IP or domain and my credentials, it seems to work because the integration panel is created BUT, without any entities or devices listed. I then restart Home Assistant, the panel is there but, alas, still no entities or devices. Whatever I do, Host or bridge, domain or ip, specific HA account or others with administrator rights, I always get this error message: synology_dsm.exceptions.SynologyDSMAPIErrorException: {'api': 'SYNO.Core.SecurityScan.Status', 'code': 1300, 'reason': 'Unknown', 'details': None} I've enabled debug for Synology_dsm in configuration.yaml.
Again, I'm just discovering HA but I had no problem with other integrations and can't find where I'm wrong with this nice one... I hope someone will ^^; Thank you!
What is version of Home Assistant Core has the issue?
core-2021.3.4
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Core
Integration causing the issue
Synology_DSM
Link to integration documentation on our website
No response
Example YAML snippet
Anything in the logs that might be useful for us?
2021-03-19 08:34:47 INFO (MainThread) [homeassistant.setup] Setup of domain synology_dsm took 0.0 seconds 2021-03-19 08:34:57 DEBUG (MainThread) [homeassistant.components.synology_dsm] SynoAPI.async_setup() - self._with_surveillance_station:False 2021-03-19 08:34:57 DEBUG (MainThread) [homeassistant.components.synology_dsm] SynoAPI._setup_api_requests() - Entities not added yet, fetch all 2021-03-19 08:34:57 DEBUG (SyncWorker_5) [homeassistant.components.synology_dsm] SynoAPI._fetch_device_configuration() - fetch security 2021-03-19 08:34:57 DEBUG (SyncWorker_5) [homeassistant.components.synology_dsm] SynoAPI._fetch_device_configuration() - fetch storage 2021-03-19 08:34:57 DEBUG (SyncWorker_5) [homeassistant.components.synology_dsm] SynoAPI._fetch_device_configuration() - fetch upgrade 2021-03-19 08:34:57 DEBUG (SyncWorker_5) [homeassistant.components.synology_dsm] SynoAPI._fetch_device_configuration() - fetch system 2021-03-19 08:34:57 DEBUG (SyncWorker_5) [homeassistant.components.synology_dsm] SynoAPI._fetch_device_configuration() - fetch utilisation 2021-03-19 08:34:57 DEBUG (MainThread) [homeassistant.components.synology_dsm] SynoAPI.async_update() 2021-03-19 08:34:57 DEBUG (MainThread) [homeassistant.components.synology_dsm] SynoAPI._setup_api_requests() - Entities not added yet, fetch all 2021-03-19 08:34:57 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry mydomain.com (replaced my real domain name) for synology_dsm Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 248, in async_setup result = await component.async_setup_entry(hass, self) # type: ignore File "/usr/src/homeassistant/homeassistant/components/synology_dsm/init.py", line 192, in async_setup_entry await api.async_setup() File "/usr/src/homeassistant/homeassistant/components/synology_dsm/init.py", line 419, in async_setup await self.async_update() File "/usr/src/homeassistant/homeassistant/components/synology_dsm/init.py", line 564, 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 335, in update self._security.update() File "/usr/local/lib/python3.8/site-packages/synology_dsm/api/core/security.py", line 16, in update raw_data = self._dsm.get(self.API_KEY, "system_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.Core.SecurityScan.Status', 'code': 1300, 'reason': 'Unknown', 'details': None}