Paulus Schoutsen 25eb15e1a2 5.2.0
2021-11-15 21:54:57 -08:00
2021-05-30 22:44:21 -07:00
2021-11-09 23:50:18 -08:00
2021-11-14 21:42:33 -08:00
2021-05-30 22:44:21 -07:00
2021-06-04 00:41:17 -07:00
2021-05-27 07:57:20 -07:00
2021-11-15 21:54:57 -08:00
2021-11-15 21:54:57 -08:00
2021-11-15 21:54:57 -08:00
2021-05-30 22:27:47 -07:00
2021-08-30 20:36:37 -07:00

ESP Web Tools

Allow flashing ESPHome or other ESP-based firmwares via the browser. Will automatically detect the board type and select a supported firmware.

<esp-web-install-button
  manifest="firmware_esphome/manifest.json"
></esp-web-install-button>

Manifest definition:

{
  "name": "ESPHome",
  "version": "2021.10.3",
  "home_assistant_domain": "esphome",
  "builds": [
    {
      "chipFamily": "ESP32",
      "parts": [
        { "path": "bootloader.bin", "offset": 4096 },
        { "path": "partitions.bin", "offset": 32768 },
        { "path": "ota.bin", "offset": 57344 },
        { "path": "firmware.bin", "offset": 65536 }
      ]
    },
    {
      "chipFamily": "ESP32-C3",
      "parts": [
        { "path": "esp32-c3.bin", "offset": 0 },
      ]
    },
    {
      "chipFamily": "ESP32-S2",
      "parts": [
        { "path": "esp32-s2.bin", "offset": 0 },
      ]
    },
    {
      "chipFamily": "ESP8266",
      "parts": [
        { "path": "esp8266.bin", "offset": 0 },
      ]
    }
  ]
}

Styling

Attributes

The following attributes are automatically added to <esp-web-install-button> and can be used for styling:

Attribute Description
install-supported Added if installing firmware is supported
install-unsupported Added if installing firmware is not supported

CSS custom properties (variables)

The following variables can be used to change the colors of the default UI elements:

  • --esp-tools-button-color
  • --esp-tools-button-text-color

Slots

The following slots are available:

Slot name Description
activate Button to start the flash progress
unsupported Message to show when the browser is not supported
not-allowed Message to show when not a secure context

Development

Run script/develop. This starts a server. Open it on http://localhost:5001.

Description
Open source tools to allow working with ESP devices in the browser
Readme Apache-2.0 12 MiB
Languages
TypeScript 63.7%
Python 17.5%
HTML 17.2%
JavaScript 0.9%
Dockerfile 0.7%