Home Assistant Community

Spotify Lovelace Card

lovelace
media_player
Tags: #<Tag:0x00007f374d40f570> #<Tag:0x00007f374d40f408>
#84

@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.

0 Likes

#85

Thanks @fondberg you were right wrong redirect …

Changing that fixed the problem

1 Like

#86

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

0 Likes

#87

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:

0 Likes

#88

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.

0 Likes

#89

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’

0 Likes

#90

Read the post above yours

0 Likes

#91

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

0 Likes

#92

Open dev tools in your browser to check this call

0 Likes

#93

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”
}
}

0 Likes

#94

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

0 Likes

#95

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

0 Likes

#97

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.

0 Likes

#98

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

0 Likes

#99

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.

0 Likes

#100

See the github page for install instructions

1 Like

#101

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.

0 Likes

#102

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

0 Likes

#103

You havs an old version. Check github for install instructions

0 Likes

#104

I use master address is that wrong?

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

0 Likes