Flash Firmware on ESP32
Requirements
- Windows PC (for the official Homatic Flash Tool)
- USB data cable (not charge-only)
- USB-Serial driver (CH340 / CP2102)
Steps
1. Download Flash Tool
From the project repository: flash-tool/ — build or download the release from Homatic.
2. Connect ESP32
- Plug ESP32 into USB.
- Open Device Manager and confirm a COM port appears (for example COM3).
3. Run the tool
- Open Homatic Flash Tool.
- Select the correct COM Port.
- Choose the firmware file (
.binor path fromfirmware/esp32-smarthome). - (Optional) Set
DEVICE_NAMEin the sketch before build to matchesp32_namein the dashboard.
4. Flash
- Click Flash.
- Wait for Done or Success (typically 30–90 seconds).
- Reset the ESP32 (RESET button).
5. Verify
- Complete WiFi provisioning.
- Monitor Serial output: WiFi connected + MQTT connected.
Troubleshooting
| Error | Fix |
|---|---|
| Failed to connect | Hold BOOT during flash; try another cable/port |
| Timed out | Lower baud rate in advanced settings |
| Wrong chip | Select ESP32 (not ESP8266) |