Lovelace: Mini Media Player

Perfect thank you - cant believe I didnt notice those.

Is there a way to group chromecast speakers?
Not sure what paltform to use.

Thanks!

If you create Chromecast/Google Home speaker groups in the Google Home app they will show up as media_player entities in Home Assistant. Within the Google Home app you can add and remove speakers from a playing group on the fly but I don’t think this functionality exists via HA yet. It would awesome if it did/does.

The media_player integration now has a general join/unjoin service Media player - Home Assistant

However it is hard to know what it is supported on

Only works on supported multiroom audio systems.

1 Like

Interesting. I’ll have to do some testing when I get some free time. Thanks!

Seems perhaps it was this commit:

Interestingly the wording in services.yaml core/homeassistant/components/media_player/services.yaml at a653da137c1c50d00f107eb0282b70d9bb569c07 · home-assistant/core · GitHub is

Only works on platforms with support for player groups.

Which is slightly different to the docs

Well there are references to Google Assistant in there so I’m feeling hopeful. I should be able to test and report back early next week.

Does entity_picture work with this one? Tried changing the icon from this:

mini-mediaplayer

To this icon: icons8-spotify-48

with this code:

          - type: custom:mini-media-player
            entity: media_player.stue
            style: |
              ha-card {
                height: 110px;
                      box-shadow: none;
                      background: transparent;  
              }
            toggle_power: false
            entity_picture: \local\img\spotify.png

No. Read the ReadMe for all available card options :point_right: https://github.com/kalkih/mini-media-player#card-options

So spotify should work.

His card already shows the Spotify icon on the left. Using a Spotify mdi icon won’t really change anything. I believe he wants to use a custom colored png instead of mdi icon by using entity_picture, which isn’t a supported card option with this card.

1 Like

Tried it this morning, whilst I didn’t receive an error in logs, it also didn’t group the speakers together.

Used a Nest Hub Max as master, attempted to group another Nest Mini and Lenovo Display.

Card Config:

type: custom:mini-media-player
entity: media_player.kitchen_display
speaker_group:
  platform: media_player
  show_group_count: true
  entities:
    - entity_id: media_player.kitchen_display
      name: Kitchen Display
    - entity_id: media_player.sunroom_display
      name: Sunroom Display
    - entity_id: media_player.spare_bedroom_speaker
      name: Bathroom Speaker

Let me know how your testing goes, would love to see this working, instead of jumping in and out of Spotify to start music and the Google Home app to select speakers. It’s almost worth paying for sonos for a simple experience :joy:

Has anyone been able to determine why artwork: full-cover is still cropping the image. I saw thatnickrout raised the issue once, but so far I have not found any follows. I wanted to first check here before I go open an issue. This is what I see in my cards. Did I miss something?full cover not cropped

I for some odd reason am not able to add the config files to the post no matter what I try. As soon as I add them I am no longer able to hit reply

card #2 config: Ubuntu Pastebin
card #1 config: Ubuntu Pastebin

Hey @hassping , would you mind sharing your script for YouTube?

i’m hiding all the buttons, so i would like to center the info (artist and title) is this possible?

I have searched but cannot seem to find an answer.
Can you add shortcut buttons to a sonos speaker group? I have shortcuts set up for individual media players, but when added to a group, nothing displays on the card. I had hoped that the shortcut choice could be sent to the “master” speaker?

@pjn77 I am also interested in this. Did you end up getting it how you wanted? If so, it would be great to see your code example :slight_smile:

1 Like

Hi - and yeah I did though really it didn’t end up much different to how it was before. Put this in your config for the card

style: |
     :host {
     --mini-media-player-overlay-color: rgba(20,20,20,0.9);
     --mini-media-player-overlay-color-stop: 10%;
    }

And just play about with the values. The overlay color is what you’d expect it to be - note it’s grey with a slight transparency. The Color stop is the percentage from the bottom where it stops being a solid colour, and fades to transparent revealing the artwork underneath.

Really my question was daft because the overlay I was asking for already existed, I just hadn’t paid it much attention until I saw that particular album cover which is a particularly bad one for text visibility. I just darkened the overlay a tiny bit (I think).

1 Like

Any idea how to hide the “group count” from the Name of an individual Media Player. I can hide it from the group, but I’d like to hide it from the individual media players too (if possible)

I would like to know how to get that source select drop down list to buttons?
So I can change input by pressing a button.