Allow flashing ESPHome or other ESP-based firmwares via the browser. Will automatically detect the board type and select a supported firmware. See website for full documentation.
<esp-web-install-button
manifest="firmware_esphome/manifest.json"
></esp-web-install-button>Example manifest:
The optional serialType field ("cdc" or "uart") lets you ship separate firmware variants for chips that support both native USB CDC (built-in USB) and external USB-to-UART bridges. The correct variant is selected automatically based on the detected connection. Builds without a serialType are used as a fallback for any connection type.
{
"name": "ESPHome",
"version": "2021.10.3",
"home_assistant_domain": "esphome",
"funding_url": "https://esphome.io/guides/supporters.html",
"builds": [
{
"chipFamily": "ESP32",
"parts": [
{ "path": "bootloader_dout_40m.bin", "offset": 4096 },
{ "path": "partitions.bin", "offset": 32768 },
{ "path": "boot_app0.bin", "offset": 57344 },
{ "path": "esp32.bin", "offset": 65536 }
]
},
{
"chipFamily": "ESP32-C3",
"parts": [
{ "path": "bootloader_dout_40m.bin", "offset": 0 },
{ "path": "partitions.bin", "offset": 32768 },
{ "path": "boot_app0.bin", "offset": 57344 },
{ "path": "esp32-c3.bin", "offset": 65536 }
]
},
{
"chipFamily": "ESP32-S2",
"parts": [
{ "path": "bootloader_dout_40m.bin", "offset": 4096 },
{ "path": "partitions.bin", "offset": 32768 },
{ "path": "boot_app0.bin", "offset": 57344 },
{ "path": "esp32-s2.bin", "offset": 65536 }
]
},
{
"chipFamily": "ESP32-S3",
"serialType": "uart",
"parts": [
{ "path": "bootloader_dout_40m.bin", "offset": 4096 },
{ "path": "partitions.bin", "offset": 32768 },
{ "path": "boot_app0.bin", "offset": 57344 },
{ "path": "esp32-s3.bin", "offset": 65536 }
]
},
{
"chipFamily": "ESP32-S3",
"serialType": "cdc",
"parts": [
{ "path": "bootloader_dout_40m.bin", "offset": 4096 },
{ "path": "partitions.bin", "offset": 32768 },
{ "path": "boot_app0.bin", "offset": 57344 },
{ "path": "esp32-s3-cdc.bin", "offset": 65536 }
]
},
{
"chipFamily": "ESP8266",
"parts": [
{ "path": "esp8266.bin", "offset": 0 }
]
}
]
}Top-level fields:
| Field | Required | Description |
|---|---|---|
name |
Required | Name of the firmware. Shown in the install dialog and compared with the firmware name reported by the device (via Improv Serial). |
version |
Required | Version of the firmware. The only version field: it applies to all builds, builds have no version of their own. |
builds |
Required | List of builds, at least one. See the build fields below. |
home_assistant_domain |
Optional | Home Assistant integration domain. If present, the user is linked to add the device to Home Assistant. |
funding_url |
Optional | Link to a page explaining how users can fund development. |
new_install_prompt_erase |
Optional | Set to true to let the user choose whether to erase all data on a new installation. |
new_install_improv_wait_time |
Optional | Seconds to wait for an Improv Serial response after first install. Defaults to 10, 0 disables detection. |
summary |
Optional | OTA release notes for every build. Read by device firmware, ignored by ESP Web Tools. |
release_url |
Optional | OTA release page for every build. Read by device firmware, ignored by ESP Web Tools. |
$schema |
Optional | URL of the JSON Schema, for editor validation. Ignored by ESP Web Tools. |
Each entry in builds:
| Field | Required | Description |
|---|---|---|
chipFamily |
Required | Chip family of the build, for example ESP32-S3. Selected automatically based on the connected device. |
parts |
Required | Files to write to the flash. See the part fields below. |
serialType |
Optional | cdc (native USB) or uart (USB-to-UART bridge). Builds without it are a fallback for any connection type. |
ota |
Optional | OTA firmware for this build. Read by device firmware, ignored by ESP Web Tools. |
Each entry in parts:
| Field | Required | Description |
|---|---|---|
path |
Required | Path or URL of the file, relative to the path of the manifest. |
offset |
Required | Offset in bytes on the flash where the file is written (a non-negative integer). |
The ota object of a build (see OTA updates):
| Field | Required | Description |
|---|---|---|
path |
Required | URL or path of the OTA firmware binary. |
md5 |
Required | MD5 hex digest (32 hex characters) of the OTA firmware binary. |
summary |
Optional | Release notes. Overrides the top-level summary. |
release_url |
Optional | Link to the release page. Overrides the top-level release_url. |
version only exists at the top level of the manifest. A build is selected by its chipFamily (and serialType if set), so a build cannot carry its own version. To offer two variants of the firmware for the same chip, for example a standard and an enhanced one, publish a separate manifest for each and give each its own install button.
A JSON Schema for the manifest is published at https://esphome.github.io/esp-web-tools/manifest.schema.json. Reference it with a $schema key to get validation and autocomplete in editors that support JSON Schema:
{
"$schema": "https://esphome.github.io/esp-web-tools/manifest.schema.json",
"name": "My Firmware",
"version": "1.0.0",
"builds": [
{
"chipFamily": "ESP32",
"parts": [{ "path": "esp32.bin", "offset": 0 }]
}
]
}The manifest can also describe over-the-air (OTA) updates, so a device that is already installed can check the same manifest for a newer version and update itself. ESP Web Tools ignores these fields. They are for the firmware on the device, and any firmware can read them. ESPHome's http_request update platform is one implementation.
{
"name": "My Firmware",
"version": "1.2.0",
"summary": "Bug fixes and a new sensor.",
"release_url": "https://example.com/releases/1.2.0",
"builds": [
{
"chipFamily": "ESP32",
"parts": [{ "path": "esp32.factory.bin", "offset": 0 }],
"ota": {
"path": "esp32.ota.bin",
"md5": "0123456789abcdef0123456789abcdef"
}
},
{
"chipFamily": "ESP32-C3",
"parts": [{ "path": "esp32-c3.factory.bin", "offset": 0 }],
"ota": {
"path": "esp32-c3.ota.bin",
"md5": "fedcba9876543210fedcba9876543210"
}
}
]
}ota(per build, optional): the OTA firmware for that build. A device updating over the air uses the build matching its chip, so that build needs anotablock. Builds without it still work for browser installs.path(required): URL or path of the OTA firmware binary. A fullhttp(s)URL is used as-is, a leading/is relative to the manifest's host, otherwise it is relative to the manifest's directory.md5(required): MD5 hex digest of that binary.summary(optional): release notes.release_url(optional): link to the release page.
summaryandrelease_url(top level, optional): set once for every build, so a manifest with many chips does not repeat the release notes. A value inside a build'sotablock overrides the top-level one. Firmware that predates the top-level form only readsota.summaryandota.release_url, so it will not show the notes if they are only at the top level (the update itself still works). ESPHome reads the top-level form from 2026.12.0.
Run script/develop. This starts a server. Open it on http://localhost:5001.
The website is index.html and 404.html with the assets in static.
script/build_website renders them into website/dist, which is what GitHub
Pages serves. That build is also where the analytics snippet in
website/plausible-analytics.html gets inlined, so it is not part of the pages
you see while developing.
