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:
Teagan Glenn 2017-06-07 23:45:58 -06:00 committed by Fredrik Lindqvist
parent d7aeb18d37
commit 65b253ecd6

View File

@ -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 %}