SpotifyPlus Card Dashboard

Thanks for looking at this so quickly - confirm the volume controls now showing. Still no shuffle button in the media controls area though :frowning:
image

1 Like

@jaustin
An odd question, but is the shuffle button enabled in the Spotify Mobile (or Desktop) client when you are playing the same track?

Sometimes the shuffle and / or repeat icons are disabled in the Spotify Mobile client for me when I start a DJ playlist.

Can you confirm?

@jaustin
And the obvious … did you leave the shuffle configuration option disabled maybe?

@SeppelM83
You would need a separate Spotify account setup for her, either under a family plan or her own account. The SpotifyPlus Card controls access based on the Spotify user account.

It is enabled and functional
image
Tried playing playlists, artist or album to see if any different result and there isn’t.
The shuffle attribute on the spotifyplus media player toggles as I change on desktop client.
And to your other question, here’s the yaml for the card (ie, not hiding the shuffle button):-

  - type: custom:spotifyplus-card
    entity: media_player.spotifyplus_hass
    sections:
      - player
      - albumfavorites
      - artistfavorites
      - devices
      - playlistfavorites
      - recents
      - searchmedia
    width: fill
    playerHeaderArtistTrack: '{player.media_artist} - {player.media_title}'
    playerHeaderAlbum: '{player.media_album_name}'
1 Like

@jaustin
That’s an odd one!

The only other logic that could disable the shuffle feature would be what the Spotify Web API playback state reports, specifically the toggling_shuffle setting.

Can you access the Spotify Web API GetPlayback site? click on “Try It” icon while playing that same track, and see what the actions: "disallows": "toggling_shuffle" value is set at? Also check the value of the toggling_repeat_track value.

image

For a playlist:-

  "currently_playing_type": "track",
  "actions": {
    "disallows": {
      "skipping_prev": true,
      "toggling_repeat_track": true
    }
  },
  "smart_shuffle": false

For an album:-

  "currently_playing_type": "track",
  "actions": {
    "disallows": {
      "toggling_repeat_track": true
    }
  },
  "smart_shuffle": false
1 Like

I think I found the issue - coding bug on my part.

It appears that I have the toggling_repeat_track and toggling_shuffle actions parsing switched! Basically, the “disallows” operations for the repeat track and shuffle are reversed.

            self._TogglingRepeatTrack = root.get('toggling_repeat_track', None)
            self._TogglingShuffle = root.get('toggling_shuffle', None)

It’s hard to believe this condition hasn’t manifested itself sooner, as that code has not changed since it was put in (2024/01).

Let me get it corrected, and I will push out another release.

Thanks for your patience!

Thank you for your reply, Lucas. I have a separate account for her. I guess you misunderstood my point.


On the picture you can see an overview of some albums. I would like to have just one layer above it, for example an icon for Ninjago and when she clicks on the icon she sees all the albums you see here. Another icon for i.e. Lion King…

1 Like

@jaustin
Update SpotifyPlus integration to latest v1.0.74, and try again please.
Thanks!

Perfect! Thanks for sorting this so quickly.

1 Like

@SeppelM83
Ahhhh, I see.

Unfortunately, there is currently no way to do that.

However, I might be able to create a new user preset type that could open the playlist section and filter the list by specified criteria (e.g. "Folge "). So she would use the user preset section as a starting point, clicking on the “Ninjago Favorites” preset item; it would then open up the playlist favorites, and filter the list by “Folge” (or whatever criteria you specify).

The only limitation is that she has to name her Playlists with a common naming structure so that the filter works correctly. For example, playlist names:
“Folge 01 Playlist (Ninjago)”
“Folge 02 Playlist (Ninjago)”
“Folge 03 Playlist (Ninjago)”
“Folge 04 Playlist”
“Folge 05 Playlist (Ninjago)”

User preset item:
“Ninjago Favorites”, with filter criteria of “(Ninjago)”.

The above would yield “Folge 01-03 and 05” being presented in the Playlist section; Folge 04 would be omitted since it did not contain “(Ninjago)”.

Would something like that be acceptable?

Thanks a lot! I will try it. One more question: is it possible to disable the longpress function to get more details of i.e. a title or playlist?

@SeppelM83
Sorry, disabling long-press is not possible as it’s core functionality of the card.