custom-cards / spotify-card

Spotify playlist card for Home Assistant card
Other
381 stars 61 forks source link

Card sits at Loading... #182

Open robkjr opened 2 years ago

robkjr commented 2 years ago

Card will not load my Spotify account. It sits at loading... Choose Play sits at No players found. image

reyostallenberg commented 2 years ago

I also had this problem, apparently my Spotify integration wasn't setup correctly. I hope and think yours isn't also. After following the steps from here https://www.home-assistant.io/integrations/spotify it was suddenly working.

Stupco commented 2 years ago

Also having this issue. Re-adding the Spotify integration did not work.

TimbukTwoTwos commented 2 years ago

Also got this issue...re-adding spotify integration didn't work.

robkjr commented 2 years ago

I had to reinstall SpotCast integration to make this work. My keys were wrong in my Config.YAML file. Once I pulled the correct keys and put them in config.yaml it worked properly.

TimbukTwoTwos commented 2 years ago

I had re-installed the SpotCast integration about 3 times using the same method without any success...the method being going to the chrome settings url and finding the keys.

However what worked for me was using the F12 method in Chrome to copy the keys instead. Not sure why or how, but it's now working.

gezeebeezee commented 2 years ago

Is anyone else still having this issue? My card was working displaying the playlists, but suddenly all I'm getting is "Loading..."

JOHLC commented 2 years ago

I also have this issue Here is my spotcast config:

spotcast:
  sp_dc: !secret spotcast_dc
  sp_key: !secret spotcast_key
  accounts:
    person2:
      sp_dc: !secret spotcast_dc_person2
      sp_key: !secret spotcast_key_person2

The default account works fine, however under that you will see the 'person2' card stuck at "Loading..." image

Here is the config for the primary card

type: custom:spotify-card
playlist_type: default
always_play_random_song: true
grid_covers_per_row: '4'
display_style: grid
limit: 4
spotify_entity: media_player.spotify_primary_account
hide_currently_playing: true
hide_top_header: true
grid_show_title: true
hide_playback_controls: true

Here is the config for the secondary card:

type: custom:spotify-card
account: person2
playlist_type: default
always_play_random_song: true
grid_covers_per_row: '4'
display_style: grid
limit: 4
spotify_entity: media_player.spotify_person2
hide_currently_playing: true
hide_top_header: true
grid_show_title: true
hide_playback_controls: true

I have reinstalled the integration a few times, and re-configured the Spotify integration several times. Both of the accounts are setup in the HA integration as well and working.

rw377 commented 2 years ago

Also continuing to have this issue

Bilhix commented 1 year ago

same here, can play via media and Spotify integration, however still unable to load any players

imonroe commented 1 year ago

Same here. If I play spotify songs via any other method, the songs show up in the card, but I'm just stuck on "Loading".

I get a JS error in the console when I try to do anything with the card.

image

I suspect it might be the spotcast integration that's causing the issue.

mikedrews commented 1 year ago

Having the same issue ..The card does show what is playing if I trigger music via the spotify app.
image

satyambaba commented 1 year ago

I am also facing the same issue.

robkjr commented 1 year ago

I am also facing the same issue.

Try pulling your cookie info again. I just had to do this a couple of weeks ago. It had changed. Also make sure you have the latest Spotcast installed.

satyambaba commented 1 year ago

I am also facing the same issue.

Try pulling your cookie info again. I just had to do this a couple of weeks ago. It had changed. Also make sure you have the latest Spotcast installed.

Thanks for the tip. Just updated sp_dc and sp_key and it worked!

stefanborghys commented 1 year ago

@robkjr @satyambaba i have the latest version of spotcast (v3.6.30) and just updated the 'sp_dc' and 'sp_key' values but it didn't make a difference.

Strangely it seems to pick up the names of songs playing triggered by another integration. But the UI keeps showing 'Loading...'. Following screen capture shows the integration on the bottom. Showing the track information while still loading... i guess the entire internet :).

afbeelding

Going thru the system logs i also spotted this error. Are there others seeing the same error? 2022-12-10 00:37:08.379 ERROR (MainThread) [frontend.js.latest.202211080] http://home-assistant.home:8123/local/community/spotify-card/spotify-card.js:471:14049 TypeError: i is undefined Edit: Created issue https://github.com/custom-cards/spotify-card/issues/194 for the above error.

stefanborghys commented 1 year ago

@robkjr @satyambaba i found the issue and it was due to my own stupidity. So i can't verify if your solution made an impact or not. But this is what happened. My spotcast is coupled to my Development Spotify account which had no playlists. Simply adding some playlists proved it does works!

afbeelding