Hey, sorry, I meant to reply to this sooner but it was a bit of a crazy weekend (Philadelphian here). But dude you are a rock star. Works exactly like I envisioned. I set up a dashboard using using a stripped down version of your spotifyplus card that just has the player, devices tab, and search tab. I put that in a vertical stack with a modified version of your Queue Info List Dashboard which uses a horizontal stack rather than a grid and capped the results of the auto entities at 5. Still have some tweaking to do but functionality-wise this is exactly what I’ve been looking for. Thank you so much!
GO BIRDS
@Faecon
You cannot use “if x then show y” logic.
You can use any of the Title Formatter Options though.
even when I connect with a spotify connect device, I get this error when I click a playlist
Could not pause it too…
Could it be that the problem is that it is a grouped audio device ?
it was a question for the sonos card
I use them both… 1 for spotify and one for radio
how do I use these theme variables ?
@Faecon
Check out the Theming wiki for more information on how to apply themes.
To answer your immediate question, you can add the following to your card configuration to change the Color of the player media control icons when they are toggled
:
playerControlsIconToggleColor: red
or change it to an html color code value:
playerControlsIconToggleColor: "#ff5733"
or change it to an RGB color code value:
playerControlsIconToggleColor: rgb(255, 87, 51)
Hey! I’d really like to use this but I can’t figure out how to get my chromecast devices working:
I setup spotifyplus_tokens.json
like you had mentioned
But i still get the error:
Failed to perform the action media_player/select_source. Validation error: Spotify Cast Application could not be activated on Chromecast device "Kitchen Desk": Cookie credentials storage key not found: "SpotifyWebPlayerCookieCredentials/Shared/<username>"
Is there something I’m missing?
@Deep865
Make sure the <username>
portion of the token key (e.g. SpotifyWebPlayerCookieCredentials/Shared/<username>
) matches the value you specified in the Spotify Connect Device LoginId configuration option setting.
The LoginId value can easily be found using the Spotify Developer Web portal, using the Get Current Users profile service. Click on the Try It
button, then find the id
response value.
If the <username>
is correct, then ensure that the spotifyplus_tokens.json
file is located in the <config>/.storage
directory.
@thlucas
Oh man, so much time spent last night to realize just now that I fat fingered the loginID and accidently put a comma at the end. Fixed that and eveything is working, thank you so much!
@Faecon
The UPNP errors are a Sonos-specific issue, and can vary on what causes them.
Have you configured the SpotifyPlus Integration Spotify Web Player Authentication Setup steps? Note that this is different than the OAuth2 token setup (required for Sonos device activation).
The Spotify Web Player Authentication Setup allows better control of the player for Sonos devices.
I did … But can I see somewhere if i did it works ?
@Faecon
If you select a Sonos source in the media player, it should transfer control to Sonos via Spotify Connect. Check the Sonos App to see if the local queue is in use or not. If it’s NOT in use (e.g. is says Queue (not in use)
) then you have the Spotify Web Player Authentication Setup correctly.
Is it possible for the card to expand/shrink depending on the content? For instance when nothing is playing it’s unnecessary to have that huge Spotify icon. I know I can hide the entire card with conditions to display only when a song is playing, but then I can’t initiate a song.
@Quacked
Check out the playerOffBackground confirguration option. It allows you to set a custom image to display when the player is powered off. The image can be anything you want, even a blank screen.
There is currently no way to resize the card based on playing status.
Thanks. But that doesn’t work when player is configured to always be on? My player state is idle. The playerBackground setting is the one that works when Idle it seems. But is there no way to have it resize depending on content either? If there’s no background/tiny background image to shrink the height?
@Quacked
Ahhhh, I see. As you pointed out, the playerOffBackground
was designed for when the player is in the “turned off” state.
Let me see what I can do.
Just released v1.0.42, which adds a new playerMinimizeOnIdle
configuration option to minimize the player section when the player state is off
| idle
| unknown
.
Make sure you also update the SpotifyPlus Integration as well.
Give it a try, and let me know how it goes.
Thanks
[ 1.0.42 ] - 2025/03/13
- Added
playerMinimizeOnIdle
config option to minimize player card height when player state goes to idle (or off) AND height is not set tofill
. - Added verification of the
entity
configuration value, to ensure it is a SpotifyPlus media player.