Installation Instructions - thlucas1/homeassistantcomponent_spotifyplus GitHub Wiki

The easiest way to install the integration is via the Home Assistant Community Store (or HACS for short). Check out the HACS Install Documentation for more information on how to install HACS in your Home Assistant environment.

If you do not want to use HACS, you can also install the integration manually by copying files from the GitHub project.

Both installation types are covered below.

Requirements

The following requirements must be met prior to installing the SpotifyPlus Integration.

  • A Spotify Premium account is recommended, but not required; Free accounts will work, but are extremely limited (see limitations for more details).
  • Home Assistant 2024.10+ release.

HACS Installation Instructions

  • Starting at your Home Assistant main dashboard, click on the HACS main menu item to display the current list of HACS Repositories. I would suggest filtering the list of entries by entering SpotifyPlus in the Search textbox field. Note that in the screen capture below, I have the SpotifyPlus Card repository installed, but not the SpotfyPlus Integration repository.

  • Click on the 3-dot overflow menu in the upper right, and select custom repositories item.
    This will open the HACS Custom Repositories dialog.

  • Copy / paste the following url in the Repository textbox, and select Integration for the Type entry.

    https://github.com/thlucas1/homeassistantcomponent_spotifyplus
    

[!IMPORTANT] Make sure you select Integration for the Type entry! Anything else will cause cause the installation to fail!

  • Click on Add to add the custom repository to the HACS Repository List.
    Give this 10 to 30 seconds to complete, as there is not visual "processing" indicator to let you know something is happening. You should see the list behind the dialog update once it completes.

  • Close the Custom Repositories dialog.
    This will display the SpotifyPlus repository entry under the "New" group of HACS Repository List entries.
    It will look like this:

    Note at this point you have only added the SpotifyPlus repository to the HACS Repository List.
    Now it's time to actually download the contents of the SpotifyPlus repository itself.

  • Click on the SpotifyPlus repository entry to display the repository details.
    This will also display a Download button (lower right corner) that can be used to download the repository contents.

  • Click on the Download button to start the repository download process.
    This will display the download Confirmation dialog, which displays the repository version that will be downloaded as well as where it will be stored on the file system. You should download the latest repository version by default (unless you are asked by the developer to download a specific repository version for testing purposes).

  • Click on the Confirmation dialog Download button to start the process, which will download the repository contents to the location specified in the Confirmation dialog (e.g. config/custom_components/spotifyplus).

  • After the download completes, you can close the HACS Custom Repositories dialog.
    This will display the SpotifyPlus repository entry under the "Pensing Restart" group of HACS Repository List entries.
    It will look like this:

  • Restart Home Assistant to apply the changes.
    I would also suggest clearing your browser cache prior to restart.

  • Proceed to the Pre-Installation Requirements wiki page for steps on how to install the integration.

Manual Installation

  • Using the tool of choice open the directory (folder) for your HA configuration (where you find configuration.yaml).
  • If you do not have a custom_components directory (folder) there, you need to create it.
  • In the custom_components directory (folder) create a new folder called spotifyplus.
  • Download all of the files from the custom_components/spotifyplus/ directory (folder) in this repository.
  • Place the files you downloaded in the new directory (folder) you created.
  • Restart Home Assistant; I would also suggest clearing your browser cache prior to restart.
  • Proceed to the Pre-Installation Requirements wiki page for steps on how to install the integration.

Configuration

Most configuration of the integration is done in the UI, but not ALL of it; check out the Device Configuration Options wiki page for more details.

Extra Steps for Sonos Users

There are a couple of extra SpotifyPlus configuration steps for Sonos environments. Sonos devices are considered "restricted" by Spotify Connect, so they require a more powerful authorization token to transfer playback to the device.

Check out the following wiki docs for more information:

Limitations

For Sonos devices, all content is played on the device using the local queue when the play context / tracks services are called. The local queue content that is currently playing will be different than what the Spotify Web API is currently reporting as playing. Unfortunately, Spotify developers disabled the ability to play context / tracks under Spotify control for Sonos devices! Note that the official Spotify Apps (Desktop / Web / Mobile) utilize the Spotify Embedded Client to control the device, which does not have these limitations like the Spotify Web API does.

Extra Steps for Google Chromecast Users

There is an extra SpotifyPlus configuration step for Google Chromecast environments, which enables HA to transfer playback to idle Chromecast devices as well as support multiple Spotify user accounts.

Check out the following wiki docs for more information: