Corrected option name and added to the example (#7754)

* Update for sensor.tautulli

I found that monitored_variables did not work in the config but monitored_conditions did so I fixed that in the docs as well as add examples for monitored_conditions and monitored_users.

* Update sensor.tautulli.markdown

Fix for standards

* Keep the configuration sample minimized
This commit is contained in:
heymoe 2018-12-07 04:29:00 -05:00 committed by Fabian Affolter
parent fe3c33a617
commit 51dced1f4b

View File

@ -26,7 +26,7 @@ The `Tautulli` sensor platform will monitor activity on a given [Tautulli Server
- Transcode count
- WAN bandwidth
More user statistics can be added with the `monitored_variables` configuration option, this will add one attribute per user in addition to the users current `activity`.
More user statistics can be added with the `monitored_conditions` configuration option, this will add one attribute per user in addition to the users current `activity`.
To find your `api_key` open the Tautulli web interface and navigate to `Settings` and then to `Web interface`, the `api_key` will be at the bottom of that page.
@ -63,11 +63,27 @@ monitored_users:
description: A list of Tautulli users you want to monitor, if not set this will monitor **all** users.
required: false
type: list
monitored_variables:
monitored_conditions:
description: A list of attributes to expose for each Tautulli user you monitor, every key in the `session` [section here][tautulliapi] can be used.
required: false
type: list
{% endconfiguration %}
## {% linkable_title Full example for the configuration %}
```yaml
# Example configuration.yaml entry
sensor:
- platform: tautulli
api_key: TAUTULLI_API_KEY
host: TAUTULLI_HOST
monitored_users:
- USER_1
- USER_2
monitored_conditions:
- ATTRIBUTE_1
- ATTRIBUTE_2
```
[tautulli]: https://tautulli.com
[tautulliapi]: https://github.com/Tautulli/Tautulli/blob/master/API.md#get_activity