Repository navigation
After a year of development, OTGateway 2.0.0 is ready! 🎉
Thank you to everyone who tested the firmware, reported bugs, and helped with translations.
ESP8266 support has reached end of life (EOL). This was a difficult decision, but it allows me to keep developing the project.
The final release for these boards is 1.6.0. There will be no further releases or bug fixes for ESP8266.
What's Changed
New firmware architecture
The firmware architecture has been completely redesigned for 2.0.0. Boiler communication, sensor polling, heating control, and networking now run in separate task groups with their own schedules.
The redesign focuses on asynchronous libraries and non-blocking operations so that tasks share CPU time more evenly. This lets the gateway respond faster when data changes and publish updates to MQTT without delay.
- The firmware now uses less heap memory, which should improve stability. On boards with PSRAM, more allocations use external memory, freeing up space on the internal heap.
- The gateway now communicates with OpenTherm devices using ESP32OT, a library developed specifically for OTGateway. The ESP32's RMT hardware handles both transmission and reception, making the connection more reliable.
In 24-hour test runs, we saw almost no invalid responses from OpenTherm devices! - The firmware has been updated to Arduino-ESP32 4.0.0 and ESP-IDF 6.1.1.
Boards and networking
- OTGateway now supports Ethernet through a W5500 SPI module. Prebuilt firmware with Ethernet support is available for the S3 Mini (
s3_mini) and ESP32-C6 (esp32_c6_ethernet). (#286) - Added a
elvinhome_thrm_onebuild for the Elvinhome THRM ONE. It comes with the OpenTherm and W5500 pins preconfigured, along with the input for a 10 kΩ NTC indoor temperature sensor. (#295) - When you set up Wi-Fi through the gateway's access point, you stay connected while the gateway retries its connection to the router.
- Firmware size is now checked automatically for every supported board.
- Test builds from the
devbranch are published automatically to the unstable release.
Heating and OpenTherm
- You can now choose how to turn off central heating, domestic hot water (DHW), and the second heating circuit (CH2) independently.
Some boilers stop the circulation pump as soon as the heating circuit is switched off. On boilers that support it, you can now turn off heating with a zero water temperature setpoint so the pump can finish its overrun cycle.
More details: Disabling a circuit - The gateway's freeze protection has been reworked. It now activates without the previous delay and has a separate upper threshold for switching off. The web interface and Home Assistant now show when protection is active. (#242)
- The PID controller now uses MycilaPID. This fixes excessive buildup of the integral term. (#292)
- Fixed the Equitherm weather compensation curve calculation at the limits of the temperature range.
- Fixed an issue that could prevent heating or DHW from restarting when the maximum modulation limit was zero.
Sensors
- For indoor and outdoor temperature sensors, you can now choose how to combine readings using the average, lowest, or highest value. (#244)
- Added support for DHT11 and DHT22 temperature and humidity sensors. (#223)
- Spurious 85 °C readings from DS18B20 sensors are now filtered out. (#217)
- OTGateway now listens for BLE advertisements and reads sensor values without connecting to each sensor. This reduces power consumption and helps the sensor batteries last longer.
Supported formats are ATC1441, PVVX, and unencrypted BTHome v2. (#243)
MQTT, Home Assistant, and REST API
- MQTT clients now receive changes to settings and gateway state immediately, without waiting for the next scheduled publication.
- Each value now has its own MQTT topic.
More details: MQTT reference - The Home Assistant discovery prefix is now configurable. When Home Assistant restarts, the gateway republishes the entity configurations.
- The REST API has been reworked. Each settings section now has its own endpoint at
/api/settings/<section>. To read a sensor value, useGET /api/sensor/value?id=N.
More details: REST API reference - External systems can now send readings to
MANUALsensors through the REST API. Example POST request
Web interface and diagnostics
- The web interface and REST API now use an asynchronous web server.
- The filename of each settings backup now includes the gateway's hostname and the date and time the JSON file was saved. #207
- During a browser update, the gateway checks that each image has been uploaded in full. If the connection drops, it aborts the incomplete write.
More details: Firmware updates - WebSerial replaces Telnet for log access. You can view, filter, and download logs directly in your browser.
More details: Logs - After an ESP32 crash, you can download the core dump through the web interface and analyze it on your computer using the script in the repository.
Documentation
The documentation has been completely rewritten for 2.0.0! It now covers every OTGateway feature, with examples and guides ranging from wiring up a board to configuring heating, setting up automations, and diagnosing problems. It's available in both English and Russian.
- The MQTT reference covers topics and commands, and the REST API reference covers methods and request formats.
Both include examples of reading sensor values, changing settings, and sending readings from external sensors. - The integration guides include a ready-to-use template for HOMEd and a module for Wiren Board.
- The Home Assistant blueprints for reporting temperatures from a sensor or a weather integration have been updated. They now resend readings periodically, even when the temperature stays the same.
More details: Home Assistant blueprints
Upgrading from 1.6.0
- Back up your settings before updating your ESP32.
- Download the 2.0.0 firmware and filesystem images for your board.
- On the “Upgrade” page, select both files and click “Upgrade”.
- After the gateway restarts, reload the page in your browser.
- Restore your settings from the backup. The web interface converts the old settings format automatically.
More details: Upgrade guide
- If you changed the hysteresis action, select the circuit disabling action again in OpenTherm settings.
- If you use °F, check the heating hysteresis, PID deadband, and Equitherm curve shift after restoring your backup.
More details: Units of measurement - When updating your integrations, check your MQTT topics and REST API endpoints. For Home Assistant, keep the gateway's existing MQTT prefix and check your heating and PID entities.
More details: MQTT and Home Assistant migration - Sensors configured as “Manual via MQTT/API” are marked as disconnected after 10 minutes without an update. Automations should send readings periodically, even when the value hasn't changed.
More details: Sending readings from another system
New Contributors
- @cstantin made their first contribution in #207
- @weblate made their first contribution in #245
- @Eelviny made their first contribution in #286
Full Changelog: 1.6.0...v2.0.0