Dashboard: Sonos card

Hello! I started to use HA and build a simple Dashboard in the past week, so my question might be too simple.

I’ve looked for it on the docs you shared, but didn’t find what I was looking for. Is there a way to set Spotify as the by default (and only one ideally) Media Browser for this card?

No, the media browser is from HA, this card only uses it. Either search for a way to limit media browser (i haven’t found anything like that) or just add your favorites to the sonos favorites and start them from the favorites section.

1 Like

Thanks, will do!

Is there a way to remove the album art? I would like to have a smaller controller with only buttons.

@Thorny

1 Like

I use Sonos-Card and it immediately worked according to my expectations. Great. Thank you very much! One more suggestion: how about if you could still see the “playlists” in the favorites? That would be great.

sorry for late reply no sadly not.

Very strange certificate mismatch problem related to favorites artwork

Newest version of HAOS. Currernt version of Sonos Card. On the dashboard ON MY MOBILE ONLY, when I click on the Star for favourites, my Sonos favourites flash for a second, and then a message appears:

Unable to connect to Home Assistant, Hostname certificate mismatch.

I’m on my internal wireless network when this happens. External, I use the Nabu Casa cloud. I’ve tracked this down to the error happening when retrieving artwork, specifically from my Siriux/XM favorite, http://pri.art.prod.streaming.siriusxm.com/.

Is there any way to just make this go away?.

@Remcove @stingone
There is a setting for this: hideBrowseMediaButton

Thanks for pointing this. There was an automatic replace of http to https in the code. I’ve disabled that behaviour now (it can be enabled with the config setting replaceHttpWithHttpsForThumbnails).

Please try it out in this beta and let me know how it works.

v7-alpha-2

I copied the new .js file into the proper place, overwrote the old one. The update showed up in system updates. Updated it to the beta. Re-started HA.

Seems I have the same behaviour as before on my phone. Do I have to log out and log back into the companion app on the phone? I even re-started the phone. Or is there a line I should have added in the config?

It would be very helpful if on the card, in the top right corner, you could show the version number.

Just use HACS

I don’t understand. I used HACs. It’s updated in HACs. It showed an update required in Home Assistant. I did the update. I re-started HA. Anything else specifically?

You need to enable beta in HACS. Then if it says v7-alpha-2 there you have the right version

I have the new beta, but now all my Google speakers, Kindle Fire and Chromecast show up in my speaker screens. But the certificate problem seems to be fixed. Thank you. Any idea why all my non-sonos speakers are now added?

Quite a lot of users have requested support for non-sonos devices.
Use this to hide them again: onlyShowSonosPlayers

Thank you so much.

onlyShowSonosPlayers=true

After having received some more feedback this has now been changed back, so by default only Sonos players are shown.
This probably makes more sense since the name of the card is Sonos Card.
From v7-alpha-3 and forward, if you want to show non-sonos players use: showNonSonosPlayers: true

4 Likes

Good morning everyone. First of all, thank the creator for such great work. In the attached image I have indicated two boxes. The first one with red color I would like to change the language and center it in the middle of the card. The second I simply want it to disappear. It’s possible? Thank you.

Changing the title didn’t exist before, so I’ve added it now. Thanks for pointing it out!

Using the following release: Release v7-beta-6 · punxaphil/custom-sonos-card · GitHub you can configure these in your card:

mediaBrowserTitle: My favs
hideBrowseMediaButton: true

PunxaPhil
image

1 Like