Spotify Lovelace Card

@Daniel_B You must create playlists on that account for them to show up. If you have already, can you look at the playlist request and see if you get any results?

@carlostico You seem to have added the spotify card on the wrong card because the card takes the current URL as the redirect URL. Try with another browser or an incognito window.

Thanks @fondberg you were right wrong redirect …

Changing that fixed the problem

1 Like

I have playlists on that account.
I changed logging to DEBUG mode.
What should I looking for?

Hi, thanks for your card.

However, I have the same problem as @Daniel_B ,

Another question. Because your card, is not subject to the modifications of the theme? with css etc … :frowning:

Inpsect the results of the https://api.spotify.com/v1/me/playlists?limit=10 call and see if you get any playlists returned. If you need help you can paste the output in https://pastebin.com and send me the link.

Styling of the card is with Spotify style guidelines so it does not follow any theme.

hello,
i’m trying to use with “card modder” but nothing happen.
here my lovelace code:
card:
client_id: “my id”
type: ‘custom:spotify-card’
style:
background-size: 100% 120%
border-bottom-color: ‘rgba(20,20,20,0.3)’
border-bottom-left-radius: 10px
border-bottom-right-radius: 10px
border-right-color: ‘rgba(0,0,0,0.3)’
border-top-left-radius: 10px
border-top-right-radius: 10px
box-shadow: >-
-5px 5px 13px -7px #999999, 5px 5px 13px -7px #999999, 0px 2px 0px 0px
rgba(90,90,90,0.5), 0px 0px 1px 1px rgba(0,0,0,0.1)
color: green
font-weight: 700
type: ‘custom:card-modder’

Read the post above yours

There’s no entry in my HA log in DEBUG mode containing “https://api.spotify.com/v1/me/playlists?limit=10

Open dev tools in your browser to check this call

I have the same issue as Daniel_B when I go to “https://api.spotify.com/v1/me/playlists?limit=10
I get the following:

{
“error”: {
“status”: 401,
“message”: “No token provided”
}
}

Try deleting the token (chrome it is devtools->Application->Local Storage->access_token

did ju download it maunaly then and added a version number?

Seems some playlists doesn’t have a default image. If you experience problems with the listing you can follow the issue on github and see if you can provide me with dome more debug output.

Newbie here, how do you go about adding this card? I have a stock install with zero custom code, just getting into HA.

I had the same problem but two of my playlists didn’t have a playlist image. After adding the images to the playlists they showed up in my lovelace spotify card.

Tnx.

See the github page for install instructions

1 Like

any one else that needs to authenticate every tiime you reopen the page? it does the same in bothe the phone and chrome on PC. when that is done it works fine again.

Nope, I haven’t added a version number myself. That is done by the system.

You havs an old version. Check github for install instructions

I use master address is that wrong?

edit: changed from master to latest. solved. still curious how people solved the custom_updater thing…