kalkih / mini-media-player

Minimalistic media card for Home Assistant Lovelace UI
MIT License
1.47k stars 206 forks source link

Highlight currently active shortcut in list dropdown instead of shortcut label #835

Open appel opened 4 months ago

appel commented 4 months ago

Forgive me if this has been asked and answered before. I searched but could not find it. I'm currently using shortcuts in list form. I assumed when selecting a shortcut from the list dropdown that the shortcut name would be listed instead of the label, similar to how an HTML select works, but it appears that's not the case. Is there any way I can make this happen? And if not, might this be a good (optional) feature?

Currently, with SomaFM - Folk Forward playing:

image

What I expected:

image

I realize that the info is duplicated in my mockup, so perhaps it should be optional.

My config:

type: custom:mini-media-player
entity: media_player.downstairs
shortcuts:
  label: Pick a stream...
  list:
    - type: script
      name: SomaFM - Folk Forward
      id: script.media_somafm_folk_fwd
    - type: script
      name: SomaFM - Seven Inch Soul
      id: script.radio_somafm_seven_inch_soul

Thanks in advance!