Issues viewing images? Read this first.
Background
This issue solely affects local providers (eg, Plex, Filesystem, Jellyfin, etc.). If you are not using a local provider, please create a new issue.
For the action mass_queue.get_queue_items, this integration reaches out to Music Assistant and asks for the queue data. This is returned in a (much longer) version of the format below:
[
{
"queue_id": "d8:3a:dd:29:33:52",
"queue_item_id": "02fbc6f1173342538198b137c4a73b19",
"name": "Halsey - Nightmare",
"duration": 232,
"sort_index": 3,
...
"image": {
"type": "thumb",
"path": "https://resources.tidal.com/images/e522ef7e/0e06/450b/936a/74059a3f20b4/750x750.jpg",
"provider": "tidal",
"remotely_accessible": true
},
"index": 0,
"available": true
}
...
]
This integration will filter the data and select the image URL from the path above. However, for local hosts, this image path will often point either at a relative path on the drive (eg, artist/album/cover.png) or at a local path (eg, 192.168.1.2:1234/media/images/artist/album/cover.png).
This is problematic for a couple of reasons. Relative drive paths can almost never be accessed, even from the same machine. Local paths can't be accessed outside of your local network and, if you are using HTTPS to access Home Assistant, they can never be displayed.
However, Music Assistant allows for metadata providers. These, in theory, should fill in this missing data.
How to Help
Helping fill out this data is rather straightforward:
- Start a queue on one of your media players. Ensure it is not displaying any images.
- In Home Assistant, Navigate to the Developer Tools section and click on Template. Paste the below template, replacing
YOUR_MASS_PLAYERwith the Entity ID of the player:
{% set player = 'media_player.YOUR_MASS_PLAYER' %}
{{ state_attr(player, 'active_queue') }}
Copy the output. You'll need it for the next step.
- Navigate to the "Actions" tab and fill out the action form as below. Replace
YOUR_QUEUE_IDwith the output from Step 2 andYOUR_CONFIG_ENTRYwith the Music Assistant Queue Actions entry that you use.
- Action:
mass_queue.send_command - Command:
player_queues/items - Data:
queue_id: YOUR_QUEUE_ID
limit: 10
- Config Entry ID:
YOUR_CONFIG_ENTRY
-
Press "Perform Action". Copy the response output and save it to a text file.
-
Reply to this issue using the template below. Upload the saved file to your issue.
Home Assistant Version: <Get this information from Settings - About> Music Assistant Queue Actions Version: <Get this information from Settings - Devices & Services - Music Assistant Queue Actions> Music Assistant Version: <Get this information from Music Assistant Settings - Core> Music Providers: <Get this information from Music Assistant Settings - Music providers> Metadata Providers: <Get this information from Music Assistant Settings - Metadata providers> How often does this issue occur - every track, most tracks, some tracks, or only a few tracks? Any other issues, questions, comments, or notes?
You can also further help by testing v0.6.2 - this update checks the different image keys for each item and uses the first which returns a URL which Music Assistant deemed to be accessible. Please note that this will not fix every instance - only those where the various providers were able to pull web-accessible images.
Hope it helps.
Home Assistant Version: 2025.09.0 Music Assistant Queue Actions Version: Version 0.6.1 Music Assistant Version: 2.6.0 Music Providers: Filesystem (remote share) [music], Music Assistant, RadioBrowser, Tune-In Radio Metadata Providers: fanart.tv, LRCLIB, MusicBrainz, The Audio DB How often does this issue occur - it shows in the main player but it doest show in the queue . also in the new global search function (awesome by the way) , no images shown.
Home Assistant Version: 2025.10.0
Music Assistant Queue Actions Version: Version 0.6.1
Music Assistant Version: 2.6.0
Music Providers: Filesystem (localdisk)
Metadata Providers: fanart.tv (though i have 'cover.jpg' in the album level local folder containing each of the tracks)
How often does this issue occur - every track on the queue, most tracks on the player
Any other issues, questions, comments, or notes?
these tracks all display the cover.jpg local image when the track is searched or played in the naive music assistant GUI.
@igalg99 - Please test out v0.6.2 and let me know if you see images for at least some of your media.
@hrpaperstacks69 - Unfortunately, it doesn't look like any of your items have images present. You may want to enable more metadata providers.
Until Music Assistant changes their strategy and pulls metadata for all items (or at least those with no images or local only images), we won't be able to pull everything unfortunately.
Tried it. But it doesn't load after I upgrade to 0.6.2. here is the error log
Logger: homeassistant.setup Source: setup.py:343 First occurred: 23:32:30 (1 occurrence) Last logged: 23:32:30
Setup failed for custom integration 'mass_queue': Unable to import component: No module named 'custom_components.mass_queue.util'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 343, in _async_setup_component
component = await integration.async_get_component()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 1026, in async_get_component
self._component_future.result()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 1006, in async_get_component
comp = await self.hass.async_add_import_executor_job(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
self._get_component, True
^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 59, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/loader.py", line 1066, in _get_component
ComponentProtocol, importlib.import_module(self.pkg_path)
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/util/loop.py", line 201, in protected_loop_func
return func(*args, **kwargs)
File "/usr/local/lib/python3.13/importlib/init.py", line 88, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "
@igalg99 @hrpaperstacks69
Please try v0.7.0-b4+ with Music Assistant Player Card v1.1.0-b25+.
Home Assistant Version: 2025.11.0 Music Assistant Queue Actions Version: 0.7.0 Music Assistant Version: 2.6.1 Music Providers: Jellyfin Media Server Library Metadata Providers: Fanart.tv, LRCLIB, MusicBrainz, The Audio DB How often does this issue occur - every track, most tracks, some tracks, or only a few tracks? It happens for all tracks.
Home Assistant Version: 2025.12.5 Music Assistant Queue Actions Version: 0.10.0 (Downloaded v0.10.1-b.0) Music Assistant Version: 2.7.3 (Player card version v2.5.0-b.23) Music Providers: Filesystem (local disk), Music Assistant, RadioBrowser Metadata Providers: fanart.tv, LRCLIB, MusicBrainz, The Audio DB How often does this issue occur - every track, most tracks, some tracks, or only a few tracks?
- Image showing on player view, but album art not showing in Queue.
@Gurutasker have you enabled fallback support in the integration options? You can do so by going to the Music Assistant Queue Actions integration page in your HA settings and clicking the cog button.
@droans - Yes, that works but has too hard a performance hit which impacted streaming. Had thought this may contribute to finding ways to not use fallback. Appreciate the support.
Not sure I had this right before but I seem to be stuck with the same image regardless of whether I toggle fallback support or not. Images render correct for the now-playing item via the imageproxy in MASS but the queue seems to fail. It works in the dedicated MASS web player but not here:
I see the following style of content all the time:
image:
type: thumb
path: /library/metadata/268642/thumb/1728485298
provider: plex--KLtCEeU7
remotely_accessible: false
Checking or unchecking "Attempt fallback support" doesn't appear to change this behaviour.
Home Assistant Version: 2026.7.2 Music Assistant Queue Actions Version: 0.10.2 Music Assistant Version: 2.9.9 Music Providers: Filesystem (remote share), Music Assistant, YouTube Music Metadata Providers: Cover Art Archive, fanart.tv, iTunes Artwork, Last.fm, LRCLIB, MusicBrainz, The Audio DB, Wikipedia How often does this issue occur - any SMB based track
Any other issues, questions, comments, or notes?
HA Accessed using HTTPS with domain name (using NGINX Home Assistant SSL proxy with HSTS)
I am using mass-player-card as queue management only setup:
type: custom:mass-player-card
entities:
- media_player.speaker_ma
player:
enabled: false
media_browser:
enabled: false
players:
enabled: false
sync_player_across_dashboard: false
expressive: false
queue:
hide:
clear_queue_button: true
When using it with player - player itself sometimes show art (although it maybe art from library rather than queue), while queue still stuck in infinite reload of art.
SMB files are causing infinite reloads for https://<HA_DOMAIN>/room-music/cleft (room-music is dashboard name) that quickly starts to fail due to resource exhaustion.
Callstack 1:
Wc._renderThumbnailFallback @ mass-player-card.js?…=1043277514280:3864
handleEvent @ mass-player-card.js?…ag=1043277514280:50
Callstack 2:
fetch @ StrategyHandler.js:160
fetchAndCachePut @ StrategyHandler.js:204
_handle @ StaleWhileRevalidate.js:75
_getResponse @ Strategy.js:144
await in _getResponse
handleAll @ Strategy.js:135
handle @ Strategy.js:96
handleRequest @ Router.js:197
(anonymous) @ Router.js:56
Setting download_local stop reloads, but show placeholder instead of actual art (perhaps I need to change queue settings as well - I only tried to enable it to see if it will stop reloads).
Art itself available using proxy_id on http://<HA_IP>:8095/imageproxy/39dd509bb46a0285bfadc53ff4d3419dd8deefddab59ebb95aa769dda4d31e5a (using HTTP on HA IP + MA port here instead HTTPS on domain name)
Few thoughts:
- Perhaps adding some sort of circuit breaker / rate limiter for
_renderThumbnailFallbackcould help to stop rendering attempts if image can't be loaded (as example limit retries by N attempts). - Maybe
_renderThumbnailFallbackbuilds incorrect path toThumbnail.CLEFT- and so causing reloads since it can't be rendered as image (https://<HA_DOMAIN>/room-music/cleftopens dashboard itself - maybe some issues with relative path building?) - From quick look
track.media_imagein getTrackImage is empty, but didn't manage to find a place where it exactly should be built based onproxy_id(if that supported at all) - maybe incorrect host used (as example current host instead of music assistant exposed IP + port)
UPDATE on (3) - It looks like proxy_id not used for building media_image at all - return_image_or_none. Probably using get_image_url could fix that
Setting download_local stop reloads, but show placeholder instead of actual art (perhaps I need to change queue settings as well - I only tried to enable it to see if it will stop reloads).
Try using the card option proxy_all_artwork. If the card is accessing HA locally and the URL appears valid, the card may attempt to use it. download_local is mainly intended for situations where you're loading HA over HTTPS but all your media is local.
Perhaps adding some sort of circuit breaker / rate limiter for _renderThumbnailFallback could help to stop rendering attempts if image can't be loaded (as example limit retries by N attempts).
There is. If it exhausts all possible images or loads more than five times, it stops.
Looking at those traces, the card doesn't seem to be caused the card. It appears you have another frontend resource which is intercepting requests. strategy/strategyhandler/stalewhilerevalidate are not files included by the card or by Home Assistant. It seems they are intercepting the requests and constantly trying to load them even though the paths are not available.
Maybe _renderThumbnailFallback builds incorrect path to Thumbnail.CLEFT - and so causing reloads since it can't be rendered as image (https://<HA_DOMAIN>/room-music/cleft opens dashboard itself - maybe some issues with relative path building?)
It does not - if a thumbnail is passed to the function, it returns the thumbnail. It doesn't (and can't) rebuild it which is why you're seeing the thumbnail when it can't download the local images.
From quick look track.media_image in getTrackImage is empty, but didn't manage to find a place where it exactly should be built based on proxy_id (if that supported at all) - maybe incorrect host used (as example current host instead of music assistant exposed IP + port)
UPDATE on (3) - It looks like proxy_id not used for building media_image at all - return_image_or_none. Probably using get_image_url could fix that
Not sure what you're referring to. Neither proxy_id nor get_image_url are functions or variables in either the card or the integration. return_image_or_none is just used to test whether the image section of the media details contains an image or is empty.
Additionally, if you have the integration set to download local media, it will not return anything for media_image with local media. It will instead use local_image_encoded.
Edit: proxy_id comes from Music Assistant and isn't used by either the card or integration. Your attached response is from running music_assistant.get_queue but I think you were looking to use mass_queue.get_queue_items.
There is. If it exhausts all possible images or loads more than five times, it stops. Looking at those traces, the card doesn't seem to be caused the card. It appears you have another frontend resource which is intercepting requests. strategy/strategyhandler/stalewhilerevalidate are not files included by the card or by Home Assistant. It seems they are intercepting the requests and constantly trying to load them even though the paths are not available.
I think I have one idea - current fallback code still trying to update src even after errorCount > 5:
this._renderThumbnailFallback = () => {
this.errorCount++;
const e = this.thumbnailElement.src
, t = Ur(this.hass, e, this.defaultImageURL ?? "", this.fallbackImageURL, ir.CLEFT);
this.thumbnailElement.src = t,
t == e || this.errorCount >= 5 ? this.imagesExhausted = !0 : this.imagesExhausted && (this.thumbnailElement.onerror = null)
}
In my case it constantly tries to update https://<DOMAIN>/<DASHBOARD>/cleft to cleft - and perhaps that causing constant reloads here (see screenshot attached)
It does not - if a thumbnail is passed to the function, it returns the thumbnail. It doesn't (and can't) rebuild it which is why you're seeing the thumbnail when it can't download the local images.
That is how it looks like on dashboard - it constantly trying to add incorrect image and reload again.
https://github.com/user-attachments/assets/c62f7a0b-f68e-4cb8-9b52-6b0f74318658
Not sure what you're referring to. Neither proxy_id nor get_image_url are functions or variables in either the card or the integration.
What I thought about - can mass_queue use get_image_url API from music assistant client (that internally uses proxy_id to build URL) on music_assistant.get_queue result to build proxied URL and pass it as media_image in mass_queue.get_queue_items result? ( https://github.com/droans/mass_queue/issues/124 )
I also noticed that music_assistant.get_queue have proxied URLs already (first attached file was from mass_queue.send_command with player_queues/items):
mass_queue.get_queue_items
action: mass_queue.get_queue_items
data:
entity: media_player.*_room_speaker_ma
media_player.*_room_speaker_ma:
- queue_item_id: b9273b4148124a2bb4ad6c3718768f85
media_title: Hedwig's Theme
media_album_name: >-
Harry Potter and The Sorcerer's Stone (AKA Philosopher's Stone) Original
Motion Picture
media_artist: John Williams
media_content_id: library://track/64
media_image: ""
favorite: false
mass_queue.send_commandwithplayer_queues/items
action: mass_queue.send_command
data:
data:
queue_id: 9daf50d8-c623-46a2-145d-96eabd570b1f
limit: 10
command: player_queues/items
config_entry_id: 01KYCHQJ2F71VSZDZJ6KPBM8XW
response:
- queue_id: 9daf50d8-c623-46a2-145d-96eabd570b1f
queue_item_id: b9273b4148124a2bb4ad6c3718768f85
name: John Williams - Hedwig's Theme
duration: 309
sort_index: 1
streamdetails: null
media_item:
item_id: "64"
provider: library
name: Hedwig's Theme
version: ""
sort_name: hedwig's theme
uri: library://track/64
external_ids: []
is_playable: true
translation_key: null
media_type: track
provider_mappings:
- item_id: 19 - Hedwig's Theme.mp3
provider_domain: filesystem_smb
provider_instance: filesystem_smb--hWq5DJo5
available: true
in_library: true
is_unique: null
audio_format:
content_type: mp3
codec_type: "?"
sample_rate: 44100
bit_depth: 16
channels: 2
output_format_str: mp3
bit_rate: 258
url: null
details: "1769245837"
metadata:
description: "Amazon.com Song ID: 203539717"
description_language: null
review: null
explicit: null
images:
- type: thumb
path: 19 - Hedwig's Theme.mp3
provider: filesystem_smb--hWq5DJo5
remotely_accessible: false
proxy_id: 39dd509bb46a0285bfadc53ff4d3419dd8deefddab59ebb95aa769dda4d31e5a
- type: thumb
path: 19 - Hedwig's Theme.mp3
provider: filesystem_smb--hWq5DJo5
remotely_accessible: false
proxy_id: 39dd509bb46a0285bfadc53ff4d3419dd8deefddab59ebb95aa769dda4d31e5a
grouping: null
genres:
- Soundtracks
mood: null
style: null
copyright: © 2001 Warner Records Inc.
lyrics: null
lrc_lyrics: null
label: null
links: null
performers: null
preview: null
popularity: null
release_date: null
languages: null
chapters: null
last_refresh: null
favorite: false
position: null
date_added: "2026-01-24T09:10:37+00:00"
duration: 309
artists:
- item_id: "61"
provider: library
name: John Williams
version: ""
sort_name: john williams
uri: library://artist/61
external_ids: []
is_playable: true
translation_key: null
media_type: artist
available: true
image: null
year: null
last_played: 0
album:
item_id: "53"
provider: library
name: >-
Harry Potter and The Sorcerer's Stone (AKA Philosopher's Stone)
Original Motion Picture
version: ""
sort_name: >-
harry potter and the sorcerer's stone (aka philosopher's stone)
original motion picture
uri: library://album/53
external_ids: []
is_playable: true
translation_key: null
media_type: album
available: true
image:
type: thumb
path: 19 - Hedwig's Theme.mp3
provider: filesystem_smb--hWq5DJo5
remotely_accessible: false
proxy_id: 39dd509bb46a0285bfadc53ff4d3419dd8deefddab59ebb95aa769dda4d31e5a
year: 2001
disc_number: 1
track_number: 19
image:
type: thumb
path: 19 - Hedwig's Theme.mp3
provider: filesystem_smb--hWq5DJo5
remotely_accessible: false
proxy_id: 39dd509bb46a0285bfadc53ff4d3419dd8deefddab59ebb95aa769dda4d31e5a
index: 0
available: true
extra_attributes: {}
music_assistant.get_queue
action: music_assistant.get_queue
data: {}
target:
entity_id: media_player.*_room_speaker_ma
*_room_speaker_ma:
queue_id: 9daf50d8-c623-46a2-145d-96eabd570b1f
active: true
name: * room speaker
items: 1
shuffle_enabled: false
repeat_mode: all
current_index: 0
elapsed_time: 0
current_item:
queue_item_id: b9273b4148124a2bb4ad6c3718768f85
name: John Williams - Hedwig's Theme
duration: 309
media_item:
media_type: track
uri: library://track/64
name: Hedwig's Theme
version: ""
image: >-
https://<DOMAIN>/imageproxy/39dd509bb46a0285bfadc53ff4d3419dd8deefddab59ebb95aa769dda4d31e5a?size=0
favorite: false
explicit: null
artists:
- media_type: artist
uri: library://artist/61
name: John Williams
version: ""
image: null
album:
media_type: album
uri: library://album/53
name: >-
Harry Potter and The Sorcerer's Stone (AKA Philosopher's Stone)
Original Motion Picture
version: ""
image: >-
https://<DOMAIN>/imageproxy/39dd509bb46a0285bfadc53ff4d3419dd8deefddab59ebb95aa769dda4d31e5a?size=0
stream_title: null
next_item: ...
So in theory mass_queue should have enough data / API to build (or retrieve) proxied URL and expose if as media_image down the line
You're looking at the compiled code instead of the raw code which is making it difficult for you to read it.
_renderThumbnailFallback is the function that runs when the img element has an error. If it hits five attempts, it removes itself as a handler for errors.
What I thought about - can mass_queue use get_image_url API from music assistant client (that internally uses proxy_id to build URL) on music_assistant.get_queue result to build proxied URL and pass it as media_image in mass_queue.get_queue_items result? ( #124 )
No. It was tried in the past and does not work. There's no way to identify if the card/HA are on the same network as MA or if the URL is actually accessible.
If get_queue_items is returning nothing for the media image and isn't returning a field labeled local_image_encoded, that means you haven't enabled the option in the integration to download local media.
You're looking at the compiled code instead of the raw code which is making it difficult for you to read it. _renderThumbnailFallback is the function that runs when the img element has an error. If it hits five attempts, it removes itself as a handler for errors.
I debugged it a little bit and I think I found where exactly bug with both incorrect URL (cleft) and non-stopping retries. Created https://github.com/droans/mass-player-card/issues/762 and add details here on root causes + potential places to fix.
No. It was tried in the past and does not work. There's no way to identify if the card/HA are on the same network as MA or if the URL is actually accessible.
Yes, if MA on different network then this trick will not work.
But if MA on same network with user (or accessed via some way of remote access) - using proxy URL from MA could remove processing of images on mass_queue side + improve caching / responsiveness / etc (as images will not be send each time in get_queue_items and could be easily cached by browser on client side.
What I was thinking - adding new option (like use_ma_proxy) that will (when enabled) use MA get_image_url API on music_assistant.get_queue results instead of current processing logic (process_image_single_item -> find_image -> find_image_from_metadata -> return_image_or_none). get_image_url already check if item remotely accessible (in terms of track metadata, not real accesibility) and pass it as-is in this case. So only difference with current behaviour will be that non-remotely accessible items will be resolved to MA proxied URLs instead of empty results. (and so card will be able to correctly render them without download / proxy options enabled)
If get_queue_items is returning nothing for the media image and isn't returning a field labeled local_image_encoded, that means you haven't enabled the option in the integration to download local media.
Yes, it currently not enabled - hoped that it will work somehow without this option (with proxy URLs)
Doing so is completely unnecessary and overly complicates the code for zero benefit. If you enable the option in the integration to download local media, your issue would be resolved. I'm confused why you are unwilling to do so.
Using proxy URLs beneficial in terms of caching (since browser could easily cache images) and responsiveness (since mass_queue.get_queue_items doesn't need to pass base64 encoded images each time) - basically as long as you have direct access to MA all local images will work like remote ones from mass-player-card point of view (basically it is URL, but pointing to MA host instead of some external source).
This all leads to smaller traffic and so better work on mobile connection via Tailscale / etc.
Use case - using widget on dashboard from mobile connection. With download local media it will generate more traffic, while using proxy URLs completely fix this.
But I agree that probably this use case it too specific, so probably will try to find workaround on my side (either enable download local media / do some hacks to queue locally / reorganize dashboards)
Thank you for looking into this!