Lovelace: Mini Media Player

There was a change to sliders in HA core 2025.10.0, which broke this card.

A fix was released - make sure you have the latest version of the card: 1.16.10

I think I have that version installed as I don’t have any notification about a new version standing out in Home Assistant at the moment but I have redownloaded it and will check it out, but that doesn’t change the fact off course that I am looking for a way to display the current volume when using the volume up/down buttons instead of the slider (due to the slider volume level being under your finger while sliding and therefore unusable)

Edit: The update didn’t fix the slider issue for me. After redownloading the latest version from HACS and removing browser cache, I still see the slider set to 0 (apart from my question about showing entity attributes in a custom button through templating)

I created some shortcut buttons to stream radio stations and some playlists and was wanting to use square cover art instead of just the text, but the buttons are staying like wide buttons with a tiny thumbnail or else a cropped “cover”:

Is there a way to make the buttons square so the “image” is large enough to read or the “cover” doesn’t get cropped? I tried column_height and that didn’t seem to affect them.

My shortcuts section looks basically like the following:

shortcuts:
  columns: 3
  column_height: 200px
  cover: true
  buttons:
    - type: music
      image: /local/radio.jpg
      id: media-source://radio_browser/STRING
    - type: service
      cover: /local/playlist.jpg
      id: media_player.play_media
      data:
        entity_id: media_player.speaker_ma
        media_content_id: library://playlist/8
        media_content_type: playlist
        enqueue: replace

How do you achieve to get the remaing time like this instead of the bar?

You have to unhide that feature to start

type: custom:mini-media-player
entity: media_player.xxxxxxxxx
hide:
  runtime: false

Review the options here GitHub - kalkih/mini-media-player: Minimalistic media card for Home Assistant Lovelace UI

I am also struggling with button images as if specified as ‘cover:’ it gets cropped in some way I cannot fathom. I just had to edit them to fit by trial and error. It seems to work by taking off some ‘margin’ of the image and then adjusting to fit the height. Be good to know exactly what this process is as that woujld make it much easier to ensure the correct size for images.

Regarding button height, that works perfectly for me, but try using just the number.

e.g. column_height: 72

Drop the ‘px’ units. I think that’s causing it to ignore the setting.

A hugely long thread, but using search I was unable to find any answers, so hope others could help.

I have an array of buttons and want to use a pop up list of any additional stations for which I don’t need such easily accessible buttons. 2 Questions:-

Firstly, no icon: or cover: image is shown. If I convert to a button, the images are found, so it’s not that the specified images are unavailable. Makes me think it is not coded to include images in the list, despite the name being pushed across if an icon is specified. So it’s making space for an icon, but then doesn’t actually place it there. In fact I’d rather specify a cover: and have each line in the list look like a button would be with a cover:.
Anyone confirm that images in the list are not (currently) possible?

Secondly, I want 2 lists. Partly to make each pop-up shorter, but also because they fall naturally into 2 groups. I can’t get it to work with 2 list: sections and anyway, no obvious way to enter a different label: for each. Anyone actually got multiple lists working or can confirm they don’t?

I am looking for a media player with a fully included remote.
But not only to hit pause and play but to navigate into the menus when no media is playing. I know there are cards linked to the remote entity but I would like one that appears when I click on the media player when no media is running.

I thought I would find my happinness with this card but it seems I was mistaken.

I have an Apple TV 4K gen 2 or 3

What you want has little to do with this or another media player card. The card only visualises the underlying media player entity, which is provided by an integration for your actual device. Whatever that integration is in your case must provide the necessary capabilities.

I have completed a dashboard using this card, but the volume slider doesn’t fully work in the iOS Companion app in iPadOS 15.8.6

The circle button that slides along the slider control, doesn’t. As you move your finger (other pointing devices are available) along the slider, the volume number shows the changes as it should, but the round button that should slide along the slider and represent the volume setting simply sticks at 0, no matter what the actual volume is.

I’ve tried the ‘condensed’ version of the MMP display and the full version, but it makes no difference as neither works on these 2 older iPads (which otherwise work perfectly). The slider does however work perfectly in i(Pad)OS 26 on later iPads and iPhones and likewise on the Mac and also in the Android Companion app.

Is this a problem with the MMP card or a more fundamental HA media_player problem?

–edit

