Hi Todd, is there a way to make the playeroffbackground theme dependent? Theme 1 background A, theme 2 background B!
Best regards
Stefan
Hi Todd, is there a way to make the playeroffbackground theme dependent? Theme 1 background A, theme 2 background B!
Best regards
Stefan
Currently no, there is not; but I might be able to make that happen.
Are you just wanting to set the Player section background image to use when the player is powered off via a theme file (instead of configuration option)?
If so, I think I can make that happen.
Yes, exactly, instead of the configuration option. That would be great!! thank you
@Richi
FYI - just released a new version of the SpotifyPlus Card.
Updated Theming wiki doc with new variable names.
[ 1.0.55 ] - 2025/05/20
spc-player-background-image-off; Background image to use for the player section when the player state is off; default value is none.spc-player-background-image-idle; Background image to use for the player section when the player state is idle; default value is none.spc-player-background-image; Background image to use for the player section when the player state is playing; default value is to use currently playing content cover art.min-height value, which allows you to resize the card to any minimum height you wish.@thlucas Hope you would be willing to help by fixing a few of the buttons with the corrected YAML to show me what they should really be so I can fix the rest.
Iâve made a few attempts to get these buttons working and mostly failing.These buttons will make it a lot easier for family and guests to use it the controls since they are larger with descriptions.
thank you!
@Ltek
Not sure what you are trying to do with this âŚ
Is the idea to click on a button, call a SpotifyPlus integration service, and have something display in the SpotifyPlus Card? If so, that is not the way the SpotifyPlus integration services work. They are built more for automations and scripts to control the player and return results in a non-interactive way.
You can obviously define front-end UI buttons that call these services to do SOME things, but nothing that is interactive. You would need to write your own card / dashboard for something similar to what the SpotifyPlus Card does. You might have a look at the Queue Info List Dashboard example for some ideas on how to call a SpotifyPlus service that returns data, then builds a dashboard dynamically.
The only buttons that will work on your interface âas-isâ are the âFavorites - Add / Removeâ buttons, and those will only work if the appropriate content is currently playing on the Spotify player. For example, you cannot add / remove a track if the currently playing content is a podcast show or audiobook chapter (e.g. it does not contain âtrackâ information). Some of the other buttons can be made to work, but would contain static content; for example, the âPlay Contextâ button would always play the same playlist / album / artist.
Another possibility is to use the SpotifyPlus Card Theme Options to make things in the display bigger (buttons, text, etc).
For example:
type: custom:spotifyplus-card
sections:
- player
- devices
- playlistfavorites
- albumfavorites
- artistfavorites
- recents
- searchmedia
- trackfavorites
entity: media_player.spotifyplus_todd_l
width: fill
height: fill
playerHeaderTitle: "{player.source} (Spotify {player.sp_user_product})"
playerHeaderArtistTrack: "{player.media_artist} - {player.media_title}"
playerHeaderAlbum: "{player.media_album_name} {player.sp_playlist_name_title}"
playerHeaderNoMediaPlayingText: "\"{player.name}\" - No Media playing ({player.state})"
footerIconSize: 4rem
deviceBrowserItemsPerRow: 6
deviceBrowserItemsShowHiddenDevices: false
deviceBrowserItemsHideSubTitle: true
mediaBrowserItemsTitleFontSize: 2rem
mediaBrowserItemsSubTitleFontSize: 1.3rem
playerControlsIconSize: 4rem
playerHeaderTitle1FontSize: 1.8rem
playerHeaderTitle2FontSize: 2rem
playerHeaderTitle3FontSize: 2rem
playerMinimizeOnIdle: false
Yeah, that was the idea since the stock card buttons are too small, do not have descriptions, and missing many of the functions.
I changed the size using the theme setting, so that helps but having controls be a separate card would be more ideal for a control panel (like my screenshot has). This way we could position it where we need to, and manipulate it like we do any other card, using mod-card, CSS, etc.
Please consider making a âcontrol panelâ integration. Things like the
SpotifyPlus Queue Info Update Template Sensor could be built-in as to ensure functionality. Playlists and control buttons could be dynamic. You have a ton of functionality and the documentation is deep and overwhelming, even to a techie like me. It is a ton on manual config and unless you are an expert, hard to understand what some of the required items like Spotify Connect device id (is this the canonical ID?).
Also would help to avoid âhidden codeâ like template sensors (I wish HA would change template sensors, they are not a good design being hidden/buried in a file)
thx
@Ltek
You could create multiple instances of the card, and enable only 1 section in each of them. You could then use the width and height options to control the size of each card to your taste.
Hi,
I setup everything and have a question with the user preset daily mix album picture. Sometime the spotify change the album picture, but on the card is stay the old picture. Is it possible to set up when change on spotify daily mix album picture change on the card too?
@spider7611
I have that issue myself, and setup a SpotifyPlus Playlist Get Cover Image blueprint to refresh the Daily Mix 1 cover image every morning. Just use the Import Blueprint button in the link above to import the blueprint into your HA environment.
It refreshes only one playlist image at a time, so you would need to duplicate this if you want to refresh the other âDaily Mix xâ images; just update the input arguments accordingly.
alias: SpotifyPlus Playlist Get Cover Image - Daily Mix 01
description: Updates Daily Mix 01 playlist image every morning.
use_blueprint:
path: thlucas1/spotifyplus_playlist_get_cover_image.yaml
input:
media_player: media_player.spotifyplus_todd_l
playlist_id: 37i9dQZF1E39vTG3GurFPW
output_path: /config/www/spotifyplus/userpreset_images/daily_mix_01.jpg
Wow. This is working good. Thank You!!
Hello,
First of all, thank you very much for this excellent work.
I previously had a Spotify card project that was even published in the Home Assistant newsletter. That card was entirely created using Mushroom and Card Mod, and I had released version 3 as its latest update. I hadnât refreshed it in a long time.
In the old card, the playlist name I was using wasnât fully visible and I couldnât get efficient use out of it. After the recent changes on the Spotcast side, the card had also become completely non-functional. Thatâs why I decided to update it, and while browsing the internet I came across your work. Youâve truly done an amazing job. Honestly, Iâm so happy now that I no longer need Spotcast. On top of that, Iâll be using your media player in my card. Iâve even done a few small test runs, which you can see in the screenshots.
With this new Spotify card Iâve built, it has now become possible to use Spotify fully functional without even needing to open the original Spotify app. And all of this is thanks to you. Iâm also planning to feature this on my YouTube channel soon.
However, Iâve run into a couple of small problems, which I wanted to ask you about:
Thanks again for everything.
@berkans
Thank you for the kind words; Iâm glad to hear you are enjoying the card.
To answer your questions âŚ
Use the SpotifyPlus Integration Always On configuration option to put the integration into âturned onâ state automatically. Just check out the wiki docs link above for the performance impact (minimal) this can have on your HA instance due to continuous polling in always on condition.
I donât think I can change the press and hold behavior in the SpotifyPlus Card, as it uses special logic to detect the hold condition. I tried to stay true to other HA controls that utilize the press and hold functionality.
In the SpotifyPlus Card, the button icon before the song title is actually a âAdd item to play queueâ function for various context (e.g. Album Tracks, Playlist Tracks / Episodes, Show Episodes, Audio Chapters, etc) items. It is not meant to play the item immediately, but it will play it as the next track if there are no other tracks in the play queue.
Hope it helps!
Thank you for your quick response. Regarding questions 3 and 1, I later realized the same thing myself; I must have read the documents a bit too quickly. My card will be ready within a week, and once I publish it on my YouTube channel I will also let you know. In another video I am also planning to go through the detailed installation and introduction of the Spotify Plus and the Plus Card. Once again, thank you very much for this great work. Because of your effort I can now use my Alexa media players much more efficiently. I wish you a great day.
@berkans
Yes, please let me know when you publish your YouTube video - would love to check it out. Thanks!
That looks great. Canât wait for the vid!
Thanks for all your hardwork, this is truly an amazing card and integration. I have quick question.
Can you change/add the icon menus when in idle mode? It only shows play and speakers.
Thanks!
@sasshas
Can you send a screen capture of what you see so I can diagnose?
It sounds like you might be using the playerMinimizeOnIdle configuration option, which minimizes the player card height when player state goes to idle (or off) AND card height is not set to fill.
If that is the case, then there will only be 2 transport icons displayed (power, resume). Like so:
Versus regular mode when the player is idle:
And yep that would be it! Weirdly I donât get a power button (but I have âalways onâ enabled), I do get the speaker icon next to the play button which is actually good because I can pull up the menu from there.
I was having control issues last night but this morning seems fine. Everything is working perfectly, seems like itâs all user error ![]()
@sasshas
Ya, I forgot to mention the âAlways Onâ scenario will hide the power button and add the speaker icon. You have to have the ability to transfer playback (e.g. the speaker button) if power is always on.
Glad to hear itâs sorted out.