I have had good sucess with playing sonos reliably for some time, however a few weeks ago this stopped working. I have some time to investigate and I see this error in the logger:
Logger: homeassistant.core
Source: components/sonos/helpers.py:64
First occurred: 03:57:16 (16 occurrences)
Last logged: 04:35:03
Error executing service: <ServiceCall media_player.play_media (c:d8dbeda909e494fad9d1c4b23c6e8782): device_id=['0c2b4bd38e0097031b9d0409a9356c60'], extra=, media_type=PLAYLIST, media_id=plex://{"playlist_name": "All Music", "shuffle": 1}>
Error executing service: <ServiceCall media_player.play_media (c:fd94bed0f5d1b2c3e53226d1e9506439): device_id=['0c2b4bd38e0097031b9d0409a9356c60'], extra=, media_type=PLAYLIST, media_id=plex://{"playlist_name": "All Music", "shuffle": 1}>
Error executing service: <ServiceCall media_player.play_media (c:2d921d918fe03606e4f8eac8e44d7545): entity_id=['media_player.mbed'], extra=, media_type=playlist, media_id=plex://{"playlist_name": "All Music", "shuffle": 1}>
Error executing service: <ServiceCall media_player.play_media (c:d4aab9b401506499c44a6b8a4412aa05): entity_id=['media_player.mbed'], extra=, media_type=playlist, media_id=plex://{"playlist_name": "All Music", "shuffle": 1}>
Error executing service: <ServiceCall media_player.play_media (c:8e680290c2710c0491ecc7d1941919ee): entity_id=['media_player.mbed'], extra=, media_type=playlist, media_id=plex://{"playlist_name": "All Music", "shuffle": 1}>
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/sonos/helpers.py", line 46, in wrapper
result = funct(self, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/components/sonos/media_player.py", line 558, in play_media
plex_plugin.play_now(media)
File "/usr/local/lib/python3.9/site-packages/soco/plugins/plex.py", line 109, in play_now
position = self.add_to_queue(plex_media, add_next=True)
File "/usr/local/lib/python3.9/site-packages/soco/plugins/plex.py", line 180, in add_to_queue
response = self.soco.avTransport.AddURIToQueue(
File "/usr/local/lib/python3.9/site-packages/soco/services.py", line 207, in _dispatcher
return self.send_command(action, *args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/soco/services.py", line 515, in send_command
self.handle_upnp_error(response.text)
File "/usr/local/lib/python3.9/site-packages/soco/services.py", line 568, in handle_upnp_error
raise SoCoUPnPException(
soco.exceptions.SoCoUPnPException: UPnP Error 800 received: from 10.0.19.207
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/core.py", line 1648, in catch_exceptions
await coro_or_task
File "/usr/src/homeassistant/homeassistant/core.py", line 1667, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service
await self.hass.helpers.service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 668, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 930, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 705, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/media_player/__init__.py", line 720, in async_play_media
await self.hass.async_add_executor_job(
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/sonos/helpers.py", line 64, in wrapper
raise HomeAssistantError(message) from err
homeassistant.exceptions.HomeAssistantError: Error calling SonosMediaPlayerEntity.play_media on media_player.mbed: UPnP Error 800 received: from 10.0.19.207
Also UPnP error 800 is reported from the sonos Roams IP.
I’m able to play media to the chromecast audio and android TV just fine using the same playlists, I can also play this “AllMusic” playlist from plex using the sonos connection. I can also play it from the sonos app without issue.
A lot has changed in Homeassistant in the last month, so I’m expecting this is a new method. I recently had to update and re-deploy all my nodered mobile app notifications because they ran into an API error without changing anything. No luck with re-deploying this or calling the service from the tools.
I’ve also reauthorized my sonos account to plex