mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-08 09:56:52 +00:00
Improve advanced filtering documentation for the Plex Integration (#21700)
This commit is contained in:
parent
7b77f50729
commit
c3eeda09f6
@ -138,11 +138,16 @@ The integration must be configured with a token for playback commands to work. T
|
||||
|
||||
##### Examples:
|
||||
|
||||
Play Hello from Adele's album 25 in the library Music
|
||||
|
||||
```yaml
|
||||
entity_id: media_player.plex_player
|
||||
media_content_type: MUSIC
|
||||
media_content_id: '{ "library_name": "Music", "artist_name": "Adele", "album_name": "25", "track_name": "Hello" }'
|
||||
```
|
||||
|
||||
Play a random track from Stevie Wonder in the library Music
|
||||
|
||||
```yaml
|
||||
entity_id: media_player.plex_player
|
||||
media_content_type: MUSIC
|
||||
@ -158,6 +163,9 @@ media_content_id: '{ "library_name": "Music", "artist_name": "Stevie Wonder", "s
|
||||
| `media_content_type` | `PLAYLIST` |
|
||||
|
||||
##### Example:
|
||||
|
||||
Plays the playlist The Best of Disco with shuffle enabled
|
||||
|
||||
```yaml
|
||||
entity_id: media_player.plex_player
|
||||
media_content_type: PLAYLIST
|
||||
@ -174,15 +182,28 @@ media_content_id: '{ "playlist_name": "The Best of Disco", "shuffle": "1" }'
|
||||
|
||||
##### Examples:
|
||||
|
||||
Play Rick and Morty S2E5 from library Adult TV
|
||||
|
||||
```yaml
|
||||
entity_id: media_player.plex_player
|
||||
media_content_type: EPISODE
|
||||
media_content_id: '{ "library_name": "Adult TV", "show_name": "Rick and Morty", "season_number": 2, "episode_number": 5 }'
|
||||
```
|
||||
|
||||
Play a random episode of Sesame Street from the library Kids TV
|
||||
|
||||
```yaml
|
||||
entity_id: media_player.plex_player
|
||||
media_content_type: EPISODE
|
||||
media_content_id: '{ "library_name": "Kid TV", "show_name": "Sesame Street", "shuffle": "1" }'
|
||||
media_content_id: '{ "library_name": "Kids TV", "show_name": "Sesame Street", "shuffle": "1" }'
|
||||
```
|
||||
|
||||
Play the next unfinished episode of 60 Minutes from the library News TV
|
||||
|
||||
```yaml
|
||||
entity_id: media_player.plex_player
|
||||
media_content_type: EPISODE
|
||||
media_content_id: '{ "library_name": "News TV", "show_name": "60 Minutes", "episode.unwatched": true, "episode.inProgress": [true, false], "sort": "addedAt:asc", "maxresults": 1 }'
|
||||
```
|
||||
|
||||
#### Movie
|
||||
@ -195,6 +216,8 @@ media_content_id: '{ "library_name": "Kid TV", "show_name": "Sesame Street", "sh
|
||||
|
||||
##### Examples:
|
||||
|
||||
Play Blade from the library Adult Movies
|
||||
|
||||
```yaml
|
||||
entity_id: media_player.plex_player
|
||||
media_content_type: movie
|
||||
@ -281,11 +304,16 @@ Call the `media_player.play_media` service with the `entity_id` of a Sonos integ
|
||||
|
||||
##### Examples:
|
||||
|
||||
Play a track with advanced filtering on a Sonos Speaker
|
||||
|
||||
```yaml
|
||||
entity_id: media_player.sonos_speaker
|
||||
media_content_type: music
|
||||
media_content_id: 'plex://{ "library_name": "Music", "artist_name": "Adele", "album_name": "25", "track_name": "Hello" }'
|
||||
```
|
||||
|
||||
Play a playlist on a Sonos Speaker
|
||||
|
||||
```yaml
|
||||
entity_id: media_player.sonos_speaker
|
||||
media_content_type: playlist
|
||||
|
Loading…
x
Reference in New Issue
Block a user