Dashboard: Sonos card

That’s the problem, you should avoid the vertical stack. ’panel: true’ is good though

type: panel
cards:
  - type: custom:custom-sonos-card

Thank you!! Finally got it!!! I had to then go back to the % for groups, favorites, etc… [Didn’t hit me until I discovered the ‘panel’ option in HA] Should have yelled at me @PunxsutawneyPhil … NONE of it worked until I discovered the ‘panel view’ WHICH you mentioned in the notes… ugh MY fault totally…

For the next ‘rookie’ … here.

 - title: Music
    icon: mdi:music-note
    type: panel
    theme: rounded
    cards:
      - type: custom:custom-sonos-card
        shuffleFavorites: false
        allVolumesText: 'All volumes'
        entityNameRegexToReplace: 'SONOS '
        entityNameReplacement: ''
        layout:
          mobileThresholdPx: 650
          groups:
            width: 17%
            mobileWidth: 100%
          players:
            width: 20%
            mobileWidth: 100%
          favorites:
            width: 35%
            mobileWidth: 100%
          favorite:
            width: 20%
            mobileWidth: 100%          
        selectedPlayer: media_player.sonos_pair
        backgroundBehindButtonSections: false 
        skipAdditionalPlayerSwitches: false
        groups:
          order: 0
        players:
          order: 1
        player-body:
          border: 5px black
        player-song:
          color: '#000000'
        font-family: Times New Roman
        font-weight: 900
        mediaBrowser:
          order: 2
        title:
          fontSize: 24px
          fontWeight: lighter
          textTransform: uppercase
          color: white
2 Likes

Still no one who was able to display the tracklist when certain media has been chosen ?

Did you find an way to use the new sensor for favourites in this custom card? Or in any other card?

1 Like

Today I noticed my dashboard is completely empty. I’m using the default type: custom:custom-sonos-card but there is nothing. I always have been using this without any additional values. Now it is just empty.

Ensure that your Sonos device(s) are currently seen by the Sonos integration in HA, especially whichever device was most recently the ‘coordinator’.

The only times I’ve seen my Sonos card view completely empty was when my LivingRoom Play was offline and it was the most recent coordinator. When I restarted it and it came back up, my Sonos card view was back to normal. YMMV

2 Likes

Is there any way to make the favorites section just a list without artwork? It would be great if it looked like the groups section.

My tablets are on the local network, but they do not have internet access. Everything works well. I have artwork for the currently playing. I do not have artwork for the favorites.

Restarted my arc and it is discovering fine again.

If not you can specify locally stored artwork.

I’ll look into it: Media browser as a list instead of in grid mode · Issue #70 · johanfrick/custom-sonos-card · GitHub

1 Like

That would solve my problem with SiriusXM not showing artwork… I can just make a list… AND I can put more favorites in it!!! Great idea!

For the home theater Arc speaker does anyone know how to add the TV input to favorites? It does not allow this in the Sonos app. Or has anyone found another way around this?

As an aside it is interesting that it does allow the speakers with a line in to be added to favorites but not the Arc/Beam input.

1 Like

How do you use local artwork? I’ll still probably use a list because its easier on a small screen, but definitely curious.

I tested this card against 2022.6B specifically because of the breaking change for sonos grouping and ungrouping and the card still works. I’m not sure if it’s because it was written to handle this anyway so the breakage didn’t impact us but I did want you to know that I specifically looked to validate this change and I can’t find any issues.

2 Likes

OK, perhaps I was misinterpreting what I was seeing but now I’m starting to get warnings in the logs and I know these join/unjoin requests are ones I initiated from the card (I’ve already overhauled all my automation joins). I think this is a harbinger of things to come:

Logger: homeassistant.components.sonos.media_player
Source: components/sonos/media_player.py:142
Integration: Sonos (documentation, issues)
First occurred: 7:41:19 PM (3 occurrences)
Last logged: 8:08:50 PM

Service ‘sonos.unjoin’ is deprecated and will be removed in 2022.8, please use ‘media_player.unjoin’

Looks like they’re giving us till Aug relase to get it updated.

Thanks for finding this! Should be fixed here: Release v5.2.0 · johanfrick/custom-sonos-card · GitHub

1 Like

Hello, I am not sure if it was ver 5.5.0 of this card or HA 2022.6.0b4 but one of them took out my media display:

I downloaded both within a few hours of eachother and I just noticed it. I’ve rebooted completely following the HA update reboot.

1 Like

Same thing just happened to me when I updated just now to 5.5

1 Like

Thanks for reporting the bug. Should be fixed now: Release v5.5.1 · johanfrick/custom-sonos-card · GitHub

@mboarman

2 Likes

I meant to confirm validation. Yes, this resolved the issue. Thanks

1 Like