diff --git a/source/_components/binary_sensor.vultr.markdown b/source/_components/binary_sensor.vultr.markdown new file mode 100644 index 00000000000..cb1421e38e1 --- /dev/null +++ b/source/_components/binary_sensor.vultr.markdown @@ -0,0 +1,42 @@ +--- +layout: page +title: "Vultr Binary Sensor" +description: "Instructions on how to set up Vultr binary sensors within Home Assistant." +date: 2017-10-17 21:00 +sidebar: true +comments: false +sharing: true +footer: true +ha_category: System Monitor +logo: vultr.png +ha_release: "0.57" +ha_iot_class: "Cloud Polling" +--- + +The `vultr` binary sensor platform allows you to monitor your [Vultr](https://www.vultr.com/) subscription to see if it is powered on or not. + +To use this binary sensor, you first have to set up your [Vultr hub](/components/vultr/). + +
+The following examples assume a subscription that has an ID of `123456` and a label of `Web Server` +
+ +Minimal `configuration.yaml` (produces `binary_sensor.vultr_web_server`): +```yaml +binary_sensor: + - platform: vultr + subscription: 123456 +``` + +Full `configuration.yaml` (produces `binary_sensor.totally_awesome_server`): +```yaml +binary_sensor: + - platform: vultr + name: totally_awesome_server + subscription: 12345 +``` + +Configuration variables: + +- **subscription** (*Required*): The subscription you want to monitor, this can be found in the URL when viewing a server +- **name** (*Optional*): The name you want to give this binary sensor, defaults to `Vultr {subscription label}` diff --git a/source/_components/sensor.vultr.markdown b/source/_components/sensor.vultr.markdown new file mode 100644 index 00000000000..154a21ba044 --- /dev/null +++ b/source/_components/sensor.vultr.markdown @@ -0,0 +1,59 @@ +--- +layout: page +title: "Vultr Sensor" +description: "Instructions on how to integrate Vultr sensor within Home Assistant." +date: 2017-10-17 21:00 +sidebar: true +comments: false +sharing: true +footer: true +logo: vultr.png +ha_release: "0.57" +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. + +To use this sensor, you must set up your [Vultr hub](/components/vultr/). + ++The following examples assume a subscription that has an ID of `123456` and a label of `Web Server` +
+ +Minimal `configuration.yaml` (produces `sensor.vultr_web_server_current_bandwidth_used` and `sensor.vultr_web_server_pending_charges`): +```yaml +sensor: + - platform: vultr + subscription: 123456 +``` + +Full `configuration.yaml` using `{}` to format condition name (produces `sensor.server_current_bandwidth_used` and `sensor.server_pending_charges`): +```yaml +sensor: + - platform: vultr + name: Server {} + subscription: 123456 + monitored_conditions: + - current_bandwidth_used + - pending_charges +``` + +Custom `configuration.yaml` with only one condition monitored (produces `sensor.web_server_bandwidth`): +```yaml +sensor: + - platform: vultr + name: Web Server Bandwidth + subscription: 123456 + monitored_conditions: + - 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$). diff --git a/source/_components/switch.vultr.markdown b/source/_components/switch.vultr.markdown new file mode 100644 index 00000000000..0ac0bb3ad1e --- /dev/null +++ b/source/_components/switch.vultr.markdown @@ -0,0 +1,42 @@ +--- +layout: page +title: "Vultr Switch" +description: "Instructions on how to set up Vultr switches within Home Assistant." +date: 2017-10-17 21:00 +sidebar: true +comments: false +sharing: true +footer: true +logo: vultr.png +ha_category: Switch +ha_release: "0.57" +ha_iot_class: "Cloud Polling" +--- + +The `vultr` switch platform allows you to control (start/stop) your [Vultr](https://www.vultr.com/) subscription. + +To control your Vultr subscription, you first have to set up your [Vultr hub](/components/vultr/). + ++The following examples assume a subscription that has an ID of `123456` and a label of `Web Server` +
+ +Minimal `configuration.yaml` (produces `switch.vultr_web_server`): +```yaml +switch: + - platform: vultr + subscription: 123456 +``` + +Full `configuration.yaml` (produces `switch.amazing_server`): +```yaml +switch: + - platform: vultr + name: Amazing Server + subscription: 123456 +``` + +Configuration variables: + +- **subscription** (*Required*): List of droplets you want to control. +- **name** (*Optional*): The name you want to give this switch, defaults to `Vultr {subscription label}` diff --git a/source/_components/vultr.markdown b/source/_components/vultr.markdown new file mode 100644 index 00000000000..411f89f2c52 --- /dev/null +++ b/source/_components/vultr.markdown @@ -0,0 +1,35 @@ +--- +layout: page +title: "Vultr" +description: "Instructions on how to integrate Vultr within Home Assistant." +date: 2017-10-17 21:00 +sidebar: true +comments: false +sharing: true +footer: true +featured: false +ha_category: Hub +ha_release: "0.57" +logo: vultr.png +ha_iot_class: "Cloud Polling" +--- + + +The `vultr` component allows you to access information about and interact with your [Vultr](https://www.vultr.com) subscriptions (Virtual Private Servers) from Home Assistant. + +Obtain your API key from your [Vultr Account](https://my.vultr.com/settings/#settingsapi). + ++Ensure you allow the public IP of Home Assistant under the Access Control heading. +
+ +To integrate your Vultr subscriptions with Home Assistant, add the following section to your `configuration.yaml` file: + +```yaml +vultr: + api_key: ABCDEFG12345 +``` + +Configuration variables: + +- **api_key** (*Required*): Your Vultr API key. diff --git a/source/images/supported_brands/vultr.png b/source/images/supported_brands/vultr.png new file mode 100644 index 00000000000..86595f312c1 Binary files /dev/null and b/source/images/supported_brands/vultr.png differ