AUDIO
Listen to this page
Chapters
esphome — device provisioning from the browser
Bringing new ESP hardware into the home must be possible without SSH or command line: the user builds/flashes their ESP board and connects it as a first-class device. The esphome plugin is the reference example of a plugin that is not core code and ships its own admin page.
Installation
Select the plugin in the installer; the admin page is available at
#/pui/esphomeimmediately.Optional: the local compile service (~+2 GB — esphome CLI or the lightweight
esphome-buildcontainer):docker compose --profile flash up -dor set
ESPHOME_CMD(Env variables screen) to a locally installed esphome CLI (pip install esphome). With neither configured the "Compile & flash" button explains itself.
What the plugin contains
- Predefined configurations — ready-to-flash YAML configs for popular holai roles (voice satellite, relay light, climate sensor). Each preset has a name, description and the YAML code; presets are read-only.
- Config library screen:
- Choose a predefined (or custom) configuration — see code + description.
- Edit — opening a predefined config for editing always creates a new copy (custom entry); custom configs are edited in place.
- Delete custom configurations (presets cannot be deleted).
- Download the YAML as a file.
- Install on a device — see below.
- Custom configurations are stored in the central db (row
plugin-esphome-configsviactx.sqlStore, survives plugin updates), never inside the plugin folder.
Installing on a device
The plugin UI shows two install buttons per configuration; both keep "minimal user actions" — everything happens in the browser from the dashboard:
| Button | Requirement | How it works |
|---|---|---|
| Install via ESPHome Web (default) | none (browser + internet) | Opens the hosted flashing service web.esphome.io — connect the device over USB, Web Serial flashes it |
| Compile & flash (optional) | a compiler configured via env vars | The plugin compiles on the server, serves the artifacts with an ESP Web Tools manifest and the page shows the native flash wizard |
The direct-compile backend is deliberately optional (the esphome toolchain is a ~2 GB download used infrequently).
Compile endpoints (admin only): POST /api/v1/plugins/esphome/build/:id,
GET /api/v1/plugins/esphome/build/:id/manifest (ESP Web Tools manifest),
GET .../parts/:file — artifacts are copied into the plugin's data dir so
the browser only talks to the core while flashing.
Scope & security
- The plugin never talks to a real device itself; the browser is the flasher (Web Serial). No dangerous operations from the server side.
- Config write/delete routes require
admin; the voice tool part can only read (the agent can answer "which device configs do we have").
Last updated: October 2026