Skip to content

Commit 65b253e

Browse files
Teagan42Landrash
authored andcommitted
Spotify Aliases (home-assistant#2684)
Add ability to alias devices in Spotify because some devices don't present good names or duplicate names.
1 parent d7aeb18 commit 65b253e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

source/_components/media_player.spotify.markdown

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,17 @@ media_player:
4646
- platform: spotify
4747
client_id: <your client id>
4848
client_secret: <your client secret>
49+
aliases:
50+
abc123def456: 'Living Room'
51+
9183abas000: 'Bed Room'
4952
```
5053
5154
Configuration variables:
5255
5356
- **client_id** (*Required*): Client ID from your Spotify Application.
5457
- **client_secret** (*Required*): Client Secret from your Spotify Application.
5558
- **cache_path** (*Optional*): Path to cache authentication token (defaults to configuration directory).
59+
- **aliases** (*Optional*): Dictionary of device ids to be aliased, handy for devices that Spotify cannot properly determine the device name of. New devices will be logged to the `info` channel for ease of aliasing.
5660

5761
## {% linkable_title Setup %}
5862

0 commit comments

Comments
 (0)