From 272aac6141ee080e735302df427bc9b370d212da Mon Sep 17 00:00:00 2001 From: jjlawren Date: Thu, 3 Sep 2020 12:35:31 -0500 Subject: [PATCH] Add Plex refresh_library service (#14349) Co-authored-by: Franck Nijhof --- source/_integrations/plex.markdown | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/source/_integrations/plex.markdown b/source/_integrations/plex.markdown index 4431a270311..e6a678d98e9 100644 --- a/source/_integrations/plex.markdown +++ b/source/_integrations/plex.markdown @@ -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.