From 8c71761087a2ce5cbc7db221f077bce0ebb4fbc5 Mon Sep 17 00:00:00 2001 From: Leandro Loureiro Date: Wed, 17 Jul 2019 12:30:53 +0200 Subject: [PATCH] Add documentation for custom spotify service play_playlist (#9798) * adding documentation for custom service play_playlist_random_music * aligning documentation * improve description --- source/_components/spotify.markdown | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/source/_components/spotify.markdown b/source/_components/spotify.markdown index 526a2e39353..6ed840a6ad5 100644 --- a/source/_components/spotify.markdown +++ b/source/_components/spotify.markdown @@ -117,6 +117,19 @@ which are part of the service. You can test this from the services control panel in the Home Assistant frontend. +## Services +Extra services besides the default ones in component [Media Player component](/components/media_player/). + +### Service `play_playlist` + +Play a Spotify playlist with an option to start on a random position of the playlist. + +| Service data attribute | Optional | Description | +| ---------------------- | -------- | ----------- | +| `media_content_id` | no | Spotify URI of playlist. Must be playlist kind of URI. +| `random_song` | yes | True to select random song at start, False to start from beginning. + + The above playlist example is a URI link to the "Reggae Infusions" playlist. [This support document from Spotify](https://support.spotify.com/us/article/sharing-music/) explains how to get this URI value to use for playlists in the Spotify component.