mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-31 13:08:07 +00:00
Plex add media_player server config (#10303)
* First try to match changes * Revert some removed text for now * Minimize changes * Redundant * Prefer config over plex.conf * Show a minimal config
This commit is contained in:
parent
39448cd82d
commit
87ed2c0731
@ -50,53 +50,31 @@ media_player:
|
|||||||
- platform: plex
|
- platform: plex
|
||||||
```
|
```
|
||||||
|
|
||||||
In the event that [discovery](/components/discovery/) does not work (GDM disabled or non-local Plex server), you can manually create a `plex.conf` file manually and place it in your [configuration directory ](/docs/configuration/) or `/config/` if you are running Hass.io. The following is an example of `plex.conf`:
|
|
||||||
|
|
||||||
```json
|
|
||||||
{"IP_ADDRESS:PORT": {"token": "TOKEN", "ssl": false, "verify": true}}
|
|
||||||
```
|
|
||||||
|
|
||||||
{% configuration %}
|
{% configuration %}
|
||||||
IP_ADDRESS:
|
host:
|
||||||
description: IP address of the Plex Media Server.
|
description: The IP address or hostname of your Plex server.
|
||||||
required: true
|
required: false
|
||||||
|
default: localhost
|
||||||
type: string
|
type: string
|
||||||
PORT:
|
port:
|
||||||
description: Port where Plex is listening.
|
description: The port of your Plex Server.
|
||||||
required: true
|
required: false
|
||||||
default: 32400
|
default: 32400
|
||||||
type: integer
|
type: integer
|
||||||
TOKEN:
|
token:
|
||||||
description: Only if authentication is required. Set to `null` (without quotes) otherwise.
|
description: A valid X-Plex-Token for your Plex server.
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
ssl:
|
ssl:
|
||||||
description: Whether to use SSL/TLS or not.
|
description: Use HTTPS to connect to Plex server, **NOTE:** host **must not** be an IP when this option is enabled.
|
||||||
required: false
|
required: false
|
||||||
default: "`false`"
|
default: false
|
||||||
type: boolean
|
type: boolean
|
||||||
verify:
|
verify_ssl:
|
||||||
description: Perform a verification of the certificate. To allow invalid or self-signed SSL certificates set it to `false`.
|
description: Verify the SSL certificate of your Plex server. You may need to disable this check if your local server enforces secure connections with the default certificate.
|
||||||
required: false
|
required: false
|
||||||
default: "`true`"
|
default: true
|
||||||
type: boolean
|
type: boolean
|
||||||
{% endconfiguration %}
|
|
||||||
|
|
||||||
### Customization
|
|
||||||
|
|
||||||
You can customize the Plex integration by adding any of the variables below to your configuration:
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
# Example configuration.yaml entry
|
|
||||||
media_player:
|
|
||||||
- platform: plex
|
|
||||||
show_all_controls: false
|
|
||||||
use_episode_art: true
|
|
||||||
remove_unavailable_clients: true
|
|
||||||
client_remove_interval: 600
|
|
||||||
```
|
|
||||||
|
|
||||||
{% configuration %}
|
|
||||||
show_all_controls:
|
show_all_controls:
|
||||||
description: Forces all controls to display. Ignores dynamic controls (ex. show volume controls for client A but not for client B) based on detected client capabilities. This option allows you to override this detection if you suspect it to be incorrect.
|
description: Forces all controls to display. Ignores dynamic controls (ex. show volume controls for client A but not for client B) based on detected client capabilities. This option allows you to override this detection if you suspect it to be incorrect.
|
||||||
required: false
|
required: false
|
||||||
@ -195,7 +173,7 @@ sensor:
|
|||||||
|
|
||||||
{% configuration %}
|
{% configuration %}
|
||||||
host:
|
host:
|
||||||
description: The IP address of your Plex server.
|
description: The IP address or hostname of your Plex server.
|
||||||
required: false
|
required: false
|
||||||
default: localhost
|
default: localhost
|
||||||
type: string
|
type: string
|
||||||
@ -210,7 +188,7 @@ name:
|
|||||||
default: Plex
|
default: Plex
|
||||||
type: string
|
type: string
|
||||||
token:
|
token:
|
||||||
description: X-Plex-Token of your remote Plex server.
|
description: A valid X-Plex-Token for your Plex server.
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
ssl:
|
ssl:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user