Lovelace: Mini Media Player

Got it!
turns out that it was a mix of size and position causing it to be invisible.
Now time to get some buttons there.
Thanks Jörg!!!

Your welcome.

Now I have question:
what exactly is it I am looking at at the bottom of you screenshot, the radio stations?
Is this within HA? And if so, how is this done?

To be clearer: I play radio stations myself but by using normal buttons. If possible I would like to use their logos only.

At the moment they’re from homekit card, but I think I will change them to custom:button-card.
I have plenty of graphics… if you need.
I am migrating my UI from command fusion iviewer software that I used in conjunction with crestron, but since discovering HA few years ago I am moving my home system across.

Hello all!
Two questions:

  • Is it possible to play audio from youtube videos through linkplay speakers? If it is, how?
  • Can home assistant (or mini media card) cast an online radio streaming to an echo dot and a nest mini at same time, multiroom style?

I know I made 3 questions. Sorry for that!
Thanks!

Looks nice, can you Share the complete code please.

I will. It is a mess at the moment, but I am going to sort it out in next few days.

1 Like

Just a quick question in regards to media player services…
I have tried few options and can’t get transport buttons to work.
current code:

- type: custom:button-card
  aspect_ratio: 1/1
  entity_picture: /local/img/btn_play_i.png
  show_entity_picture: true
  tap-action:
    action: call-service
    service: media_player.media_play_pause
    target:
      entity_id: media_player.lounge_heos

Don’t use target:


  tap-action:
    action: call-service
    service: media_player.media_play_pause
    service_data:
      entity_id: media_player.lounge_heos

1 Like

Unfortunately not working. I have tried that too.
The following code works from standard button card, but not from custom:button-card

type: button
tap_action:
  action: call-service
  service: media_player.media_play_pause
  service_data: {}
  target:
    entity_id: media_player.lounge_heos
icon: mdi:play-pause

With this I am getting error: Failed to call service media_player/play_pause. must contain at least one of entity_id, area_id.

Got it!

tap_action:
  action: call-service
  service: media_player.media_play_pause
  service_data:
    entity_id: media_player.lounge_heos

After many tries… this finally works.
…however it does not work with prev/next track.

What was the problem?

‘target’ was not necessary.

slowly getting there, loads of hiccups on the way, but it is not to bad.
for now only play/pause service button works, the rest don’t do anything despite checking the code in visual editor (annoying).
Can’t get the runtime to display on its own. (gray square next to cover art)
Also, stuffing cards inside cards not always works as intended (I thought that I found a way to introduce opacity to the sidebar)

Source selection conditional card is ready.
for now in standard interface. my binary toggle does not work as intended )-:

I have moved it to my custom interface and it does not work inside picture elements card.
looks like another show stopper. Any workarounds?


Is it possible to use a border on cover artwork?

I guess it is possible.

I have another question…
when button is pressed it shows the lighter square. Can that be inhibited?

Hi everyone!

First of all many thanks for the card, it looks awesome on my dashboard.

I am using the card together with my Sonos devices. The issue I have is that when I stop (not pause, but stop) the card is not cleared and the current song stays visible. This is most probably because the queue in the Sonos device remains full.

Is there a way to make the stop-button also clear the queue? Would love to clear the card when it is not in use to make it more visible which speakers are playing.

Here my card, mix spotify-card + mini-media-player

Looks nice, mind sharing the code please?