home-assistant.io/source/_components/switch.digital_ocean.markdown
2016-10-10 09:06:59 +02:00

33 lines
848 B
Markdown

---
layout: page
title: "Digital Ocean Switch"
description: "Instructions on how to set up Digital Ocean switches within Home Assistant."
date: 2016-09-24 08:00
sidebar: true
comments: false
sharing: true
footer: true
logo: digital_ocean.png
ha_category: Switch
ha_release: "0.30"
ha_iot_class: "Local Polling"
---
The `digital_ocean` switch platform allows you to control (start/stop) your Digital Ocean droplets.
To use your Digital Ocean droplets, you first have to set up your [Digital Ocean hub](/components/digital_ocean/) and then add the following to your `configuration.yaml` file:
```yaml
# Example configuration.yaml entry
switch:
- platform: digital_ocean
droplets:
- 'fedora-512mb-nyc3-01'
- 'coreos-512mb-nyc3-01'
```
Configuration variables:
- **droplets** (*Required*): List of droplets you want to control.