Would love if there was an option in the Sonos component to be able to select a playlist or select something from Sonos favourites to play - even if just a dropdown list or something to choose from. I haven’t seen the other media player components as to what is possible within the base component.
This only just became possible in the Sonos Python library. Said library will soon make it in to HASS. After that, I was thinking of looking in to adding favorites selection to the HASS GUI, but I haven’t even started looking for where to start. Suggestions welcome.
The principle is that the nodejs-app publishes the playlists in a URL in json-format. The python-script accesses that URL, parses the json and writes the lists as an input select for home assistant. The select list can then be put as a regular component in home assistant.
The automation script reacts when you select something in the list by running a shell command that starts the playlist through the nodejs-interface.