I dug deeper in using automations with the several dozen playlists I have favorited in SONOS now.
I spend an obnoxious amount of time listening to SONOS and playlist fatigue can happen easily with limiting automations/playlists. For those who donāt know how, hereās a script you can use to randomize the selection of your playlists. Just swap out the names of your playlists and donāt forget to remove the heavy metal playlist from the dinner/bedtime automations (or donāt, I donāt know your life):
service: media_player.select_source
data:
source: >-
{{ ['Soft Jazz Sax', 'Disco Essentials', 'Chill House', 'Chill Synthwave', 'Classical in Spatial Audio', 'Dinner Party', 'Electronic in Spatial Audio', 'Good Vibes Only', 'Jazz in Spatial Audio'] |
random}}
target:
device_id: d0a7ecf729f5e419975ebddd8454ab16
The card is great and offers an awesome overall view of playlists but I like to automate selections where I can and let HA pick music to keep it fresh (or at least changing).
two things. I had issues when one of my playlists had a colon in it, so remove that playlist (you can rename it in sonos).
Second, the efficacy in the dev tools of this script seemed hit or miss and I read a few threads reporting this behavior. It was only when I built an actual script that it would fire every time (I canāt tell from the screenshot).
I have a doubtā¦ This script only changes the source but do not plays that source. Or am i wrong?
Maybe do i need another service to play that selected source, or that service after choosing the source will also play it?
Iām not sure if it was the new SONOS Card or the new HA Beta version core-2022.5.0b3 that caused it but I canāt get any SONOS card to display. I tried very basic ones and itās just showing a blank page. when I paste my code in there, I donāt get any errors and it lets me save, the page is just blank on the dashboard. I started noticing it a few days ago which coincided with both releases. Iām just now getting to dig in; Iāve spent some time playing with it and I couldnāt get my card to show.
I stripped out my theme to eliminate that
I re-downloaded sonos card just to be sure
I entered numerous versions of cards
all display as a blank screen
Thereās a breaking change in the HA beta where the old āsonos_groupā attribute is now named the standard āgroup_membersā like other media player integrations that support grouping.
I underestimated how much I rely on this card now until I was without. I mean that as the highest of compliments. Definitely one of my most used dashboards.