Ok, the installation text is a little confusing for a newbie.
I installed the the Integration with HACS and did the Installation instructions i mentioned in the precious text.
Error loading /config/configuration.yaml: while parsing a block mapping
in “/config/configuration.yaml”, line 23, column 9
expected , but found ‘’
in “/config/configuration.yaml”, line 37, column 10
Hi @fitsou,
Seems like you have a problem with how your YAML is formatted.
It could be one of the following:
Indentation Issues: YAML relies heavily on correct indentation. Make sure that you use spaces (not tabs) for indentation and that your indentation is consistent throughout the file.
Missing Colon: Each key-value pair should be separated by a colon. If you forget to include a colon after a key, you’ll encounter this error.
Incorrect Spacing: Ensure that there is proper spacing around colons and that key-value pairs are aligned correctly.
Incorrect Nesting: If you’re defining lists or dictionaries (nested structures), make sure they are indented properly and nested at the correct level.
Missing or Extra Characters
Please avoid posting code with “Blockquote” since it makes it impossible to see any formatting errors. Instead use the “Preformatted text”. You can post in-line or multi-line code using that.
I just installed your templated to solve a pretty tricky problem. it is working pretty good so far except…
the number one reason I am installing this is to create a “now playing” entity that will store media_artist, media_album and most important entity_picture. I have set the entity_picture value to:
Even when there is a value for “{{ states(‘input_text.music_current_album_art’) }}”, the entity_picture isn’t showing up… here is the output from my developer tools screen:
source_list: source 1, source 2
media_title: Under the Bridge
media_artist: Red Hot Chili Peppers
entity_picture_local: null
device_class: speaker
friendly_name: Now Playing
supported_features: 68992
media_position_updated_at: 2023-08-21T12:15:00.511097+00:00
If you mean by source, another media player’s entity, artist, etc… that is what I am trying to avoid. Instead of using a Universal Media player template, I am using this so I can put my own values in such as text variables. I am using multiple media players to create a now-playing media player. I am putting the artist, title, entity_picture I need to use in text helpers. The Artis, album, title is working. the one one not working is the entity_picture.
Taking another screenshot of what developer tools shows for the output of above:
source_list: source 1, source 2
device_class: speaker
friendly_name: Now Playing
supported_features: 68992
media_title: — Waiting For Next Selection —
media_artist: — You —
media_album_name: unknown
entity_picture_local: /api/media_player_proxy/media_player.now_playing?token=f97a2d51c9094baedfbad3425ec07513d30eb9f6f30a5de42355322762c8fd73&cache=24469974c13ad996
It appears to create an entity_picture_local field - possibly from my url that I supplied in entity_picture_template. This does work for
My need is to actually have the entity_picture entry in place. I am using a different user interface for my UI (sharptools.io). I have been liking the layout of this for my console better than Lovelace (without sever work). Sharptools takes a media player, and it it appears that it is using the entity_picture (not the local one for album art.
yes the media_player.template shows an entity_picture in the states but it’s media_image_url_template.
you can use custom:mini-media-player to make it appear like mine.
or use the media-control card.
thank you for all of your recommendations. Again, I am not trying to use Lovelace media player. I am using a different 3rd party tool for my dashboard (sharptools.io).
I found a work-around. It appears that I can write the value of the entity_picture into the now_playing media player later in an automation, using python, like this:
I don’t think your issue is specific to the media_player.template.
look at the following as an example. All four cards use the same media_player entity.
Thanks for replying.
There is some delay some times in showing the artwork from PlayStation. Ι cannot pinpoint when this delay is happening. but I can live with it.
Now I’m trying to have my Sony Bravia TV to show the artwork of the movie/series from the apps (Netflix, Disney, Plex, etc)