Lovelace: Mini Media Player

Hi,
When I hide the volume the text next to the arrow select source disappears !

type: 'custom:mini-media-player'
entity: media_player.tele
hide:
  next: true
  play_pause: true
  play_stop: true
  prev: true
  volume: false

avec vol

type: 'custom:mini-media-player'
entity: media_player.tele
hide:
  next: true
  play_pause: true
  play_stop: true
  prev: true
  volume: true

sans volume

This is intended behaviour when hiding either controls or volume, since doing that would move the other one up to the top row usually resulting in limited space.

The solution is to hide both volume & controls (this is basically what you’re doing right now but you are hiding all controls individually), this will allow rendering of the source.

hide:
  volume: true
  controls: true

Hi
is it possible set by default speaker after hide speaker list?
I want to set spotify as source by default and a specific Alexas as default speaker.
I have been playing with options without sucess

I think a script would be the perfect fit for that use case. And perhaps adding a shortcut button directly in the mini-media-player card to quickly trigger it.

1 Like

Hello, Sorry for the late reply and really appreacite your help just got a new puppy so been preocupied. But Yes I am currently using my LG Web OS TV and only shows plex. I do have the plex intergration but dont think I could have both the tv and plex on the same card to show artwork unless I am wrong and there is like and IF rule that would show plex artwork when plex is corrected?

Congrats on the puppy :slightly_smiling_face:
Unfortunately no, at least not in an easy way that I’m aware of.
You could try to template the card option background with config-template-card or something, but that would be a bit advanced and probably not worth it in the end.

1 Like

No worries thank you for your help :smiley:

1 Like

When I have the left hand HA menu expanded the source list opens to the top left and is obscured by the header bar and the left hand menu.
If I collapse the left hand HA menu the source menu opens to the bottom right.
Is this a bug?


latest version of MiniMediaPlayer card and HA 111.1

I have been tinkering for a while and connected my Sonos to my HA setup (via the auto discovery mode). Now I got the mini media player card to work, but I only figured out how to play/pause and skip songs when the Sonos is playing a spotify playlist. I hope it’s not a stupid quesiton, but I can’t figure out how to play a spotify playlist via the mini media player app (by pressing a button). Can someone tell me if it’s possible and if so, how?

Thanks in advance!

Go in your Sonos app and put your playlist into your favorites. The favs show up as selection in mini media player.

1 Like

Thanks got that to work! Is there also a way to shuffle the playlist?

- service: media_player.shuffle_set 

Or use the shuffle button in the mini-media-player. Available for devices that support shuffle in the UI, such as the Sonos.

Hi

What happened here, all of a sudden (maybe after HA update?) my cards are missing the controls.

Screenshot 2020-06-16 at 09.40.34 Screenshot 2020-06-16 at 09.41.04

I did not see any errors in the log.

$ hass --version

0.111.3

I re-downloaded the .js-file today to have it fully updated & restarted HA. Cleared cache in browser (Brave on macOS) and relaunched. Same issue on mobile (Android).

Have you cleared your browser cache?

Hello!

I have a LMS installation which is integrated into Home Assistant. It is also possible to control the standard controls with Mini Media Player. Great!
Is is somehow possible to switch between different in LMS defined Radio stations from the Mini Media Player GUI?

Yes
 and I have the same issue on mobile as on desktop.

Just realised that the controls are actually there, just cannot see them.

Tried to Safari. The controls were there.

Turned off “Shield” in Brave, the controls are there again!

I have the same effect in the app on Android while it works on the app in iOS. Android = no visible controls. So something with the chrome engine on android. Though it seems to work fine on chrome on macOS and Windows.

It doesn’t work on Android for me even with “Shields down” on Brave. But would probably work in some other browser. If it could be fixed so that it works it would be appreciated!

I have something like this in my set up. It relies on saving your favourite radio stations as separate .m3u playlists in the LMS playlist folder, and giving them a recognisable name e.g.

Radio_BBC_Radio_3.m3u, Radio_Classic_FM.m3u

Then I created a script using the squeezebox.call_method service, and which takes the player name and the playlist name as template parameters:

squeeze_cmd_playlist_play:
  alias: 'LMS Command Play Playlist'
  sequence:
    - service: squeezebox.call_method
      data_template: 
        entity_id: 'media_player.{{ squeezebox_player }}'
        command: playlist
        parameters: ['play', '/server_path_to_your/playlist_folder/{{ playlist_name }}.m3u']

Now you can call this script from a shortcut button on Mini Media Player (I use an image on the button, and keep the name empty), e.g.:

      - type: custom:mini-media-player
        entity: media_player.bedroom
        shortcuts:
          buttons:
            - name: ''
              image: '/local/lovelace/remote/bbc_radio_3.png'
              type: script
              id: script.squeeze_cmd_playlist_play
              data:
                squeezebox_player: bedroom
                playlist_name: Radio_BBC_Radio_3

Hope this helps!

1 Like

Press the three dot icon in the Home Assistant header and press reload resources or try clearing cache manually.