Spotcast fails with 'serverTime' error

Hello everyone,

I’m trying to use Spotcast to play a specific Spotify playlist on my Echo Dot device via an automation in Home Assistant, but I’m running into issues.

Setup:

  • Home Assistant Core: 2025.5.3
  • Spotcast version: latest available via HACS
  • Echo Dot is correctly visible in the Spotify Connect list
  • Spotcast sp_dc and sp_key cookies were extracted fresh and added to configuration.yaml
  • Spotify entity: media_player.spotify_21iyvaydb2kcf4n7fmcebdmhi
  • Device name: "Pano's Echo Dot" (used in Spotcast call)

What I’ve tried:

  • Verified that Spotcast works by manually calling the service from Developer Tools → Services
  • Echo Dot is visible and connectable via the official Spotify app
  • Fired the play_spotify_on_echo_dot event in Developer Tools → Events
  • Restarted HA and cleared browser/app cache
  • Triple-checked sp_dc and sp_key are correct and not expired

I’ve seen this 'serverTime' error before in a few GitHub issues, but no clear resolution. Everything seems correctly configured, yet playback fails silently, and no music plays on the Echo Dot.

Any ideas or known fixes?
Happy to provide additional logs or try debugging steps. Thank you!

I had a working automation until recently, but I now get the same error.

As far as I can tell, nothing had changed on my end prior to it giving this error.

@panzeg @Ohyeah218
I believe you have to utilize SpotCcast v6 to correct this, as Spotify discontinued the ability to utilize the Spotify Web Player Cookie Credentials using the sp_dc and sp_key values a few weeks ago. I don’t believe HACS has been updated yet with the v6 release, which is probably why you are having issues if installing SpotCast from HACS. There is also a youtube video on how to upgrade to SpotCast v6 if it helps.

Other things you might consider

Check out the SpotifyPlus Integration; it can do everything that the HA Spotify integration can do, supports Spotify Connect enabled devices (Bose, Sonos, Chromecast, Amazon Alexa, Denon, JBL, and more), and provides 95+ custom services that can be used in HA automations and scripts. Spotcast not required.

There is also a SpotifyPlus Card user-interface that allows you to control the player, manage your Spotify favorites, as well as search the Spotify catalog. You have to install the SpotifyPlus integration first though, and get it configured before you can use the SpotifyPlus Card.

Both are easily installed via HACS.

Hope it helps!

3 Likes

Thanks. This worked!

I assume you are the creator of SpotifyPlus? What are the benefits of using SpotifyPlus over Spotcast?

1 Like

@DIY-techie
Yes, I am the author of SpotifyPlus. The biggest benefit (IMO) are the 95+ custom services that expose almost every endpoint of the Spotify Web API to HA automations and script.

The next big draw is the ability to awaken Chromecast devices, as well as Sonos devices.

At the end of the day you can replace both HA Spotify and Spotcast integrations with the SpotifyPlus integration, and have more functionality with the available custom services.

It really comes down to what you want to be able to do with Spotify in your HA environment.

1 Like

Very cool and ambitious. Think I need to try it some day :slight_smile:

1 Like

Hi,
have. you been able to do awakening of Google devices? or what is the workaround to have a script that instantly reproduces Spotify music and cast without having it to be currently running on mobile or other device

@alanmarchan17
I use SpotifyPlus Integration to do this.

If you want to continue using SpotCast, you have to utilize SpotCast v6 to correct this, as Spotify discontinued the ability to utilize the Spotify Web Player Cookie Credentials using the sp_dc and sp_key values in late May. I don’t believe HACS has been updated yet with the v6 release, which is probably why you are having issues if installing SpotCast from HACS. There is also a youtube video on how to upgrade to SpotCast v6 if it helps.

Other things you might consider

Check out the SpotifyPlus Integration; it can do everything that the HA Spotify integration can do, supports Spotify Connect enabled devices (Bose, Sonos, Chromecast, Amazon Alexa, Denon, JBL, and more), and provides 95+ custom services that can be used in HA automations and scripts. Spotcast not required.

There is also a SpotifyPlus Card user-interface that allows you to control the player, manage your Spotify favorites, as well as search the Spotify catalog. You have to install the SpotifyPlus integration first though, and get it configured before you can use the SpotifyPlus Card.

Both are easily installed via HACS.

Hope it helps!