Update config style and 'ha_release' (#3897)

* Update config style and 'ha_release'

* Minor changes
This commit is contained in:
Fabian Affolter 2017-11-05 15:29:40 +01:00 committed by GitHub
parent e32f1cdabd
commit c54442720f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 68 additions and 21 deletions

View file

@ -8,13 +8,13 @@ comments: false
sharing: true
footer: true
logo: vultr.png
ha_release: "0.57"
ha_release: "0.58"
ha_category: System Monitor
ha_iot_class: "Cloud Polling"
---
The `vultr` sensor will allow you to view current bandwidth usage and pending charges against your [Vultr](https://www.vultr.com/) subscription.
The `vultr` sensor platform will allow you to view current bandwidth usage and pending charges against your [Vultr](https://www.vultr.com/) subscription.
To use this sensor, you must set up your [Vultr hub](/components/vultr/).
@ -23,13 +23,37 @@ The following examples assume a subscription that has an ID of `123456` and a la
</p>
Minimal `configuration.yaml` (produces `sensor.vultr_web_server_current_bandwidth_used` and `sensor.vultr_web_server_pending_charges`):
```yaml
sensor:
- platform: vultr
subscription: 123456
```
{% configuration %}
subscription:
description: The Vultr subscription to monitor, this can be found in the URL when viewing a subscription.
required: true
type: string
name:
description: The name to give this sensor.
required: false
default: "Vultr {Vultr subscription label} {monitored condition name}"
type: string
monitored_conditions:
description: List of items you want to monitor for each subscription.
required: false
detault: All conditions
type: list
keys:
current_bandwidth_used:
description: The current (invoice period) bandwidth usage in Gigabytes (GB).
temperature:
pending_charges: The current (invoice period) charges that have built up for this subscription. Value is in US Dollars (US$).
{% endconfiguration %}
Full `configuration.yaml` using `{}` to format condition name (produces `sensor.server_current_bandwidth_used` and `sensor.server_pending_charges`):
```yaml
sensor:
- platform: vultr
@ -50,10 +74,3 @@ sensor:
- current_bandwidth_used
```
Configuration variables:
- **subscription** (*Required*): The Vultr subscription to monitor, this can be found in the URL when viewing a subscription
- **name** (*Optional*): The name to give this sensor, defaults to `Vultr {Vultr subscription label} {monitored condition name}`.
- **monitored_conditions** array (*Optional*): List of items you want to monitor for each subscription. Defaults to all of them if omitted.
- **current_bandwidth_used**: The current (invoice period) bandwidth usage in Gigabytes (GB).
- **pending_charges**: The current (invoice period) charges that have built up for this subscription. Value is in US Dollars (US$).