I have a HAMA DIR3100 player.
I have it added as a Frontier Silicon integration in Home Assistant.
Everything works without problems until I select the Rádio Slovensko station. Then it stops communicating, I think it’s a problem with the UTF8 encoding.
How can I fix it?
Uploading: Snímka obrazovky 2025-11-07 084916.png…
Uploading: Snímka obrazovky 2025-11-07 084828.png…
Logger: homeassistant.helpers.entity
Zdroj: helpers/entity.py:963
Prvýkrát sa vyskytol: 08:49:14 (3 výskyty)
Naposledy prihlásený: 08:50:04
Update for media_player.hamaoffice fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 963, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1314, in async_device_update
await self.async_update()
File "/usr/src/homeassistant/homeassistant/components/frontier_silicon/media_player.py", line 158, in async_update
info_text = await afsapi.get_play_text()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/afsapi/api.py", line 414, in get_play_text
return await self.handle_text(API["text"])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/afsapi/api.py", line 274, in handle_text
return unpack_xml(await self.handle_get(item), "value/c8_array")
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/afsapi/api.py", line 255, in handle_get
return await self.__call(f"GET/{item}")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/afsapi/api.py", line 220, in __call
doc = ET.fromstring(await result.text(encoding="utf-8"))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/aiohttp/client_reqrep.py", line 740, in text
return self._body.decode(encoding, errors=errors) # type: ignore[union-attr]
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc3 in position 311: invalid continuation byte