### The problem
I have Home assistant running with Sonos and Spotify.
I recent…ly moved to having a separate spotify account for my home assistant and I believe that is when the issue started.
The spotify integration of home assistant uses that account and so does Sonos.
I can play media from other, non spotify services on the sonos via home assistant.
In the Sonos app I can select spotify playlists and it plays fine.
If I load up the media browser I can browse through the accounts spotify playlists without issue.
From spotify I can select Sonos speakers and play playlists on them.
However, if I try to play spotify on a Sonos speaker via home assistant I get the logs shown below.
This happens if I try through the Customer sonos card as well as via an automation or directly from the Actions tab in developer tools.
I assume a link between them is broken somewhere but I can't work out where.
I restarted home assistant and upgraded to the latest 2024.12.2 but no changes.
` Failed to perform the action media_player.play_media. Error calling SonosMediaPlayerEntity._play_media on media_player.sonos_roam_sl: UPnP Error 800 received: from 192.168.50.193`
`Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/commands.py:245
integration: Home Assistant WebSocket API ([documentation](https://www.home-assistant.io/integrations/websocket_api), [issues](https://github.com/home-assistant/core/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+websocket_api%22))
First occurred: 14:17:16 (1 occurrences)
Last logged: 14:17:16
[140146065029968] Unexpected exception
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/sonos/helpers.py", line 60, in wrapper
result = funct(self, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/components/sonos/media_player.py", line 646, in _play_media
share_link.add_share_link_to_queue(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
media_id, timeout=LONG_SERVICE_TIMEOUT
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/local/lib/python3.13/site-packages/soco/plugins/sharelink.py", line 279, in add_share_link_to_queue
raise fault
File "/usr/local/lib/python3.13/site-packages/soco/plugins/sharelink.py", line 261, in add_share_link_to_queue
response = self.soco.avTransport.AddURIToQueue(
[
...<6 lines>...
**kwargs,
)
File "/usr/local/lib/python3.13/site-packages/soco/services.py", line 207, in _dispatcher
return self.send_command(action, *args, **kwargs)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/soco/services.py", line 515, in send_command
self.handle_upnp_error(response.text)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/soco/services.py", line 571, in handle_upnp_error
raise SoCoUPnPException(
...<6 lines>...
)
soco.exceptions.SoCoUPnPException: UPnP Error 800 received: from 192.168.50.193
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 245, in handle_call_service
response = await hass.services.async_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<7 lines>...
)
^
File "/usr/src/homeassistant/homeassistant/core.py", line 2802, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2845, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1007, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
hass, entity, func, data, call.context
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1079, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/sonos/media_player.py", line 583, in async_play_media
await self.hass.async_add_executor_job(
partial(self._play_media, media_type, media_id, is_radio, **kwargs)
)
File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/sonos/helpers.py", line 74, in wrapper
raise SonosUpdateError(message) from err
homeassistant.components.sonos.exception.SonosUpdateError: Error calling SonosMediaPlayerEntity._play_media on media_player.sonos_roam_sl: UPnP Error 800 received: from 192.168.50.193`
### What version of Home Assistant Core has the issue?
2024.12.2
### What was the last working version of Home Assistant Core?
_No response_
### What type of installation are you running?
Home Assistant Container
### Integration causing the issue
Sonos and Spotify
### Link to integration documentation on our website
_No response_
### Diagnostics information
_No response_
### Example YAML snippet
_No response_
### Anything in the logs that might be useful for us?
_No response_
### Additional information
_No response_