mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-21 00:06:51 +00:00
Sonos - add additional docs for play_media (#33062)
This commit is contained in:
parent
520dcf5c6c
commit
b46f7fe570
@ -248,6 +248,30 @@ data:
|
|||||||
enqueue: play
|
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
|
## Services
|
||||||
|
|
||||||
The Sonos integration makes various custom services available in addition to the [standard media player services](/integrations/media_player/#services).
|
The Sonos integration makes various custom services available in addition to the [standard media player services](/integrations/media_player/#services).
|
||||||
|
Loading…
x
Reference in New Issue
Block a user