Lovelace: Mini Media Player

I done it with this introduction:
https://www.home-assistant.io/integrations/yamaha/

media_player:
  - platform: yamaha
    host: 192.168.0.10
  - platform: yamaha_musiccast
    host: 192.168.0.10
    port: 5005

It is no Problem to write the platform yamaha together with the platform musiccast_yamaha.

i hope i can help you with this

I will try it soon.
Thanks for responding.

Hello, I become a bit crazy with CSS managment in HA so I ask for your help.
Iā€™ve a transparent background ha-card style that I donā€™t want.

because with this instruction my medial player are like that :

when I expect this (that I obtain if the background is uncheck in the chrome inspector

Where is this transparent insctruction ?! How can I manage that with my template ?

Thanks in advance

Would it be possible to have a Material background without the artwork?
This would be handy when using different buttons for different media players where they all have matching color and only the main playing unit has the full Material Artwork.

The example below would have the matching dark colors in the two smaller buttons
ha_mmp_material-buttons

Same problem for me, did you solve this?

Hi
Would you mind sharing your config? This looks very nice :slight_smile:

Sorry, where you take the entity_picture?
thanks in advance :smiley:

Unfortunately not. I had no time to investigate this further.

Iā€™m in the middle of building a dedicated tab for my audio media (radio streams, pandora stations, and spotify) through my Sonos system. My question is there a way to force a Cover Image (as a placeholder) when the stream doesnā€™t contain any metadata for Album artwork?

Has anyone actually managed to play tunein content on a Sonos with any trick?

(Sonos does not support a media type of ā€œTUNEINā€)

I have all other speakers with tunein sources and wanted to include my Sonos speaker in the same card.

Add the station as a Favorite in the Sonos app and it should populate as a source. See this thread:

I would like the same thing but from what Iā€™ve gathered you canā€™t. I havenā€™t tried it myself (yet) but it might be possible with something like card mod.

Yes, that is known, but I actually wanted tunein directly as a source, but that does not seem to work in no way. I was hoping that you can somehow fool sonos mp3 and he takes the tunein stream then.

If you can extract the URL to the stream itā€™s pretty easy, I have it setup that way to play a number of streams, the problem is it can be challenging to get the actual stream link out of TuneIn. An example of a direct stream link I have embedded in a script is:

action:
  - data:
      volume_level: 0.12
    entity_id: media_player.sonos_dining_room
    service: media_player.volume_set
  - delay: '00:00:02'
  - data:
      media_content_id: 'aac://ice66.securenetsystems.net/WPHD'
      media_content_type: music
    entity_id: media_player.sonos_dining_room
    service: media_player.play_media

Thanks for the suggestion, Iā€™ll look at Card-Mod. I have to imagine that there is someway to build a placeholder image in the background and have MMP overlay the metadata on top of it. Right?? I canā€™t be the only one who is attempting to do this. LOL.

Youā€™re welcome.

When I get to it I will try to use a template to check if the media player is playing and only set the default background on the right element if thatā€™s not the case (i.e. not playing).

1 Like

I couldnā€™t find a way.
Wanted to have images and such when the AVR is using the sat/xbox and such.
In the end generated my own image display using a ā€˜generic cameraā€™ as source so I can change the url to the image. That way I copy the streaming image value to the camera or set one of myself.
Would be nice if MMP would allow for a way to set images on fixed inputs (eg hdmi1).

Interesting approach, Iā€™m still learning my way around HA and Lovelace. What entity did you use to send the miniplayer artwork to the generic camera? Mind sharing a snippet of the code?

Hi all,

Did you or anyone else ever succeed in getting card-mod to style any part of the mini media player card? Iā€™ve been utterly unsuccessfulā€¦ Iā€™m just trying to get the text of my buttons to fit on the buttons.
image
Iā€™ve tried a million things, here are a few:

        style: |
          .slot-container {
            margin: 0px !important;
          }
        style: |
          mmp-button {
            font-size: 6px !important;
          }
        style: |
          .mmp-shortcuts__button {
            display:  !important;
            width:  !important;
          }

Any sample of anyone whoā€™s done any styling on this card wil be appreciated, especially on the buttons!