Digital Ocean


The Digital Ocean integrationIntegrations connect and integrate Home Assistant with your devices, services, and more. [Learn more] allows you to access the information about your Digital Ocean droplets from Home Assistant.

There is currently support for the following device types within Home Assistant:

Setup

Obtain your API key from your Digital Ocean dashboard.

Configuration

To integrate your Digital Ocean droplets with Home Assistant, add the following section to your configuration.yamlThe configuration.yaml file is the main configuration file for Home Assistant. It lists the integrations to be loaded and their specific configurations. In some cases, the configuration needs to be edited manually directly in the configuration.yaml file. Most integrations can be configured in the UI.[Learn more] file. After changing the configuration.yamlThe configuration.yaml file is the main configuration file for Home Assistant. It lists the integrations to be loaded and their specific configurations. In some cases, the configuration needs to be edited manually directly in the configuration.yaml file. Most integrations can be configured in the UI.[Learn more] file, restart Home Assistant to apply the changes. To view the changes, go to Settings > Devices & services > Entities.

# Example configuration.yaml entry
digital_ocean:
  access_token: YOUR_API_KEY

Configuration Variables

access_token string Required

Your Digital Ocean API access token.

Binary sensor

The digital_ocean binary sensor platform allows you to monitor your Digital Ocean droplets.

Configuration

To use your Digital Ocean droplets, you first have to set up your Digital Ocean hub and then add the following to your configuration.yamlThe configuration.yaml file is the main configuration file for Home Assistant. It lists the integrations to be loaded and their specific configurations. In some cases, the configuration needs to be edited manually directly in the configuration.yaml file. Most integrations can be configured in the UI.[Learn more] file:

# Example configuration.yaml entry
binary_sensor:
  - platform: digital_ocean
    droplets:
      - 'fedora-512mb-nyc3-01'
      - 'coreos-512mb-nyc3-01'

Configuration Variables

droplets list Required

List of droplets you want to monitor.

Switch

The digital_ocean switch platform allows you to control (start/stop) your Digital Ocean droplets.

Configuration

To use your Digital Ocean droplets, you first have to set up your Digital Ocean hub and then add the following to your configuration.yamlThe configuration.yaml file is the main configuration file for Home Assistant. It lists the integrations to be loaded and their specific configurations. In some cases, the configuration needs to be edited manually directly in the configuration.yaml file. Most integrations can be configured in the UI.[Learn more] file:

# Example configuration.yaml entry
switch:
  - platform: digital_ocean
    droplets:
      - 'fedora-512mb-nyc3-01'
      - 'coreos-512mb-nyc3-01'

Configuration Variables

droplets list Required

List of droplets you want to control.