Skip to content

Commit 56e5fe6

Browse files
authored
Enhance Sonos documentation for Spotify playlists (#40968)
1 parent e381841 commit 56e5fe6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

source/_integrations/sonos.markdown

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ data:
166166
volume: 80
167167
```
168168

169-
Sonos can also play music or playlists from Spotify. Both Spotify URIs and URLs can be used directly. An example action using a playlist URI:
169+
Sonos can also play music or playlists from Spotify. Both Spotify URIs and URLs can be used directly. The optional `title` parameter can be used to fill the media_playlist attribute correctly. An example action using a playlist URI:
170170

171171
```yaml
172172
action: media_player.play_media
@@ -176,6 +176,8 @@ data:
176176
media_content_type: "playlist"
177177
media_content_id: "spotify:playlist:abcdefghij0123456789XY"
178178
enqueue: true
179+
extra:
180+
title: Example Playlist
179181
```
180182

181183
An example action using a Spotify URL:

0 commit comments

Comments
 (0)