After posting I see another post about the same problem, from not long ago. Not sure if that related to older iPads, but the symptoms are the same. The volume slider doesn’t move or show the volume level in any way.

–and again

I am using 1.16.10 so it looks like the update only fixed the problem for latest versions of the OS. iPadOS 15.8.6 still has the problem, so hoping that can be fixed.

I should probably report it on Github.

And another question. About idle_view.

What is it?

Lots of mentions but nowhere I can find that states what it actually is.

As far as I can determine, it means shrinking the player part of the display when nothing is playing (or some other basic options). So the volume and info and source etc are all hidden. This is all very well, but it shortens the card and all the buttons etc jump upwards and you can lose the careful alignment you created with neighbouring cards.

Call me old fashioned but I still believe that widgets/controls like buttons should not move about on the screen and instead remain in a consistent position. I realise it’s not a big move and there will be others who simply disagree with the premise, but this movement when playing and stopping is IMO extremely annoying. I obviously need the screen space for when playing, so it doesn’t gain me anything. Just an area of useless white space at the bottom of the screen.

So the question that has been asked on here multiple times, but never answered, is how to disable idle_view altogether so the lower half of the MMP card remains happily in the same place when playing and when not. I tried…

idle_view: false

But that had no effect whatsoever.

I then tried…

idle_view:
  when_idle: false
  when_paused: false
  when_standby: false

Which also had no effect.

Can anyone advise how to completely disable idle_view so all the buttons stay put? :slightly_smiling_face:

I just set all the idle options to false, plus mine is set to use cover as the artwork, with a background image set.

          - type: custom:mini-media-player
            name: Living Room
            entity: media_player.living_room_universal
            artwork: cover
            volume_stateless: true
            source: full
            hide:
              power: true
              volume: false
              mute: true
              runtime: false
              runtime_remaining: false
            idle_view:
              when_idle: false
              when_paused: false
              when_standby: false
            background: '/local/apple_tv.jpg'

Hmmm, that’s odd. That’s the same as I tried, but makes no difference in my dashboard. When not playing, the bottom of the card (with the shortcut buttons) moves up to minimise the area where the volume control etc resides when playing, which I guess is the idle_view.

So for you does the top area of the card remain at the same size whether playing or not?

I tried ‘cover’ as artwork and also cover fit and all other options, but my radio streams seem to not include artwork and I just get a dark background of varying shades and that I didn’t like so resorted to ‘none’. In any case, it did not affect the supposed ‘idle_view’ and the button area continued to jump up and down when playing and not.

The only thing that changes the dimensions for me is the length of the title of the active media that’s playing or paused.

I wonder if setting the background image fixes the overall size. I have nothing in the background and I cannot prevent it from returning to idle_view when off.

A bigger problem though is that on the iPads (running iOS 15.8.6) the volume slider is not fully functional. As mentioned before, the volume does change, but the coloured circle of the slider doesn’t move. It works on all my other devices, but is a problem (not just for me) on the older devices.

Really hoping for a fix to this.

Which is why I said this:

Yes you did. So seems the idle_view settings are irrelevant/non functional unless used in conjunction with a background image.

Seems to me they are very specific and should prevent it from entering idle_view. There is no mention in the readme that a background image is involved in idle_view settings.

Hmm, I wonder if card_mod could fix the height. Worth a shot…

Yeah, so that’s exactly the problem I had at the time, but it was quite some years ago. I don’t remember how I got to that, but that snippet I posted was everything I needed to make it work for me.

I vaguely remember trying card-mod, but I think the CSS classes changed depending on what the player’s status is and I couldn’t get that working. MMP also has some of it’s own CSS variables.

Ok thanks, but if you couldn’t get it sorted with card_mod, I doubt there’s any point in me trying. Messing with CSS is not my favourite pastime.

What about setting background to a transparent PNG of suitable size. Would that perhaps fix the card size, while still showing the colour set by the theme?

Even better if we could persuade MMP author to add an idle_view: false option that simply prevents it from ever switching to the idle_view.

:joy: It’s a necessary evil when needed in HA, for me. Sometimes I don’t try very hard. My dashboards don’t need to look spectacular, so sometimes I just live with it.

As a former fulltime dev, enjoyed giving feedback, but building frontends wasn’t my strength or favourite.

I think that might work.