Nomploy Nomad Packs

← All packs

esphome v0.1.0

Automation

ESPHome — build and manage firmware for ESP32/ESP8266 devices from YAML, with a web dashboard, OTA updates, and native Home Assistant integration. Deployed host-networked (for mDNS device discovery) with a config volume.

nomad-pack run esphome --registry nomploy
…or one line (add registry + run)
curl -fsSL https://packs.nomploy.com/install.sh | sh -s -- esphome

Needs nomad-pack on PATH. The script only adds the nomploy registry and runs this pack.

1 task http 6052 1 volume image ghcr.io/esphome/esphome:latest tracks :latest image bumped 27 days ago
Variables 8
values.hcl

Save as values.hcl, edit, then run:

nomad-pack run esphome -f values.hcl --registry nomploy
# The name of the Nomad job.
job_name = "esphome"

# The Nomad namespace to deploy into.
namespace = "default"

# The datacenters to deploy to.
datacenters = ["*"]

# The ESPHome container image. Pin a tag in production.
image = "ghcr.io/esphome/esphome:latest"

# Host port for the ESPHome dashboard.
port = 6052

# Named volume for your device YAML configs and build cache (/config).
data_volume = "esphome_config"

# Placement constraints. Pin to the node holding the volume. On a nomploy cluster: attribute = "$${meta.nomploy_control_plane}", operator = "=", value = "true".
constraints = []

# The task resources (compiling firmware is CPU-heavy).
resources = {
    cpu    = 1000
    memory = 1024
  }
NameTypeDefaultDescription
job_name string
"esphome"
The name of the Nomad job.
namespace string
"default"
The Nomad namespace to deploy into.
datacenters list
["*"]
The datacenters to deploy to.
image string
"ghcr.io/esphome/esphome:latest"
The ESPHome container image. Pin a tag in production.
port number
6052
Host port for the ESPHome dashboard.
data_volume string
"esphome_config"
Named volume for your device YAML configs and build cache (/config).
constraints list
[]
Placement constraints. Pin to the node holding the volume. On a nomploy cluster: attribute = "$${meta.nomploy_control_plane}", operator = "=", value = "true".
resources object
{
    cpu    = 1000
    memory = 1024
  }
The task resources (compiling firmware is CPU-heavy).
Back up this pack

This pack stores data in one Docker named volume: esphome_config

restic

# Run on the node hosting this pack. Point restic at your repo first:
#   export RESTIC_REPOSITORY="s3:https://<account>.r2.cloudflarestorage.com/<bucket>"
#   export RESTIC_PASSWORD="<repo-password>"
#   export AWS_ACCESS_KEY_ID=<key>  AWS_SECRET_ACCESS_KEY=<secret>
restic backup \
  /var/lib/docker/volumes/esphome_config/_data

rclone (sync to S3/R2)

rclone sync /var/lib/docker/volumes/esphome_config/_data backup:<bucket>/esphome_config

Paths assume the default Docker volume location (/var/lib/docker/volumes). Restore by stopping the job, restoring files into the same volume, and re-running the pack.

Readme

esphome

ESPHome — build and manage firmware for ESP32/ESP8266 devices from YAML, with a web dashboard, OTA updates, and native Home Assistant integration.

Deployed host-networked (for mDNS device discovery) with a /config volume.

Deploy

nomad-pack registry add nomploy https://github.com/Nomploy/nomad-packs
nomad-pack run esphome --registry=nomploy

Configure

Variable Default Description
port 6052 Dashboard port.
data_volume esphome_config /config — device YAML + build cache.
image ghcr.io/esphome/esphome:latest Image. Pin a tag in production.
resources { cpu = 1000, memory = 1024 } Task resources (compiling is CPU-heavy).

Create device configs in the dashboard and flash over the network (OTA). The initial flash of a new device usually needs USB on a machine with the device attached. Pairs with the home-assistant and mosquitto packs. Pin the job to the node holding the volume with constraints.