Home Assistant custom component to start Spotify playback on an idle chromecast device or a Spotify Connect device.
This component is not meant to be a full Spotify chromecast media_player but only serves to start the playback. Controlling the chromecast device and the Spotify playback after the initial start is done in their respective components. Because starting playback using the API requires more powerful token the username and password used for browser login is used.
Used by https://github.com/custom-cards/spotify-card.
Note that since v3.5.2 you must also have the official Home Assistant Spotify Integration installed and configured for this custom component to work. This is because it provides the correct device list which has the correct scopes in its token.
Add the following to your config
spotcast:
sp_dc: !secret sp_dc
sp_key: !secret sp_key
For full configuration documentation and information on how to obtain the correct sp_dc
and sp_key
values, see README