From b46f7fe5705bf6f0d96273115f0f34772dffa79b Mon Sep 17 00:00:00 2001 From: Pete Sage <76050312+PeteRager@users.noreply.github.com> Date: Tue, 4 Jun 2024 01:06:44 -0400 Subject: [PATCH] Sonos - add additional docs for play_media (#33062) --- source/_integrations/sonos.markdown | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/source/_integrations/sonos.markdown b/source/_integrations/sonos.markdown index ae676ba3cd8..53e329f020e 100644 --- a/source/_integrations/sonos.markdown +++ b/source/_integrations/sonos.markdown @@ -248,6 +248,30 @@ data: enqueue: play ``` +Play all albums by a genre. + +```yaml +service: media_player.play_media +target: + entity_id: media_player.porch +data: + media_content_type: genre + media_content_id: "A:GENRE/Classic%20Rock/" + enqueue: play +``` + +Play an imported playlist by using its title. + +```yaml +service: media_player.play_media +target: + entity_id: media_player.porch +data: + media_content_type: playlist + media_content_id: S:/MyPlaylist + enqueue: play +``` + ## Services The Sonos integration makes various custom services available in addition to the [standard media player services](/integrations/media_player/#services).