Repository navigation
Installation and upgrade
English · Русский
Installation uses 2 images — the firmware and the filesystem containing the web interface. Both must be for your ESP32 board, from the same version and build environment. A configured device needs a settings backup before updating.
The compatibility table lists each board's build environment. For example, the files for s3_mini have the following names.
| Filename pattern | Use |
|---|---|
firmware_s3_mini_<version>.factory.bin |
First installation or serial recovery. The image includes the bootloader, partition table and application. |
filesystem_s3_mini_<version>.bin |
Matching web interface and filesystem, used for both first installation and an upgrade. |
firmware_s3_mini_<version>.bin |
Application update through the web interface's firmware field. |
Ready-to-install files are attached to each release. Development builds can also be built from the corresponding source checkout.
- Open the OTGateway Web Flasher on your computer in a browser that supports Web Serial, such as Chrome or Edge.
- Select the firmware Version, then select your Board. If your version or board is missing, use the ESP Flash Download Tool.
- Connect the ESP32 to your computer by USB or through a USB-to-UART adapter.
- Click Connect. In the browser dialog, select the board’s serial port and confirm the connection.
- Click Flash and wait for the write to finish.
- Restart the ESP32, then set up Wi-Fi and check the OpenTherm connection.
Warning
ERASE clears the board’s entire flash memory. Before erasing flash or writing the filesystem on a configured device, make a settings backup.
- Download the Flash Download Tool for Windows and extract the archive.
- From the OTGateway release, download the firmware image ending in
.factory.binand the filesystem image for your board. The example below usess3_miniwith the standard partition layout. In the filenames,<version>stands for the release number. - Start the tool. In ChipType, select your board’s chip (ESP32-S3 for
s3_mini). In WorkMode, select Develop. - On the SPIDownload tab, select the firmware image
firmware_s3_mini_<version>.factory.binin the first row. Enter0x0as the address and check the box for that row. - In the second row, select the filesystem image
filesystem_s3_mini_<version>.bin. Enter0x370000as the address and check the box. - Connect the ESP32 to your computer by USB or through a USB-to-UART adapter. Select the board’s port in COM and set BAUD to
921600. - If you want to erase the entire flash before installing, click ERASE and wait for it to finish.
- Click START and wait for both images to finish writing.
- Restart the ESP32, then set up Wi-Fi and check the OpenTherm connection.
Source builds use PlatformIO with the checkout for the desired version. The web interface requires Node.js with npm. The project's build workflow uses Python 3.13 and Node.js 22.
The board environment is built from the project root. The command for S3 mini is:
pio run -e s3_miniThe build for your PlatformIO board environment runs Gulp, builds the filesystem and copies the versioned artifacts into build/. Later core dump analysis requires the corresponding .elf alongside the binaries.
The Backup button on the web interface's Upgrade page saves settings before an update. The browser downloads a JSON backup of your settings.
Warning
GET /api/backup/save exports network, settings and sensors, including Wi-Fi, web interface and MQTT credentials. The JSON must be stored privately.
- Download the firmware and filesystem images for your board from the same release.
- On the Upgrade page, select the files in Firmware and Filesystem, then click Upgrade. Wait for writing to finish and the ESP32 to restart. For serial flashing, use the addresses given in the selected release's instructions.
- Reopen the web interface and reload the page so the browser uses the new scripts. If replacing the filesystem reset the network settings, connect to the OTGateway access point and configure Wi-Fi.
The filesystem contains the web pages and scripts. Both images need to be updated together so that their versions match.
- On the Upgrade page, select the saved JSON backup and click Restore. Wait for the device to restart.
- Check network access, units and GPIO assignments. Under Sensors settings, check names, types and addresses, then check the readings on the Dashboard.
- Check the control mode, temperature limits, setpoints and disabled circuits.
The web interface converts older settings to the current format when restoring a JSON backup.
Important
Settings are restored through several requests. If restoration stops partway, accepted changes remain applied. A retry needs to account for the sections already restored.
A JSON containing only the required sections allows a partial restore. A sensor's settings are matched by its numeric ID.
After updating, applications and automations need to use the current topics and command addresses. The MQTT reference lists topics and access rights. The sensor examples explain how to supply readings from another system.
The previous MQTT prefix lets Home Assistant recognize the device. The Climate and PID entities used in dashboards and automations may need to be checked after an update. Changing a setting from Home Assistant provides a simple check: OTGateway should return the new value.
If many entities on the device page are unavailable after updating, the instructions for refreshing the OTGateway entity list in Home Assistant explain the recovery procedure.