mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 07:17:14 +00:00
Add Plex refresh_library service (#14349)
Co-authored-by: Franck Nijhof <git@frenck.dev>
This commit is contained in:
parent
748def52e0
commit
272aac6141
@ -173,6 +173,7 @@ To play Plex music directly to Sonos speakers, the following requirements must b
|
|||||||
| `media_content_type` | `MUSIC` |
|
| `media_content_type` | `MUSIC` |
|
||||||
|
|
||||||
##### Examples:
|
##### Examples:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
entity_id: media_player.sonos_speaker
|
entity_id: media_player.sonos_speaker
|
||||||
media_content_type: MUSIC
|
media_content_type: MUSIC
|
||||||
@ -186,6 +187,15 @@ media_content_id: '{ "library_name": "Music", "artist_name": "Stevie Wonder", "s
|
|||||||
|
|
||||||
## Additional Services
|
## 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'
|
### 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.
|
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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user