The method or property "pause" can only be called/used on the coordinator in a group #60
Replies: 4 comments
-
@m4tthall73 Is the "group coordinator" the active device / source in your media player? Note that I only have 1 Sonos device to test with, so I have not really tested things in a "group" setting. |
Beta Was this translation helpful? Give feedback.
-
Hmm, not sure what is going on then. Firstly, while I do have multiple Sonos players, none are ever grouped. Secondly, I have just come back from lunch and pressing play on the card has resumed the music without an error. The only thing that I did was pause the player through my Spotify desktop client before lunch, as I was receiving the error above. |
Beta Was this translation helpful? Give feedback.
-
Note that I am just basing my above thoughts on what I have read, as I don't have a way to test this scenario since I only have 1 Sonos device. I honestly don't think it's anything in the SpotifyPlus integration causing the issue, since it has been using the same SoCo API calls since Sonos support was added in July 2024. Possibilities:
|
Beta Was this translation helpful? Give feedback.
-
"you might try viewing the speaker configuration(s) in the Sonos App to see if it did something automatically maybe? It's a long shot I know."
"it could be a bug in the SoCo API, in that it may be detecting a group configuration when one does not exist."
"check your automations to ensure you don't have any join / unjoin calls being made to group / ungroup Sonos speakers."
As the issue isn't occurring right now I will obviously keep an eye out and try to determine what might have happened to instigate this if it happens again. Thanks again. |
Beta Was this translation helpful? Give feedback.
-
Trying to pause playback via the SpotifyPlus Card or manually through media_player.media_play_pause and I receive the following errors.
This error originated from a custom integration.
Logger: custom_components.spotifyplus
Source: custom_components/spotifyplus/media_player.py:682
integration: SpotifyPlus (documentation, issues)
First occurred: 12:46:01 (4 occurrences)
Last logged: 12:49:14
The method or property "pause" can only be called/used on the coordinator in a group
Traceback (most recent call last):
File "/config/custom_components/spotifyplus/media_player.py", line 272, in wrapper
result = func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/spotifyplus/media_player.py", line 682, in media_pause
self._sonosDevice.pause()
File "/usr/local/lib/python3.12/site-packages/soco/core.py", line 145, in inner_function
raise SoCoSlaveException(message)
soco.exceptions.SoCoSlaveException: The method or property "pause" can only be called/used on the coordinator in a group
Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/commands.py:245
integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 12:49:14 (1 occurrences)
Last logged: 12:49:14
[281471960225184] Unexpected exception
Traceback (most recent call last):
File "/config/custom_components/spotifyplus/media_player.py", line 272, in wrapper
result = func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/spotifyplus/media_player.py", line 682, in media_pause
self._sonosDevice.pause()
File "/usr/local/lib/python3.12/site-packages/soco/core.py", line 145, in inner_function
raise SoCoSlaveException(message)
soco.exceptions.SoCoSlaveException: The method or property "pause" can only be called/used on the coordinator in a group
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(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1079, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/media_player/init.py", line 835, in async_media_pause
await self.hass.async_add_executor_job(self.media_pause)
File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/spotifyplus/media_player.py", line 289, in wrapper
raise HomeAssistantError(str(ex)) from ex
homeassistant.exceptions.HomeAssistantError: The method or property "pause" can only be called/used on the coordinator in a group
Beta Was this translation helpful? Give feedback.
All reactions