Dashboard: Sonos card

JW makes me happier :laughing:

Sure thing.

This is what I got, should it display the same way as the first and last?

Hi,

Did anyone manage to get an overview of the tracks of a certain playlist to visualise ? I’m able to choose the spotify user & visualize the playlist per user, but not able to see the tracks to choose from

Thx in advance !

Kr,

Bart

Ok, here is a new beta that I hope fixes that: Release v4.2.0-beta2 · johanfrick/custom-sonos-card · GitHub


PunxaPhil - More coffee, more code :slightly_smiling_face:

That works.

image

Thanks for testing it! v4.2.0 is now released.


PunxaPhil - I like coffee :slightly_smiling_face:

Looks like the official release reverted it.

**v4.2.0
image

I’m having trouble getting a background image to show up. I know its something simple I’ve missed, but I can’t find it. I’d appreciate any direction. Themes.yaml and card config below.

#Sonos
SonosDark:
  sonos-background-color: none
  sonos-artist-album-text-color: rgb(198, 203, 210)
  sonos-title-color: rgb(198, 203, 210)
  sonos-color: rgb(198, 203, 210)
  sonos-player-section-background: rgb(32, 33, 36)
  sonos-accent-color: rgb(198, 203, 210)
  sonos-ha-card-background-color: none
  ha-card-box-shadow: none
theme: SonosDark
    title: Sonos
    path: sonos
    panel: true
    icon: ''
    badges: []
    cards:
      - type: custom:custom-sonos-card
        backgroundBehindButtonSections: true
        background: url("/config/local/backgrounds/darkblur.jpeg")

Apparently I don’t understand folder references properly. I moved the background file to /config/www/images/darkblur.jpg
and used url("/local/images/darkblur.jpg") and it worked. I honestly don’t know why. I’m assuming /www/ translates to /local/ somewhere? I’m sure that’s in some sort of documentation I’ve missed, but if anyone cares to shed any light, I’d appreciate it.

1 Like

Fixed in v4.2.1

Great work! I like sonos card so much! This is a big step for Home Assistant! Thank so much!

1 Like

Is there a way to enable shuffle option to all playlists as default?

Not that I know of.

If anyone wants to help out testing, there is now a beta that supports CSS styling directly in card config. Read more here:

Just did it, added styles… very impressive !!!

Works ok, any glitches anywhere? Quite a lot of the codebase has been modified.

As now, no, all ok…

am I missing something or is there no way to get a progress bar on the player screen?

I noticed that 2 nights ago

1 Like

Hi there,

I tried some things already but I can’t seem to get the favorites part working. From what I read it should be automatically generated from the radio stations and playlists I added to my sonos in the sonos app, right?

I did that and added multiple radio stations and spotify playlists but it just stays empty. I already updated to latest release (downloaded from HACS) and had the sonos integration reloaded but nothing shows up. When I go to the developer tools I have the radio stations as sources in source_lists attribute so that works apparently.

image

Does anyone have a quick explanation for me?

Thanks in advance

Karl