Lovelace: Mini Media Player

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!

Hi team.
Is there any way I can get volume sliders beside each speaker zone? Perhaps only if that zone is ‘on’.
Here is my code.

Thanks.


1 Like

I have 2 sonos speakers that no matter what I try they will not show up on the card as they should…

Here’s my config… I’m sure it’s something I’m overlooking that’s simple but would appreciate some help! [I’ve changed platform that currently says media_player to sonos and nothing changes]

- type: 'custom:mini-media-player'
        entity: media_player.sonos_pair
        name: John's House Jams
        icon: mdi:speaker        
        volume_step: 1
        sync_volume: true
        artwork: cover
        hide:
          power: true
          volume: false
          progress: false
          icon_state: false
          state_label: false
          prev: true
          next: true
        speaker_group:
          platform: media_player
          show_group_count: true
          source: full
          sound_mode: full
          info: scroll
          entities:
            - entity_id: media_player.sonos_five
              name: Front Speaker
            - entity_id: media_player.unnamed_room
              name: Rear Speaker

Thank you to @Louis1 for posting your config… the above issue was an indention issue!!! Fixed!! :slight_smile: PS [EDITED the above config it’s now correct]

Hello all,

Could I possibly get some help on one the below issues. I really don’t know what is going on or causing it. Below is a screenshot of the UI when I attempt to use the mini media player custom card which was installed through HACS. There are no input abilities on the GUI and the input area where you put the entity you would like is completely missing (In my instance, there is a list of all media player entities in its place that). Essentially, I can interact with virtually no input areas. Thank you all for any guidance that you can give.

You’ve got to choose one, click on the media player you want to use!

So on this one, those things at the top aren’t clickable for some reason.

Yeah, they should be.

Hmm, let me look at this again.

Make sure you refresh your browser, ctrl-f5.

is it possible that the gui portion may be broke, i’ve read alot of the custom lovelaces don’t have a fully built out gui. I’m messing with this as we speak.

Its just not acting right. I am clearing cache/ refreshing now

Is it possible, that I have so many media players that it is flipping it out? Refresh seems to have done nothing for me on this one.

Maybe. Use the code editor.

Would anyone else have any ideas as to what could be causing these issues? @kalkih I’m honestly at a loss and don’t know what else to look into/ check

Use the code editor.

So, something ended up being weird with this. I ended up deleting every lovelace custom downloaded from HACS (luckily, I really wasn’t using any of them). Rebooted HA and then when I went back in, downloaded only mini media player from HACS and the GUI looked proper. I don’t know if it’s possible but I almost wander if one of the custom lovelace cards I had was interfering with that one. Anyways, it’s corrected now so I guess that’s all that matters. Thank you again for the help you have given me on the couple of things I had going on. Very helpful!!

There has also been an update for this card in the last day or so, so you may have got a newer and better version in the process. Glad you got it working anyway.

Hi,

Have problem with my image the first “full-cover” artwork got bright bacground image. If change it to “cover” get pallid image. Need bright image in “cover” too. Please help.


Is it possible to have more than one label in the shortcuts?