Add Plex refresh_library service (#14349)

Co-authored-by: Franck Nijhof <git@frenck.dev>
This commit is contained in:
jjlawren 2020-09-03 12:35:31 -05:00 committed by GitHub
parent 748def52e0
commit 272aac6141
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -173,6 +173,7 @@ To play Plex music directly to Sonos speakers, the following requirements must b
| `media_content_type` | `MUSIC` |
##### Examples:
```yaml
entity_id: media_player.sonos_speaker
media_content_type: MUSIC
@ -186,6 +187,15 @@ media_content_id: '{ "library_name": "Music", "artist_name": "Stevie Wonder", "s
## Additional Services
### Service `plex.refresh_library`
Refresh a Plex library to scan for new and updated media.
| Service data attribute | Required | Description | Example |
| --- | --- | --- | --- |
| `server_name` | No | Name of Plex server to use if multiple servers configured. | "My Plex Server" |
| `library_name` | Yes | Name of Plex library to update. | "TV Shows" |
### Service 'plex.scan_for_clients'
Scan for new controllable Plex clients. This may be necessary in scripts or automations which control a Plex `media_player` entity, but where the underlying device must be turned on first.