Hello,
after upgrading to 2023.10.1 and restarting HA, the Synology DS integration is failing to setup.
The integration was working since long time, going through several updates of HA and DS, but now it is not working anymore. Besides the HA update, no other changes on the DS and HA have been done.
I am using a dedicated user on the DS (homeassistant) with admin rights and 2FA active.
I have already tried to remove the integration, to restart the DS and HA and to enabled it again.
The configuration goes through successfully, also the 2FA is successful, but then no devices/entities are found.
I get only a single error in the log (code: 1330):
2023-10-10 13:53:23.302 DEBUG (MainThread) [synology_dsm.synology_dsm] API: SYNO.Core.SecurityScan.Status
2023-10-10 13:53:23.302 DEBUG (MainThread) [synology_dsm.synology_dsm] Request Method: GET
2023-10-10 13:53:23.314 DEBUG (MainThread) [synology_dsm.synology_dsm] Request url: https://192.168.xxx.xx:xxxx/webapi/entry.cgi?api=SYNO.Core.SecurityScan.Status&version=1&method=system_get&_sid=*********&SynoToken=*********
2023-10-10 13:53:23.314 DEBUG (MainThread) [synology_dsm.synology_dsm] Response status_code: 200
2023-10-10 13:53:23.314 DEBUG (MainThread) [synology_dsm.synology_dsm] Response headers: {'Server': 'nginx', 'Date': 'Tue, 10 Oct 2023 11:53:23 GMT', 'Content-Type': 'application/json; charset="UTF-8"', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Keep-Alive': 'timeout=20', 'Set-Cookie': 'id=IC_hG6pMJwq-BhTJAgyaXdz69ReSi3NdzQ4j7KNwjIg2ji7K3eLPNSl4OQB0WNLQgFOcNI4gc7HBenz0wYmhw0;expires=Tue, 17-Oct-2023 11:53:23 GMT;max-age=604800;path=/;HttpOnly', 'X-Content-Type-Options': 'nosniff', 'X-XSS-Protection': '1; mode=block', 'Cache-Control': 'max-age=0, no-cache, no-store, must-revalidate', 'Pragma': 'no-cache', 'Expires': '0'}
2023-10-10 13:53:23.316 DEBUG (MainThread) [synology_dsm.synology_dsm] Successful returned data
2023-10-10 13:53:23.316 DEBUG (MainThread) [synology_dsm.synology_dsm] RESPONSE: {'error': {'code': 1300}, 'success': False}
2023-10-10 13:53:23.316 DEBUG (MainThread) [synology_dsm.synology_dsm] Session error: 1300
2023-10-10 13:53:23.316 DEBUG (MainThread) [homeassistant.components.synology_dsm.common] Connection error during setup of '2180SKR2GY98Y' with exception: {'api': 'SYNO.Core.SecurityScan.Status', 'code': 1300, 'reason': 'Unknown', 'details': None}
I have found a similar issue in the forum, but it was in 2022 and has been fixed. indeed my DS integration was working with the previous HA version.
The DS is running with the DSM 7.2-64570 Update 1.
What could be the cause?
Thanks.
