-
-
Notifications
You must be signed in to change notification settings - Fork 28.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error on media_player.select_source for Sonos speakers - UPnP Error 402 #117703
Comments
Hey there @jjlawren, @PeteRager, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) sonos documentation |
Addition: snippet yaml:
|
That looks like an invalid media content Id. What are you trying to do exactly? When I run that service call, I get the same error. The error is from Sonos and indicates that the content_id is of an unknown type. So the integration appears to be working as expected when passing in invalid media |
@home-assistant close |
I'm trying to start my radio (LOS40 is a Spanish radio station). It has worked in earlier versions. But also when I use the favourite_id, as written in the docs , I get this error: Error calling SonosMediaPlayerEntity._play_media on media_player.sonos_move: UPnP Error 402 received: Invalid Args from snippet:
|
Select Source does allow the playing of a favorite by name, so that should work. As should play media using the favorite id (the example you provided is not quoted the same as in the documentation, try putting those strings in quotes) There is error checking in select source that would log a different error if the favorite does not exist. That isn't happening, so it appear the favorite does exist but the speaker is refusing to play it. UPNP errors are coming from the speaker which means the integration is sending it but the speaker is rejecting it.
|
@home-assistant reopen |
I just tried this on the dev branch (aka the latest). I added that radio station to my sonos favorites and tried these two service call. They both work fine.
and i tried it using the favorite id (my id may be different than yours)
|
It works from the Sonos App and I already power cycled the speaker. |
The problem lays with the new Sonos app. Old favourites won't work either in the sonos app or HA. When deleting the old one and creating a new favourite, it works like it should be. |
The problem
When selecting a source with with service
media_player.select_source
, you get an UPNP error 402What version of Home Assistant Core has the issue?
core-2024.5.4
What was the last working version of Home Assistant Core?
core-2024.4
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Sonos
Link to integration documentation on our website
https://www.home-assistant.io/integrations/sonos/
Diagnostics information
No response
Example YAML snippet
Anything in the logs that might be useful for us?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: