SpotifyPlus Card Dashboard

@Faecon
default_device and device are not valid SpotifyPlus Card configuration options.

See deviceDefaultId documentation. Note that this card configg option only takes affect for the specific card it’s specified in.

deviceDefaultId: Oefenzaal

You can set the SpotifyPlus integration Default Player Device ID configuration option if you want to set a default player for ANY SpotifyPlus Card instance.

1 Like

Still struggling with the spotify player :frowning:

  - type: custom:spotifyplus-card
    entity: media_player.spotifyplus_oefenzaal
    deviceDefaultId: ruimte_7

image

@Faecon
The deviceDefaultId Value needs to be the name of your speaker or group, not the name of a media player entity.

You can remove the deviceDefaultId card configuration option since you have the integration default player device Id configured.

But when I remove it, it also does not work

afbeelding

This is also something that worries me… “is in device list”

The Is in Device List? false setting is expected, as Sonos devices do not appear in the Spotify Web API player device list (they are considered “restricted”).

You can also just switch to the Devices section, and click on the Oefenzaal raam + 2 entry to transfer playback to that device; you should then be able to click on play button.

Were you able to create the Sonos authorization token from the OAuth2 Token for TokenType=Authorization_Code Devices instructions (using the AuthTokenGenerator.py python script)? I know you were working on that previously. If so, did you add the generated token to the <config>/.storage/spotifyplus_tokens.json file location?

in the /homeassistant/.storage/ location ?

@Faecon
Correct - I just PM’ed you

Is there a way I can automate this ? I don’t want the device section to be seen, because I only want 1 device to be controlled…

@Faecon
Yes - just unselect the “Devices” entry in the SpotifyPlus Card configuration General \ Card Sections to Enable selection; that will hide the devices section.

At this point, I just want you to be able to select the device and make sure it starts playing; then you can hide the devices section once you have that working.


pressing on the play button, give me still the error

@Faecon

  1. Did you switch to the Devices section, and click on the Oefenzaal raam + 2 entry to transfer playback to that device? you should then be able to click on play button.

  2. What do you have specified in your SpotifyPlus integration configuration options for the Spotify Connect Device LoginId value? That value should match what you have specified in the /homeassistant/.storage/spotifyplus_tokens.json file for the SpotifyWebApiAuthCodePkce/65b708073fc0480ea92a077233ca87bd/[YOUR_LOGINID_VALUE] token key.

Hi Todd. Thanks a lot!!!
However I can’t get it working…


‘’’
userPresets:

@SeppelM83
What version of the SpotifyPlus Card do you have installed?

It has to be greater than v1.0.24 in order to support the filtersection userpreset type.

I would try upgrading the SpotifyPlus Integration and SpotifyPlus Card to the latest version, if you have not done so already.

Hi! Great card and control - TY! Can you help me find why I’m missing controls and anything other than what you see? I believe I have everything set to display and no hiding.

@Grendelkid
It appears you are using a Spotify Free account with the integration; player control requires a Spotify Premium account (Spotify rules, not mine). This include player deck controls (pause, resume, skip next / prev, shuffle, repeat, volume up / down / mute) as well as starting play of tracks / context. You basically have to control the player on a Spotify mobile / desktop / web player.

The only things you can do with a Free account with SpotifyPlus are manage your favorites, and search for / display Spotify catalog information.

Hi Todd. I’ve installed SpotifyPlus Version v1.0.89.
Where do I see the Spotify Plus Cards version???

What I want to configure is the following…

However I still get the same error message like posted before…
Any idea?
Thanks for the great support Todd!!

@SeppelM83
Are you upgrading both the SpotifyPlus Integration (v1.0.89 is latest), as well as the SpotifyPlus Card (v1.0.34 is latest)? They are 2 separate components. I’m thinking you may have the latest integration version, but not the latest card version.

The SpotifyPlus Card version is only displayed in the browser debugging tools screen (for Chrome browser, press F12). In the screen capture below, I have v1.0.35 installed, but it has not been released yet - current release is v1.0.34.
image

The following is what I tested, and works for me …

I added the following to my card configuration:

userPresets:
  - name: Section Filter
    subtitle: Ninjago Playlists
    image_url: >-
      https://t.scdn.co/media/original/genre-images-square-274x274_5e50d72b846a198fcd2ca9b3aef5f0c8_274x274.jpg
    filter_section: playlistfavorites
    filter_criteria: Ninjago
    type: filtersection

Which results in this being displayed for my “User Presets” section:

I then click on the “Section Filter, Ninjago Playlists” userpreset, which then displays the “Playlist Favorites” section and filters the list to “Ninjago” entries.

You are the best! It works now!! Great work!!!
One last question. Is there an easy way to get i.e. a spotify Ninjago Image as cover in the preset view?

1 Like

@SeppelM83
You can save a custom image to your Home Assistant www folder and reference it in the userPreset image_url: attribute using the /local/ ... prefix. Note that HA replaces the local/ with www/ when searching for the image (it’s an HA thing; weird, but it works).

example - assumes you have the image stored in <config>/www/images/spotifyplus/my_custom_image.jpg

userPresets:
  - name: Section Filter
    subtitle: Ninjago Playlists
    image_url: /local/images/spotifyplus/my_custom_image.jpg
    filter_section: playlistfavorites
    filter_criteria: Ninjago
    type: filtersection

Hi Todd. This method is perfect for me.

Basically everything works now! What I tried is to filter for the album name. That would be the easiest way for filtering because it already exists in Spotify in the most cases. Here one example:


If I chose the preset “Garde der Löwen” it would be cool if all playlists with this album name are shown. As I understand, currently only the song name ist relavant for your preset type, isn’t it?

1 Like