SpotifyPlus Integration

@thlucas
Thanks for your help
Always the same like with de spotify card

Échec de l’exécution de l’action spotifyplus.player_media_play_context. Spotify Cast Application could not be activated on Chromecast device “5fdce05694b60555df36e20eee8d109a”: Spotify Desktop Player authorization token was not found in the token cache file

@cedrict
All of your configurations look correct.

Can you supply a screen capture of your System Information screen? That will display the version, installation type, and configuration directory of your HA install.

To display system info details, go to Settings \ System \ Repairs, then click the 3 vertical dots icon in the upper right and select System Information.
Mine looks like this:

It’s almost like SpotifyPlus cannot find the <config>/.storage/spotifyplus_tokens.json file that contains the token. In the screen capture from one of your earlier replies, it looks like you are displaying the 192.168.1.201/config/.storage location. It also appears to be hiding known file extensions (Windows Explorer maybe?). Can you verify that the spotifyplus_tokens is actually named spotifyplus_tokens.json? There are usually more files in the .storage folder than just the 2 you have displayed.

As a reminder … You can use the How to find the HA configuration directory instructions for how to locate the Home Assistant configuration directory, then the .storage directory will be located beneath it. Here are a few examples of where that may be located on your installation of HA:
- Home Assistant Operating System (config directory of the installation)
/config/.storage/
- Home Assistant Container (config directory that you mounted in your container)
/mnt/data/supervisor/homeassistant/.storage/
- Home Assistant Core (config directory passed to the hass command)
~/.homeassistant/.storage/

It’s almost like SpotifyPlus cannot find the <config>/.storage/spotifyplus_tokens.json file that contains the token
yes exactly

information : i am in supervised mode ! the probleme ? bad windows way ?



At this point, I would suggest that you setup an advanced SmartInspect Trace and try executing the player_media_play_context service call again.

This will generate a detailed trace file, which you can then send to me - do not post the trace file in this forum, as it contains sensitive information. It will tell me exactly what is happening and why.

Since you are a Windows OS user (and if you want to), you can install the SmartInspect Redistributable Console Viewer to display the contents of the trace as well.

It will look something like this. You can use find controls in the Console Viewer to find the start of the _GetSpotifyDesktopAuthorizationToken section, which will tell you exactly where it is looking for the file.