Hi,
I’m experiencing issues with my sonos integration since a couple of days. I’m calling play_media or select_source with radio stations in my Sonos favourites, both is not working anymore - but used to work. I’m getting “UPnP Error 402 received: Invalid Args from ”. Calling a spotify playlist favoured in Sonos the same way works, so it seems to be related to the radio favourites. Does anyone have an idea?
Please post the full error text from the home-assistant.log
I seem to have run into the same issue, my favourites in Home-Assistant are old (ones that I deleted years ago). I also have the select_source issue that it can’t find the favourite to play.
Log:
Error calling SonosMediaPlayerEntity._play_media on media_player.kantoor_sonos: UPnP Error 402 received: Invalid Args from [redacted IP]
Try to delete & recreate the favorite in the native Sonos app. Sometimes the saved references simply stop working.
I’m having a similar problem. If I go through the media browser, select a Sonos device as a target, I can browse favorites, where they now show up in a folder called ‘Radio’ within the Favorites folder. I can select the source within this new folder and it will play correctly.
What no longer works for me is the ability to just type the name of the source as the source in a script. Here is the trace log shown:
(script.office_sonos_coffee_jazz) turned on
Call a service ‘Media player: Unjoin’ on Office Sonos
Call a service ‘Media player: Clear playlist’ on Office Sonos
Call a service ‘Media player: Select source’ on Office Sonos
(script.office_sonos_coffee_jazz) turned off
Stopped because an error was encountered at June 14, 2024 at 12:09:41 PM (runtime: 0.14 seconds)
Could not find a Sonos favorite: Coffee Jazz
Not all shown logbook entries might be related to this script.
I am using the TuneIn (New) integration for this and these are manually added stations from JazzRadio.com, DI.FM, etc.
Has anyone solved this?
I can see the docs are updated to be like this:
action: media_player.play_media
target:
entity_id: media_player.sonos_speaker1
data:
media_content_type: "favorite_item_id"
media_content_id: "FV:2/31"
but i get Invalid Args
or Missing favorite
whatever i try
Please post the actual error message from the log. Sometimes favorites need to be deleted in Sonos and readded before they work.