From 1d92f7ca08736507659ba8811c95f831d16043d9 Mon Sep 17 00:00:00 2001 From: Teagan Glenn Date: Sun, 21 May 2017 21:52:28 -0600 Subject: [PATCH] Spotify Aliases Add ability to alias devices in Spotify because some devices don't present good names or duplicate names. --- source/_components/media_player.spotify.markdown | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/_components/media_player.spotify.markdown b/source/_components/media_player.spotify.markdown index 8646bed05ce4..e0c13f633b31 100644 --- a/source/_components/media_player.spotify.markdown +++ b/source/_components/media_player.spotify.markdown @@ -46,6 +46,9 @@ media_player: - platform: spotify client_id: client_secret: + aliases: + abc123def456: 'Living Room' + 9183abas000: 'Bed Room' ``` Configuration variables: @@ -53,6 +56,7 @@ Configuration variables: - **client_id** (*Required*): Client ID 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). +- **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 %}