Lovelace: Mini Media Player

So does this mean I should remove your repo as a custom repo in the HACS settings now? (and for mini-graph-card a s well?)

Not yet, the PR hasn’t been merged yet, and after it’s merged we also have to wait for the next HACS release before it will show up in the store.

And yeah, the same goes for mini-graph-card :slightly_smiling_face:

1 Like

No need to remove anything, they will get “migrated” from custom to standard automagically after the update :wink:

2 Likes

Did that automagically happen to Custom-Compact-Header by any chance? I swear it did lol… Might be worth documenting that?

That is off topic here, but yes it did.
Like anything else the documentation is opensource :wink:

2 Likes

Thank you very much @kalkih !
The result is:

9 Likes

Sweet, looks awesome! :+1:

1 Like

Hey kalkih, i love your card and i hope that i read the notes correctly.
Is it now possible to call a service via shortcut?
I’m trying to play a radio station via tunein on my echo but i cant get it to work with the card.

cards:
  - cards: null
    entity: media_player.echo_bad
    hide:
      power_state: false
      source: true
    more_info: false
    shortcuts:
      hide_when_off: true
      list:
        - data:
            entity_id: media_player.echo_bad
            media_content_type: radio SAW
          id: media_player.play_media
          name: radio SAW
          type: source
        - data:
            entity_id: media_player.echo_bad
            media_content_type: S._W._R. 3
          id: media_player.play_media
          name: SWR3
          type: source
    type: 'custom:mini-media-player'
type: vertical-stack

Sorry for the bad formation. Its from the UI editor.

ok, nevermind i found the problem. it calls the service now correctly:

cards:
  - cards: null
    entity: media_player.echo_bad
    hide:
      power_state: false
      source: true
    more_info: false
    shortcuts:
      list:
        - data:
            entity_id: media_player.echo_bad
            media_content_id: radio SAW
            media_content_type: TUNEIN
          id: media_player.play_media
          name: radio SAW
          type: service
        - data:
            entity_id: media_player.echo_bad
            media_content_id: S._W._R. 3
            media_content_type: TUNEIN
          id: media_player.play_media
          name: SWR3
          type: service
        - data:
            entity_id: media_player.echo_bad
            media_content_id: R._P._R. 1
            media_content_type: TUNEIN
          id: media_player.play_media
          name: RPR1
          type: service
    type: 'custom:mini-media-player'
  - cards: null
    type: entities
    entities:
      - entity: input_select.echo_bad_radio
type: vertical-stack

But I found a new problem wihch seems to be Home Assistant related?
It isnt possible to set quotes around the values of media_content_id and media_content_type they get removed. It should be "S._W._R. 3"
This way Alexa cant understand the radio stations correctly.

Hey @0rn0lf,
The default shortcut “action” is play_media so you could actually write those shortcuts like this to save some time & lines.

- name: Radio
  type: TUNEIN
  id: radio SAW

Yeah, that’s a yaml thing, how it parse strings, but you could try escaping the quotes.

media_content_id: >
  "hello world"

or possibly (less likely)

media_content_id: "\u0022hello world\u0022"

EDIT: even simpler:

media_content_id: '"Hello world"'

thanks. this one seems to work now :slight_smile:

media_content_id: '"Hello world"'
1 Like

Great work @kalkih!

For the life of me, I can’t figure out how to theme the idle player though, what am I missing here (the Apple TV element)?
35%20PM

Thanks!
The card background is based on paper-card-background-color atm, will prioritize ha-card-background (if set) in the next version.
https://github.com/kalkih/mini-media-player/commit/24453ec978266a59ba1f4cbd714bf3b5cbe6eb3b

Im having issues grouping my monoprice 6 zone audio system with the mini media player. i think my issue is with the platform section. I can see all media players (all 6) in overlay, but get error "Failed to call service media_player/monoprice_JOIN. Unable to find service media_player/monoprice_join

entities:
  - artwork: full-cover
    entity: media_player.homecast
    group: true
    icon: 'mdi:google-home'
    scroll_info: true
    show_source: true
    show_tts: true
    tts: google
    type: 'custom:mini-media-player'
    info: scroll
    speaker_group:
      platform: monoprice
      show_group_count: true
      entities:
        - entity_id: media_player.living_room_audio
          name: Living Room Audio
        - entity_id: media_player.bbq_area_audio
          name: BBQ Audio
        - entity_id: media_player.kitchen_audio
          name: Kitchen Audio
        - entity_id: media_player.master_bedroom_audio
          name: Master Bedroom Audio
        - entity_id: media_player.study_audio
          name: Study Audio
        - entity_id: media_player.jacuzzi_audio
          name: Jacuzzi Audio
title: 'Casting Device:  Homecast'
show_header_toggle: false
type: entities

I do not think the Monoprice component supports grouping of speakers.

TTS for Alexa has been depreciated, Will you be able to add notify in it’s place?

@kalkih is it possible to integrate monopice 6 zone amplifier into your player like you did with sonos?

Sure, It’s been changed to use notify since v1.0.4.

I took a quick peek at the component and as @Dansker said, I don’t think it’s possible, sorry.

After update card to version 1.2.1 icons of media players are black. How to change icon color to --state-icon-color without changing any other colors? mini-media-player-base-color change icon color but also some text color.

Hey, could you provide me with a screenshot of the issue, what is the expected behaviour and what was the behaviour before the update?