You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Update Spotify documentation including playlists
Improve English language use for readability; add example of play_media with Spotify playlist; add note about playlists not working on Google Nest Home devices.
* Improve Spotify documentation after feedback
Remove note about Google Home not working, fix code block
Copy file name to clipboardExpand all lines: source/_integrations/spotify.markdown
+27-16Lines changed: 27 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -20,17 +20,17 @@ The Spotify media player integration allows you to control [Spotify](https://www
20
20
- Spotify application configured for Home Assistant (see [below](#create-a-spotify-application))
21
21
22
22
<divclass='note'>
23
-
Spotify integrated media controls (pause, play, next, etc.) requires a Premium account.
24
-
If you do not have a Premium account, the integration's frontend will not show the controls.
23
+
Spotify integrated media controls (pause, play, next, etc.) require a Premium account.
24
+
If you do not have a Premium account, the frontend will not show the controls.
25
25
</div>
26
26
27
27
### Create a Spotify application
28
28
29
29
- Login to [Spotify Developer](https://developer.spotify.com).
30
30
- Visit the [My Applications](https://developer.spotify.com/my-applications/#!/applications) page.
31
31
- Select **Create An App**. Enter any name and description.
32
-
- Once your application is created, view it and copy your **Client ID** and **Client Secret**, which are used in the Home Assistant configuration file.
33
-
-On the Spotify page, enter the **Edit Settings** dialog of your newlycreated application and add a *Redirect URI*:
32
+
- Once your application is created, view it and copy your **Client ID** and **Client Secret**, which are used in the Home Assistant [configuration file below](#configuration).
33
+
-Enter the **Edit Settings** dialog of your newly-created application and add a *Redirect URI*:
34
34
- If you are not using SSL: `http://<your_home_assistant_url_or_local_ip>:<port>/auth/external/callback`
35
35
- If you are using SSL: `https://<your_home_assistant_url_or_local_ip>:<port>/auth/external/callback`
36
36
- Click **Save** after adding the URI.
@@ -52,18 +52,18 @@ spotify:
52
52
53
53
{% configuration %}
54
54
client_id:
55
-
description: Client ID from your Spotify application.
55
+
description: Client ID from your Spotify Developer application.
56
56
required: true
57
57
type: string
58
58
client_secret:
59
-
description: Client Secret from your Spotify application.
59
+
description: Client Secret from your Spotify Developer application.
60
60
required: true
61
61
type: string
62
62
{% endconfiguration %}
63
63
64
64
## Activating the Spotify integration
65
65
66
-
- Go to the **Configurations** page in the Home Assistant frontend.
66
+
- Go to the **Configuration** page in the Home Assistant frontend.
67
67
- Click on **Integrations**.
68
68
- Click the orange **+** on the bottom-right.
69
69
- Click on "Spotify".
@@ -72,29 +72,40 @@ client_secret:
72
72
<div class='note'>
73
73
74
74
If you receive an `INVALID_CLIENT: Invalid redirect URI` error while trying to
75
-
authenticate with your Spotify account, make sure to check the Redirect URI in
75
+
authenticate with your Spotify account, check the Redirect URI in
76
76
the address bar after adding the new integration. Compare this value with the
77
77
Redirect URI defined in the Spotify Developer Portal.
78
78
79
79
</div>
80
80
81
81
## Using multiple Spotify accounts
82
82
83
-
The integration support multiple Spotify accounts at once. You don't need to
83
+
This integration supports multiple Spotify accounts at once. You don't need to
84
84
create another Spotify application in the Spotify Developer Portal and no
85
85
modification to the `configuration.yaml` file is needed. Multiple Spotify
86
86
accounts can be linked to a _single_ Spotify application.
87
87
88
-
To add an additional Spotify account to Home Assistant, repeat _only_ the steps
89
-
in the [Activating the Spotify integration](#activating-the-spotify-integration)
90
-
section. However, make sure you go to the Spotify website and log out before
91
-
you do so.
88
+
To add an additional Spotify account to Home Assistant, go to the Spotify website and log out, then repeat _only_ the steps
89
+
in the [Activating the Spotify integration](#activating-the-spotify-integration) section.
92
90
93
-
## URI Links for Playlists
91
+
## Playing Spotify playlists
94
92
95
93
You can send playlists to Spotify using the `"media_content_type": "playlist"`, which is part of the
The `media_content_id` can be obtained from the Spotify desktop-app by clicking on the more options ("...") next to the album art picture, selecting "share" and then "Copy Spotify URI" or "Copy Playlist Link" (also available in the Spotify phone and web app).
94
+
[media_player.play_media](/integrations/media_player/#service-media_playerplay_media) service, for example:
The `media_content_id` value can be obtained from the Spotify desktop app by clicking on the more options ("...") next to the album art picture, selecting "Share" and then "Copy Spotify URI" or "Copy Playlist Link" (also available in the Spotify phone and web app).
0 commit comments