Synology DSM integration failed after HA Core update 2023.2.x and 2023.3.1

Synology DSM integration starting failing after first HA Core update to 2023.2.1. Despite other posts where the issue seems to have been solved with 2023.2.2 it still not working on 2023.2.5 for me.

Fault: Retrying setup: ‘utf-8’ codec can’t decode byte 0x8b in position 40: invalid start byte

Only fallback to 2023.1.7 resolves the issue.

Any thoughts?

Thanks!

Same here.

Problem still exist on 2023.3.1 - using HA on Raspberry Pi could this be related Python or JS version on Synology?

Logger: homeassistant.components.synology_dsm.coordinator
Source: helpers/aiohttp_client.py:53
Integration: Synology DSM (documentation, issues)
First occurred: 10:56:14 (3 occurrences)
Last logged: 10:58:49

Unexpected error fetching 192.168.188.28 SynologyDSMSwitchUpdateCoordinator data: ‘utf-8’ codec can’t decode byte 0x8b in position 40: invalid start byte
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py”, line 239, in _async_refresh
self.data = await self._async_update_data()
File “/usr/src/homeassistant/homeassistant/components/synology_dsm/coordinator.py”, line 73, in _async_update_data
“switches”: {“home_mode”: await surveillance_station.get_home_mode_status()}
File “/usr/local/lib/python3.10/site-packages/synology_dsm/api/surveillance_station/init.py”, line 153, in get_home_mode_status
raw_data = await self._dsm.get(self.HOME_MODE_API_KEY, “GetInfo”)
File “/usr/local/lib/python3.10/site-packages/synology_dsm/synology_dsm.py”, line 207, in get
return await self._request(“GET”, api, method, params, **kwargs)
File “/usr/local/lib/python3.10/site-packages/synology_dsm/synology_dsm.py”, line 282, in _request
response = await self._execute_request(request_method, url, params, **kwargs)
File “/usr/local/lib/python3.10/site-packages/synology_dsm/synology_dsm.py”, line 347, in _execute_request
return await response.json(content_type=content_type)
File “/usr/src/homeassistant/homeassistant/helpers/aiohttp_client.py”, line 53, in json
return await super().json(*args, loads=loads, **kwargs)
File “/usr/local/lib/python3.10/site-packages/aiohttp/client_reqrep.py”, line 1120, in json
return loads(stripped.decode(encoding))
UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0x8b in position 40: invalid start byte

Seems not many people with same problem. Did a bit more searching and found this solution from 2019:

however not sure to get this file. Looking with terminal in the file system there are no directories in /srv nor python3.10 in /usr/local/lib ?

Not sure what exactly resolved it but it is working with
Home Assistant 2023.6.3
Supervisor 2023.07.1
Operating System 10.3

I also stopped the Surveillance Station on Synology DSM and restarted after confirming HA integration was working

However failed again when switching on Surveillance station - currently trying it with Home Mode switched off but fails after a while again…