and that works fine.
But I have more than one playlist stored in my sonos system, all created in the same way with the same pattern and so on. But when I try to start ddf_2 I get this message in my logs:
2023-09-24 09:54:29.506 ERROR (SyncWorker_13) [homeassistant.components.sonos.media_player] Could not find a Sonos playlist named "ddf_2"
And now it’s going crazy.
The following list are playable:
ddf_1
ddf_10
ddf_100 to ddf_1xx
When I’m trying to start ddf_11 I get
2023-09-24 09:57:00.397 ERROR (MainThread) [homeassistant.components.automation.neue_automatisierung_2] Neue Automatisierung: Error executing script. Error for call_service at pos 3: Error calling SonosMediaPlayerEntity._play_media on media_player.schlafzimmer: UPnP Error 804 received: from 192.168.145.16
2023-09-24 09:57:00.406 ERROR (MainThread) [homeassistant.components.automation.neue_automatisierung_2] Error while executing automation automation.neue_automatisierung_2: Error calling SonosMediaPlayerEntity._play_media on media_player.schlafzimmer: UPnP Error 804 received: from 192.168.145.16
So most of them ends up in the “not found” error.
I can only play ddf_0, ddf_1, ddf_10 and ddf_100->ddf_199
What is the magic trick to get this work? Or did I found a bug?
Cheers and thx
Marco
Sonos is currently having some kind of problems, the week all favorites were unavailable in the Sonos app for me and no services were available either. Since yesterday, however, it works again with me.
Curiously, not all users were affected, with some it worked, with others again not.
So does not hang on Home Assistant. Have you ever started the original Sonos app and tried to start the playlist?
Hi Moss,
many thx for your reply. Sure, I can easily start all playlists wir the sonos app. Also dff_2 and so on. All that are not working with the script are working by playing them with the sonos app.
I have also my old Redmatic instance where I had this already implanted and I’m able to play all dff_x playlists with that.
So i guess that not sonos but the way how the sonos implementation on Home Assistent is trying todo this.
Don’t you agree?
Cheers
Marco
You are totally welcome. I also wondering why this is happen and hope to find an answer in this forum. Or is there a way to open a bug ticket answer? Maybe it’s truly a bug and the developer are able to reproduce them?!
Ok, I fixed this by a little cange in the media_player.py file.
Line ~632: (old)
try:
playlists = soco.get_sonos_playlists()
playlist = next(p for p in playlists if p.title == media_id)
(new)
try:
playlists = soco.get_sonos_playlists(complete_result=True)
playlist = next(p for p in playlists if p.title == media_id)
This change the behavior that all playlists are downloaded now and can be used.
But sorry, I don’t how to open a feature/change request here. So maybe someone find this post helpfule and can made this for me or someone can help me to create one
Cheers
Marco