Lovelace: Mini Media Player

If you’ve lost the text-input field (due to ‘paper-input’ having been deprecated), until there is an update released (has the project been abandoned?..it looks like some time since there were last any updates) you can faily simply make the necessary changes yourself to the mini-media-player-bundle.js in ‘config\www\community\mini-media-player’ (and compress this with gzip compression format to create a new mini-media-player-bundle.js.gz, replacing the old one):

Open mini-media-player-bundle.js and change every entry of ‘paper-input’ with ‘ha-textfield’

Once you’ve made and saved the changes, you will need to reload your frontend cache:

This is simple in a browser, just follow your usual broswer cache reset procedure.

For the iOS app, it’s a bit different: Side bar → Settings → Companion App → Debugging → Reset frontend cache (you may need to do a ‘swipe-down’ to reload the page from the Home Aisstant lovelac screen).

In android, again a bit different: go to your android OS settings (the system settings, not in the HA app) → Apps storage → Home Assistant → Clear Cache.

Hope this helps anyone with similar issues!

4 Likes

Thank you very much for this solution!! It worked!!

Do you think there is a possibility for me to implement the script from my previous post, into the media player, so that i can type the message in the txt field, and when click on the Send button, that it loads a script that i created and where the txt in the txt field is used in my script to send to the mediaplayer?

Anyhow, very very much appreciated that you came up with a solution for the missing txt field!!

Thx!!

@frenck
@balloob

Sorry to ping you out of the blue like this.

I don’t know if you’re aware of this add-on, but it represents a huge upgrade from the stock HA Media card.

The developer seems to be away from the project, so maybe there’s a chance to either bring him into the fold and make this a native HA card, or come to some kind of agreement to use his work as a base for a new media card?

I edited the .js file. Why is recompressing necessary? This did not work even after re-compressing.

UPDATE:
After following the above steps 3 times from start to finish it finally worked. Not sure why it took so much hoop-jumping. Thanks for the band-aid info. Hopefully someone picks this up to maintain and fixes it permanently.

Just a head’s up to everyone.

@kalkih, the developer for this add-on, has put up an issue in the github repo asking for maintainers to help in the future.

I personally don’t have the know how to do much more than testing and providing feedback going forward, so I’m posting here to spread the word.

This is what it looks like vs the native, the progress indicator is not shown but track length and remaining is there.

Link 🚨 Looking for maintainer(s)! · Issue #789 · kalkih/mini-media-player · GitHub

1 Like

It is related to this issue, am I right? Then it should be resolved soon… :crossed_fingers:

In my player the paper slider pin only works in expanded view. Previously it also worked in collapsed view. Where to look for the cause?

When was “previously”? Did you you change (add/upgrade) anything?

It doesn’t even work in the new basic tab

type: custom:mini-media-player
entity: media_player.universal

Here is the current configuration of my player

type: custom:mini-media-player
entity: media_player.universal
group: false
icon: mdi:radio
volume_stateless: false
toggle_power: false
hide:
  name: true
  source: true
  power_state: false
shortcuts:
  columns: 4
  buttons:
    - image: /local/images/RMF.png
      type: source
      id: RMF
    - image: /local/images/eska.png
      type: source
      id: ESKA
    - image: /local/images/1fm.png
      type: source
      id: 1.Fm
    - image: /local/images/supernova.png
      type: source
      id: supernova

Be more specific. What does that statement mean? Doesn’t it render? Can’t you control it?

Why aren’t you answering these questions?

Paper slider pin only works in expanded view.
mini3

Recently I only added the turn on/turn off commands in the universal player in configuration.yaml.

media_player:
  platform: universal
  name: universal
  children:
    - media_player.volumio
  commands:
    turn_on:
      service: switch.turn_on
      target:
        entity_id: switch.radio
    turn_off:
      service: switch.turn_off
      target:
        entity_id: switch.radio
  attributes:
    state: switch.radio

You can work with boolean_switches that are handed over to HomeKit.

Step 1: create a boolean_switch in HA for each radio station
Step 2: make the boolea_switch accessible via HomeKit
Step 3: create an Automation in HomeKit that plays the radio station on the HomePod, when the switch for the radio station is turned on
Step 4: create an Automation in HA that turns off the boolean after maybe 2 seconds after it was turned on

Then every time you activate the boolean switch in Home Assistant, the radio station gets played on your HomePod.

Hello,

first of all, its a really great project, I love it, but I cant get it to work with my echo devices.
Thats what it sais using it with youtube music player to play my playlists.
“To send tts set announce = true. Music can’t played this way.”
Do you have any ideas?

Thanks

Any ideas?

We have no idea what you are referring to. What is your yaml for setting up mini-media-player?

1 Like

Hello. How do I change the default tap action when I click on the artwork and the default pop-up menu comes up with the power button, volume etc.

  1. Look in the docs. GitHub - kalkih/mini-media-player: Minimalistic media card for Home Assistant Lovelace UI

  2. Search for tap

  3. Read

2 Likes

THank you for that. I have it working. Can I ask you(or anyone) one more?

I know how to hide controls, volume, etc, but is there a way to make them visible, ONLY when a song is playing?