I created yet another media player card

I have the update, this is much better. Thanks again.

1 Like

It is! It’ll show up automatically shortly or you can force it by going to HACS and choosing “update information”

v20.0.0 works fine, especially since I have updated AMP (Alexa Media Player) to 5.7.3 :grin:

Would this be possible to have a property to specify a url to an artwork when none is received from a script? (instead of having a blank area in the player)
Thanks !

Example:

actions:
  - name: Patate Douce
    icon: mdi:radio
    service: script.media_play_patate_douce_radiobrowser_yamp
    script_variable: true
    artwork: https://cdn.prod.website-files.com/5e57c92306e4fe1dcb7344ef/5f88146fa06b496fccb99f02_LaPatateDouceLogo.png

I might have an alternative solution for you. Can you send me your alexa entity state attributes when this station is playing from dev tools?

I’m wondering if you could use card-mod or config-template-card to hijack the artwork with a helper sensor that’s populated from your script?

ps i’ve seen someone use config template card to make a visual toggle on their action row that shows when a device was on or off. super cool

Inspecting media_player.office on https://homeassistant.local:8123/developer-tools/state

(asking my Office Echo Dot 4) “Alexa, play radio paradise on TuneIn”

State becomes playing with attributes:

source_list: Local Speaker, MP21XDMT, Pixel 4a (5G), Pixel 4a (5G), Pixel 7a, Nokia 7 plus Jerome, Pixel 8a
volume_level: 0.1
is_volume_muted: false
media_content_type: music
media_duration: 0
media_position: 1
media_position_updated_at: 2025-07-06T17:01:52.981353+00:00
media_title: Glass Beams - Mahal
media_artist: Radio Paradise
source: Local Speaker
repeat: off
entity_picture_local: /api/media_player_proxy/media_player.office?token=7a978283c6f2c6eb148d122d81912ec63ef364dae513f67f75be152108e6b293&cache=5f33fdfdbb0689f9
available: true
last_called: true
last_called_timestamp: 1751821391353
last_called_summary: unmute
connected_bluetooth: null
bluetooth_list: MP21XDMT, Pixel 4a (5G), Pixel 4a (5G), Pixel 7a, Nokia 7 plus Jerome, Pixel 8a
history_records: 
previous_volume: null
entity_picture: https://cdn-profiles.tunein.com/s13606/images/logog.png?t=638137934600000000
friendly_name: Office
supported_features: 23437
media_album_name: Dj-mixed modern & classic rock, electronic, world music, and more. An eclectic musical adventure.

We see there’s an entity_picture that represents the logo of the station. Interesting!

(asking my Office Echo Dot 4) “Alexa, joue la Patate Douce” => it actually triggers a routine on Alexa which launches the actual command “Alexa, tell radio browser number 20” (based on the Radio Browser skill)
In this case, State becomes paused and the attributes do NOT change because Home Assistant is NOT aware of what’s actually going on :neutral_face:

The same behavior happens if I launch the Patate Douce radio from YAMP with my
service: script.media_play_patate_douce_radiobrowser_yamp
metioned earlier in this thread.
The fact that I go through Radio Browser instead of a direct call to TuneIn seems to lose HA with the state/attributes of the media_player (including no updated entity_picture) :confused:
So it doesn’t seem to be an option to retrieve the artwork in this specific case of mine.

so here’s my proposal (which is kinda janky but there’s not much to go off of). In your script call from YAMP, include a boolean helper that says when the station is on. then use card-mod to update the background of the card to your radio station image url while the boolean is true. just might work, sort of…

something like

card_mod:
  style: |
    {% if is_state('input_boolean.patate', 'on') %}
    .card-lower-content.collapsed.transitioning {
      background-image: url('https://cdn.prod.website-files.com/5e57c92306e4fe1dcb7344ef/5f88146fa06b496fccb99f02_LaPatateDouceLogo.png') !important;
      background-size: contain !important;
      background-position: center !important;
      background-repeat: no-repeat !important;
      background-color: black !important;
    }
    {% endif %}

It almost worked although I have to find a way to set the boolean helper back to off once I select a different radio from La Patate Douce otherwise I end up with its logo overlapping the next radio’s logo :stuck_out_tongue:
Unless I create a script for every station to be able to reset the helper which is doable but a bit convulated…

What if you add a wait for trigger in your script for when yamp_entiy starts playing (because it doesn’t report playing right?) then when it starts playing (meaning a station that does report artwork) then turn off helper

or even state attribute on the image being populated