Logger: homeassistant.components.sonos.media_player
Source: components/sonos/media_player.py:1035
Integration: Sonos (documentation, issues)
First occurred: 22:18:17 (2 occurrences)
Last logged: 22:19:55
Could not find a Sonos playlist named "spotify:album:6wiUBliPe76YAVpNEdidpY"
Have you tried adding Spotify to My Sonos? It should then become available through the āsourcesā list on a HA media card. Iām not a Spotify user, but I have access to several radio stations this way.
I had a lot of trouble with the media browser too. Finally got it to work by deleting all references in configuration.yaml and doing a new UI integration. Quite impressive, but still a bit cranky - thereās one speaker it will not recognise. The only difference from the others that I can see is that power is switched off overnight.
Havenāt tried controlling Sonos from scripts etc. yet.
Iāve done that before, add to My Sonos so that HA recognizes the playlist (which can be an album). But I donāt know if I want 50 albums in My Sonos just for the HA integration. A great advantage is that it can be anything Sonos supports.
Not having to add to My Sonos would be one less step. Although youāll need to get the album ID from Spotify doing it the other way. So thatās also cumbersome.
Even in My Sonos there is a limit - I wanted to use this method to add some albums and it seems there is a limit around 60-70 favorites in My Sonos.
The only solution I see is to integrate the node sonos http api project into Home Assistant as it allows to chose spotify albums for Sonos via the spotify URI. If you find the time to do this @DavidDeSloovere it would really be awesome!
I just added the ability to enqueue Spotify albums to the Sonos integration. You can try it out as a custom integration with HACS, see https://github.com/amelchio/sonos
That really sounds great. But why is the media_entity_id not in the form of spotify:album:1bt6q2SruMsBtcerNVtpZB. Anyway, sounds awesome and I will test it tomorrow.
I am building an automation where my kids can start a random paw patrol album on Spotify playing on their Sonos speakers by pressing a push button.
I am working on making it play immediately when dropping enqueue: true but I will be busy with other things for a few days.
Started wondering whether it should be media_content_type: music or media_content_type: playlist like in the OP. I am not quite sure what each is supposed to mean.
Got my scripts working. ItĀ“s a mixture of the Tags example with a random selection of an album from artist. My kids are happy, they can now switch between playing Paw Patrol and Super Wings and everytime a card is scanned it will play a random storyā¦
ThereĀ“s only another thing I am still missing. Maybe you can give me a hint how I can achieve this. My wife always activates the ārepeat modeā on the sonos speaker. I havenĀ“t found a way to disable repeat mode by using scripts or automationā¦
@amelchio donāt want to stress you. But I forked your repo and implemented the feature for my installation. Iāve implemented in a Sonos service like this
sonos.set_play_mode
With the data field like this
data:
entity_id:
play_mode: NORMAL
I guess that this is not the best way to do it. If you point me in a direction how the service should be called and if youāre open for contributions, I could finalize this feature on my own.