In an attempt to play some notifications in the house with existing equipment, I wanted to use some SB devices.
Yesterday I tried my SB Radio with no luck, and today the same result with the good old SB Classic.
My attempts consist of:
- stop the LMS docker container to prevent conflicts
- add the ports to my docker-compose file to expose the ports (9090, 9091,3483 both TCP & UDP)
- add SlimProto play integration
- add Radio Browser
- add PicoTTS (text to speech)
- reset client devices to default in my attempts (to prevent old config from LMS)
I see the client connect in HA, as the integration does show the client as a device with one entity, however I cannot get it to play anything.
Both client devices cannot connect to anything, and the docker logs show different errors, alike the ones in this thread:
2023-01-31 21:07:32.944 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback SlimClient._process_stat_aude(b'\x00\x00\x0...0\x00\x00\x00')
Traceback (most recent call last):
File "/usr/local/lib/python3.10/asyncio/events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "/usr/local/lib/python3.10/site-packages/aioslimproto/client.py", line 504, in _process_stat_aude
(spdif_enable, dac_enable) = struct.unpack("2B", data[:4])
struct.error: unpack requires a buffer of 2 bytes
2023-01-31 21:07:33.459 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback SlimClient._process_stat_aude(b'\x00\x00\x0...0\x00\x00\x00')
Traceback (most recent call last):
File "/usr/local/lib/python3.10/asyncio/events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "/usr/local/lib/python3.10/site-packages/aioslimproto/client.py", line 504, in _process_stat_aude
(spdif_enable, dac_enable) = struct.unpack("2B", data[:4])
struct.error: unpack requires a buffer of 2 bytes
2023-01-31 21:08:30.428 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [1875373336] Player does not support content type: audio/aac
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 200, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1755, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1792, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 213, in handle_service
await service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 678, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 958, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 715, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/slimproto/media_player.py", line 194, in async_play_media
await self.player.play_url(media_id, mime_type=to_send_media_type)
File "/usr/local/lib/python3.10/site-packages/aioslimproto/client.py", line 343, in play_url
raise UnsupportedContentType(
aioslimproto.errors.UnsupportedContentType: Player does not support content type: audio/aac
Not sure if using the SB’s in HA are going to be a succes ?