Spotify Lovelace Card

Hi all,
Would anyone know how to Redirect the authorization, back to the HA APP?..
When I use the APP and press on the authorization, it will redirect and will reopen the HA on a browser, instead of going back to the APP…

Could this be fixed?

It used to work for me with the app as well… But for quite some time now, whenever I press the “Authenticate” button inside the app, it will redirect to my browser…

Would you know how to fix it?

The app doesn’t support redirects which is required for the card

I use the mariadb addon and it works. So do dateutils should not be a problem so it looks like you have a troubled setup I’m afraid.

1 Like

yes sure i have…

After each update of hacs, it doesnt work anymore…

the only trick i found its to do a

hassio ha rebuild ( now should be “ha core rebuild”)

and it works each time…so its not really a problem, and i dont want to reconfigure from scratch…i will have too much work lol

Thanks for your help!

EDIT : this morning 0.111.4 has released, i have again the error “home assistant Platform error sensor.spotify-playlist-sensor - No module named ‘dateutil’”

I try start a spotify playlist, and it doesnt work again…

i make a “ha core rebuild” in terminal (SSH addon) and it works again and no more error in the " Check Home assistant configuration AddOn".

Hello there, I got the card working. I got the SpotCast working. Everything seems to be functional.

I only have 1 concert/problem.
Whenever I choose a spoeake to play it on, it always plays my first playlist and I can’t seem to be able to change playlist… It always plays the first playlist and the first song on that playlist.

I’m I missing something somewhere?

Thanks in advance!

Anyone can help here?
@fondberg

same for me

Can you describe in detail the steps you made and what device type it was (chromecast or spotify connect)

Hello, ok so:

  1. Got the custom card installed through HACS version 1.26.0
  2. Restarted HA.
  3. Added a custom card
    client_id: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    random_song: 1
    type: ‘custom:spotify-card’
  4. Installed SpotCast from HACS and configured.
    Annotation 2020-06-25 140630

Under choose mediaplayer I see all of my chromecast players. This works great.
Once I choose a chromecast speaker it start playing a random song from my first playlist (EMINEM BEST OF). and then that speaker goes under spotify Connect. All the other speakers including hte selected one is under chormecast devices.

If I click on another playlist nothing happens, music jsut continue playing the eminem playlist and that it.

One more thing. I did try to call a service with a playlist that was listed on my spotify lovelace card and it did worked (with the service tab in developers section) And I see the play button of that playlist turn green. But clicking on the playlist directly on Spotify lovelace card doesn’t work.
Thanks!

Ok. I will have a look

1 Like

Will the random_song feature get fixed anytime? This option is not working for me, which is one of the most important things for me …

I just installed latest release of the card and read in the update informations that now we can use more than one card in the same lovelace view. I tried it but unsuccesfully… Is it real what is written in the informations or not?

That’s a normal error, it’s a custom component, just it ignore it… Dateutil will be installed upon first reboot

It is only me coding the card and with a day job and 5 kids I have very limited time. Anyone care to help out?

For me it works. I’ll check as soon as I have time

Ok thanks…
I was using this configuration:

                  - type: 'custom:spotify-card'   
                    client_id: xxxxxxxxxxxxxxxxxx
                    limit: 15
                    random_song: true
                    dailyMixes: true
                  - type: 'custom:spotify-card'  
                    client_id: xxxxxxxxxxxxxxxxxx
                    limit: 15
                    random_song: true
                    featuredPlaylists: true 

But it shows correctly only the first. The second shows only a big spotify icon.

I might have screwed something up when releasing. I’ll check as soon as I have a chance

1 Like

With the latest release it’s all ok but i have two question for you:
does this card support styling with card-mod ?
It seems not but i want to be sure…
Which is the correct syntax for using the featuredPlaylistsCountryCode option? I put

featuredPlaylistsCountryCode: 'IT'

But it seems not working.

I’m so sorry. I didn’t want to attack you, I just wanted to show that something didn’t work - for a long time.
I would help, but unfortunately my programming skills are not enough.