Sonos - add additional docs for play_media (#33062)

This commit is contained in:
Pete Sage 2024-06-04 01:06:44 -04:00 committed by GitHub
parent 520dcf5c6c
commit b46f7fe570
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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).