Lovelace: Mini Media Player

What integration is that media player? What are its attributes when playing?

Thank you nick,

its a up2stream pro.
Where/how to get the attributes?

thats the integration GitHub - nagyrobi/home-assistant-custom-components-linkplay: LinkPlay based media devices integration for Home Assistant. Supports multiroom, Media Browser, and snapshot and restore functionality for TTS. Compatible with Mini Media Player card.

Yes but which integration does it use? One of these Integrations - Home Assistant (or maybe a custom integration)

To get it’s attributes go to your dev tools and click on states, or in fact click here Open your Home Assistant instance and show your state developer tools.

Use the filter to get your media_player.soundstation_livingroom and the attributes will be in the right hand panel like this

Hi,

so the integration is linkplay based media devices (see my last post). I had to put :smiley:

media_player:
    - platform: linkplay
      host: 192.168.x.x
      name: Soundstation Livingroom
      icecast_metadata: 'StationNameSongTitle'
      multiroom_wifidirect: False
      sources: 
        {
          'optical': 'TV sound', 
          'bluetooth': 'Bluetooth',
          'udisk': 'USB stick',
          'http://94.199.183.186:8000/jazzy-soul.mp3': 'Jazzy Soul',
        }

in my configuration.yaml.

here are the attributes (idle):

and here with Internet radio playing :

thank you for your help

That integration doesn’t seem to provide an entity_picture attribute.

Do you see an image in the standard media control card? Media Control Card - Home Assistant

nope … i have the player also as HA-DLNA player but there is also no image aswell no entity_picture entry

i found something related to the picture entity and the linkplay integration : Pass by url the entity_picture attribute of a media player

i can´t figure it out how that could help … i guess thats when you want the urlk of the actual playing song.

also there is this picture showing linkplay and mini-media-player :

and i got a picture when playing music from spotify (hint from the linkplay thread)

got you the attribute whjen playing spotify:

source_list:
  - TV sound
  - Bluetooth
  - USB stick
  - Jazzy Soul
sound_mode_list:
  - Classic
  - Jazz
  - Normal
  - Pop
  - Vocal
group_members: null
volume_level: 0.53
is_volume_muted: false
media_content_type: music
sound_mode: Normal
shuffle: true
repeat: 'off'
master: false
uuid: FF31F09E1991EAB2E2A28D85
tts_active: false
snapshot_active: false
snapshot_spotify: false
debug_info: ' _playing_spotify'
firmware: 4.6.415145.35
device_class: speaker
icon: mdi:cast-audio
friendly_name: Soundstation Livingroom
supported_features: 1039935
media_duration: 138
media_position: 112
media_position_updated_at: '2023-10-10T15:04:45.482353+00:00'
source: Spotify
media_title: Canggu Laundry Club
media_artist: Iron Curtis
media_album_name: Moon II
stream_uri: spotify:album:3xRV4gGRWtSkRpHJqvo6vL
track_current: spotify:track:30HBmHsnDmhOMAddMCMbPo
entity_picture: >-
  /api/media_player_proxy/media_player.soundstation_livingroom?token=ca8cd7145c49802c05c5c22655916e5197201d6d77b97d3fba52a1b4fcf1a128&cache=bfff6f2fe09f6f16

anyway thank you for the 5* support :slight_smile:

Hello,
I’ve had a problem for a long time when I click for a playlist, the playlist launches and beeps on the google home player, then the Mini Media Player pauses.
Any solution?
Animation

Sorry I missed your last post, I don’t get any picture on ibiza global radio when I play it on lms.

me neither … i believe i do not understand the mechanics

Just for the understanding …

only spotify and LastFM have pictures?

Does anyone has pictures when playing a mp3 from local or a mounted folder?

Is there a support for ID3 Tags?

and which instance is “responsible” for the picture entity? file/radio or the player or mini-media.player?

thx :slight_smile:

I think in the case of a radio stream, you won’t get a picture unless there is one embedded in the stream. But some integrations may have a static pic for a radio station, eg the logo.

In an mp3 file, again it depends I think on whether the device itself decodes an embedded pic, and then passes it on to home assistant.

2 Likes

Can you give an example?

There’s an example in the universal media player docs.

I know, but something isn’t working for me
What is wrong with this configuration?

media_player:
  platform: universal
  name: Test Universal
  children:
    - media_player.volumio
  commands:
    turn_on:
      service: media_player.turn_on
      target:
        entity_id: switch.0xa4c138db8ae96f3f
    turn_off:
      service: media_player.turn_off
      target:
        entity_id: switch.0xa4c138db8ae96f3f

  attributes:
    state: switch.0xa4c138db8ae96f3f

Should be this I think

    turn_on:
      service: switch.turn_on
      target:
        entity_id: switch.0xa4c138db8ae96f3f
    

Same for turn off.

2 Likes

Unfortunately, I keep getting the message

The media_player/turn_off service failed to invoke. Entity media_player.volumio does not support this service.

Where do you see this?

When I press the power button on the player

You are still using the volumio media player. You need to use the one created by the universal media player.

It’s getting better :slight_smile: But only the first switch after restarting the settings works

Don’t know if this question is asked before in this topic so sorry if it is.

Is it possible to create 2 dropdown lists in the mini media player? So 1 list for spotify playlists and 1 list for radio stations.

Thanks!

1 Like