Lovelace: Mini Media Player

This blanks out on me a lot. See the image. I have the media player display with the Mini Media Player Card in the upper right of the image. And with the regular media control card on the left. It will display sometimes then everything disappears except the timebar and volume. Any ideas?

Here is the code:

type: custom:mini-media-player
name: Music
icon: mdi:radio
source: icon
sound_mode: icon
artwork: cover-fit
entity: media_player.patio2

You arenā€™t playing anything so there probably wonā€™t be art.

It is like that when it is playing. It just happened when I grabbed the screenshot it has stopped.

At the moment it looks normal with nothing playing.

The power and source buttons for example are there. The other has nothing.

Make sure the cache on your browser page is fully cleared.

Other than that youā€™ll have to tell us more.

Riktigt fint!

One question, or request rather. I have 4 players in a footer and while they look awesome when thereā€™s something playing, they look equally dull when theyā€™re not being used. Is there a way to set a ā€œdefault stateā€ or like a fall-back image? So I can add my own art/photo, which then switches to the song artwork when playing?

Yes, itā€™s in the docs and this thread.

I found it right after I pressed reply. Right there in front of me. Thanks for not being a jerk about me being an idiot!

Nobody called you names.

After doing an update recently I lost the dropdown arrow to select source that had my Sonos Favorites. Now when I click on the Mini Media Player it brings up the media player popup that has a button to browse media then I have to go to Sonos Favorites then I have to click on Playlists or Radio depending on what I want to play then I have to select the Playlist or the Radio Station. So now I have to go through 5 clicks compared to clicking on a dropdown and selecting the the playlist or radio station what was in an integrated list.
I have done a hard refresh of my browser but there is no change.
Is there anything else that I can do to get the dropdown back?

There is extensive discussion and moaning on (I think) the 2022.4 release thread. Short answrr, it wad deliberately broken for (apparently) good reason.

1 Like

Luckily I was able to figure out how to make scripts and add shortcuts to the mini media player.

1 Like

Did you ever get this working? I am having the same problem of getting the arrows up, down, left, right and ā€œselectā€ to control my Roku.

thanks

I am having the same problem getting a button to create a naviagation. Did you ever get it to work?

thanks

hi, iā€™m looking for a way to replicate the sonos controller in HA. i have 5 Sonos speakers and i would like for each of the to be the master of the group and potentially even have more than one group. is the above still the best way to be able to change the master of the Sonos group? it looks a bit technical for me but Iā€™ll give it a go if its still the preferred method.

cheers

Iā€™m trying to figure out how to get sources to show upā€¦ presently I have to click on the player to open up and get this

Capture

So I can click on the red circle to get this

Then click on the SONOS to open this up

Then click on Radio to get this

Then pick one so itā€™ll playā€¦

I know there has to be a much easier way but Iā€™m not finding itā€¦ suggestions or examples would be very helpful if anyone could help.

Hereā€™s my current setup:

 - type: custom:mini-media-player
        entity: media_player.sonos_five
        icon: mdi:music
        artwork: cover
        #info: short
        hide:
          volume: false
          repeat: false
          power: true
          runtime: false

How do I get a list to show up or configure buttons on the media player to choose a station?

Thanks All!

1 Like

The new Sonos Favorite entity might be useful. But I canā€™t wrap my head around how to use it in conjunction with Mini Media Player, or if itā€™s even possible. But the list behaviour seems akin to what we want.

Link to the usage examples

1 Like

WOW Thank you!!! I didnā€™t even know that the sensor.sonos.favorites was even there!! Iā€™ve enabled it and NOW I can get it looking good :slight_smile:

THANK YOU!!!

It only just got released Wednesday, so itā€™s brand new! :blush:

1 Like

Playing with it right now LOL Before I have to leave for work! Iā€™m planning on buying another Sonos this weekend so Iā€™ll have 2ā€¦ Love the sound!!

Only had one to see sound qualityā€¦yeah theyā€™re good :wink:

Trying to create a button to show a shortcut to my ā€˜stationsā€™ that I have.

sensor.sonos_favorites

That lists all my ā€˜favoritesā€™ but cannot figure out how to get them into this card.

A dropdown or buttons?

This is what I currently haveā€¦ have tried a few things but cannot get it working but no luck yetā€¦

media

Currently the only way to get to my ā€˜favoritesā€™ is having to click on the cardā€¦ choose ā€˜Sonosā€™ then get a list ā€¦ I would rather have it on the card if possible.

Hereā€™s my current configā€¦ pretty sure I have something wrong in it.

- type: custom:mini-media-player
        entity: media_player.sonos_five
        hide:
          power: true
        artwork: cover
        name: John's House Jams
        list: 
          data: sensor.sonos_favorites

Hereā€™s my current config but would rather have the list working as this is getting rather large and I would like to have a nice neat cardā€¦

- type: custom:mini-media-player
        entity: media_player.sonos_five
        source: icon
        info: short
        hide:
          power: true
        artwork: cover
        name: John's House Jams
        shortcuts:
          columns: 3 # Max buttons per row
          buttons:
      # Start predefined playlist
            - type: source
              name: Classic Rewind
              id: "25 - Classic Rewind"
              icon: mdi:radio
            - type: source
              name: Classic Vinyl
              id: "26 - Classic Vinyl"
              icon: mdi:radio
            - type: source
              name: Rockbar
              id: "313 - RockBar 313"
              icon: mdi:radio
            - type: source
              name: Octane
              id: "37 - Octane"
              icon: mdi:radio
            - type: source
              name: Ozzy's Boneyard
              id: "38 - Ozzy's Boneyard"
              icon: mdi:radio
            - type: source
              name: Hair Nation
              id: "39 - Hair Nation"
              icon: mdi:radio
            - type: source
              name: Liquid Metal
              id: "40 - Liquid Metal"
              icon: mdi:radio
            - type: source
              name: Turbo
              id: "41 - SiriusXM Turbo"
              icon: mdi:radio            
            - type: source
              name: Rock 102
              id: "Classic Rock 102.9 MGK"
              icon: mdi:radio
            - type: source
              name: Country Forever
              id: "Country Forever"
              icon: mdi:radio
            - type: source
              name: Hair Metal
              id: "Hair Metal"
              icon: mdi:radio
            - type: source
              name: ROCK 95.5
              id: "ROCK 95.5"
              icon: mdi:radio

Thanks!