mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-18 23:06:58 +00:00
Spotify Aliases (#2684)
Add ability to alias devices in Spotify because some devices don't present good names or duplicate names.
This commit is contained in:
parent
d7aeb18d37
commit
65b253ecd6
@ -46,6 +46,9 @@ media_player:
|
|||||||
- platform: spotify
|
- platform: spotify
|
||||||
client_id: <your client id>
|
client_id: <your client id>
|
||||||
client_secret: <your client secret>
|
client_secret: <your client secret>
|
||||||
|
aliases:
|
||||||
|
abc123def456: 'Living Room'
|
||||||
|
9183abas000: 'Bed Room'
|
||||||
```
|
```
|
||||||
|
|
||||||
Configuration variables:
|
Configuration variables:
|
||||||
@ -53,6 +56,7 @@ Configuration variables:
|
|||||||
- **client_id** (*Required*): Client ID from your Spotify Application.
|
- **client_id** (*Required*): Client ID from your Spotify Application.
|
||||||
- **client_secret** (*Required*): Client Secret from your Spotify Application.
|
- **client_secret** (*Required*): Client Secret from your Spotify Application.
|
||||||
- **cache_path** (*Optional*): Path to cache authentication token (defaults to configuration directory).
|
- **cache_path** (*Optional*): Path to cache authentication token (defaults to configuration directory).
|
||||||
|
- **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.
|
||||||
|
|
||||||
## {% linkable_title Setup %}
|
## {% linkable_title Setup %}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user