[![GitHub version](https://img.shields.io/github/release/Laxilef/OTGateway.svg)](https://github.com/Laxilef/OTGateway/releases) [![GitHub download](https://img.shields.io/github/downloads/Laxilef/OTGateway/total.svg)](https://github.com/Laxilef/OTGateway/releases/latest) [![Translations](https://hosted.weblate.org/widget/otgateway/svg-badge.svg)](https://hosted.weblate.org/engage/otgateway/) [![License](https://img.shields.io/github/license/Laxilef/OTGateway.svg)](LICENSE.txt) [![Telegram](https://img.shields.io/badge/Telegram-Channel-33A8E3)](https://t.me/otgateway)

![Dashboard](/assets/poster-1.png) ![Configuration](/assets/poster-2.png) ![Integration with HomeAssistant](/assets/poster-3.png) ## Features - DHW temperature control - Heating temperature control - Smart heating temperature control modes: - PID - Equithermic curves - adjusts the temperature based on indoor and outdoor temperatures - Hysteresis setting _(for accurate maintenance of room temperature)_ - Ability to connect [additional (external) sensors](https://github.com/Laxilef/OTGateway/wiki/Sensors#temperature-sensors): Dallas (1-wire), NTC 10k, Bluetooth (BLE). Makes it possible to monitor indoor and outdoor temperatures, temperatures on pipes/heat exchangers/etc. - Emergency mode. In any dangerous situation _(loss of connection with Wifi, MQTT, sensors, etc)_ it will not let you and your home freeze. - Ability of remote fault reset _(not with all boilers)_ - Diagnostics: - Displaying gateway status - Displaying the connection status to the boiler via OpenTherm - Displaying the fault status and fault code - Displaying the diagnostic status & diagnostic code - Display of the process of heating: works/does not work - Display of burner (flame) status: on/off - Display of burner modulation level in percent - Display of pressure in the heating system - Display of current temperature of the heat carrier - Display of return temperature of the heat carrier - Display of setpoint heat carrier temperature (useful when using PID or Equitherm) - Display of the process of DHW: working/not working - Display of current DHW temperature - _And other information..._ - [Home Assistant](https://www.home-assistant.io/) integration via MQTT. The ability to create any automation for the boiler! ## Documentation All available information and instructions can be found in the wiki: [English](https://github.com/Laxilef/OTGateway/wiki) · [Русский](https://github.com/Laxilef/OTGateway/wiki/Home.RU). * **Installation and updates** * [First installation](https://github.com/Laxilef/OTGateway/wiki/Installation#first-installation) * [Web Flasher](https://github.com/Laxilef/OTGateway/wiki/Installation#web-flasher) * [ESP Flash Download Tool](https://github.com/Laxilef/OTGateway/wiki/Installation#esp-flash-download-tool) * [Build from source](https://github.com/Laxilef/OTGateway/wiki/Installation#build-from-source) * [Update firmware and filesystem](https://github.com/Laxilef/OTGateway/wiki/Installation#update-firmware-and-filesystem) * [Settings backup and restore](https://github.com/Laxilef/OTGateway/wiki/Installation#settings-backup-and-restore) * [Save the settings](https://github.com/Laxilef/OTGateway/wiki/Installation#save-the-settings) * [Restore the settings](https://github.com/Laxilef/OTGateway/wiki/Installation#restore-the-settings) * [MQTT and Home Assistant migration](https://github.com/Laxilef/OTGateway/wiki/Installation#mqtt-and-home-assistant-migration) * **Hardware** * [ESP32 boards](https://github.com/Laxilef/OTGateway/wiki/Boards) * [Boilers](https://github.com/Laxilef/OTGateway/wiki/Boilers) * [OpenTherm adapters](https://github.com/Laxilef/OTGateway/wiki/Adapters) * [Adapters on sale](https://github.com/Laxilef/OTGateway/wiki/Adapters#adapters-on-sale) * [DIY](https://github.com/Laxilef/OTGateway/wiki/Adapters#diy) * [Files for production](https://github.com/Laxilef/OTGateway/wiki/Adapters#files-for-production) * [Connection](https://github.com/Laxilef/OTGateway/wiki/Adapters#connection) * [LEDs on board](https://github.com/Laxilef/OTGateway/wiki/Adapters#leds-on-board) * **Configuration** * [Basic settings](https://github.com/Laxilef/OTGateway/wiki/Settings) * [First connection](https://github.com/Laxilef/OTGateway/wiki/Settings#first-connection) * [Wi-Fi and Ethernet](https://github.com/Laxilef/OTGateway/wiki/Settings#network) * [Web interface access](https://github.com/Laxilef/OTGateway/wiki/Settings#web-interface-access) * [System settings](https://github.com/Laxilef/OTGateway/wiki/Settings#system-settings) * [Units of measurement](https://github.com/Laxilef/OTGateway/wiki/Settings#units-of-measurement) * [Time and timezone](https://github.com/Laxilef/OTGateway/wiki/Settings#time-and-timezone) * [Status indicator](https://github.com/Laxilef/OTGateway/wiki/Settings#status-indicator) * [Logs](https://github.com/Laxilef/OTGateway/wiki/Settings#logs) * [OpenTherm](https://github.com/Laxilef/OTGateway/wiki/Settings#opentherm) * [Sensors](https://github.com/Laxilef/OTGateway/wiki/Sensors) * [Sensor types](https://github.com/Laxilef/OTGateway/wiki/Sensors#sensor-types) * [Common setup](https://github.com/Laxilef/OTGateway/wiki/Sensors#common-setup) * [OpenTherm](https://github.com/Laxilef/OTGateway/wiki/Sensors#opentherm) * [Dallas (1-Wire)](https://github.com/Laxilef/OTGateway/wiki/Sensors#dallas-1-wire) * [NTC 10 kΩ](https://github.com/Laxilef/OTGateway/wiki/Sensors#ntc-10-kω) * [DHT11 / DHT22](https://github.com/Laxilef/OTGateway/wiki/Sensors#dht11--dht22) * [Bluetooth](https://github.com/Laxilef/OTGateway/wiki/Sensors#bluetooth) * [MANUAL](https://github.com/Laxilef/OTGateway/wiki/Sensors#manual) * [Sensor purpose](https://github.com/Laxilef/OTGateway/wiki/Sensors#sensor-purpose) * [Reading correction and filtering](https://github.com/Laxilef/OTGateway/wiki/Sensors#reading-correction-and-filtering) * [Readings from another system](https://github.com/Laxilef/OTGateway/wiki/Sensors#readings-from-another-system) * [Heating, DHW and controllers](https://github.com/Laxilef/OTGateway/wiki/Heating) * [Circuit options and limits](https://github.com/Laxilef/OTGateway/wiki/Heating#circuit-options-and-limits) * [Temperature averaging](https://github.com/Laxilef/OTGateway/wiki/Heating#temperature-averaging) * [Direct control](https://github.com/Laxilef/OTGateway/wiki/Heating#direct-control) * [Equitherm](https://github.com/Laxilef/OTGateway/wiki/Heating#equitherm) * [Curve parameters](https://github.com/Laxilef/OTGateway/wiki/Heating#curve-parameters) * [Tune the curve](https://github.com/Laxilef/OTGateway/wiki/Heating#tune-the-curve) * [PID](https://github.com/Laxilef/OTGateway/wiki/Heating#pid) * [Tune PID using indoor temperature](https://github.com/Laxilef/OTGateway/wiki/Heating#tune-pid-using-indoor-temperature) * [Using Equitherm with PID](https://github.com/Laxilef/OTGateway/wiki/Heating#using-equitherm-with-pid) * [Native weather compensation (native OTC)](https://github.com/Laxilef/OTGateway/wiki/Heating#native-weather-compensation-on-the-slave-device-native-otc) * [Heating hysteresis](https://github.com/Laxilef/OTGateway/wiki/Heating#heating-hysteresis) * [Turbo mode](https://github.com/Laxilef/OTGateway/wiki/Heating#turbo-mode) * [Protections and automation](https://github.com/Laxilef/OTGateway/wiki/Automation) * [Protections and emergency mode](https://github.com/Laxilef/OTGateway/wiki/Automation#protections-and-emergency-mode) * [Overheat protection](https://github.com/Laxilef/OTGateway/wiki/Automation#overheat-protection) * [Freeze protection](https://github.com/Laxilef/OTGateway/wiki/Automation#freeze-protection) * [Emergency mode](https://github.com/Laxilef/OTGateway/wiki/Automation#emergency-mode) * [Cascade control](https://github.com/Laxilef/OTGateway/wiki/Automation#cascade-control) * [Input](https://github.com/Laxilef/OTGateway/wiki/Automation#input) * [Output](https://github.com/Laxilef/OTGateway/wiki/Automation#output) * [External circulation pump](https://github.com/Laxilef/OTGateway/wiki/Automation#external-circulation-pump) * **Integrations** * [MQTT](https://github.com/Laxilef/OTGateway/wiki/MQTT) * [Connection settings](https://github.com/Laxilef/OTGateway/wiki/MQTT#connection-settings) * [Topic structure and access](https://github.com/Laxilef/OTGateway/wiki/MQTT#topic-structure-and-access) * [State topics](https://github.com/Laxilef/OTGateway/wiki/MQTT#state-topics) * [Settings](https://github.com/Laxilef/OTGateway/wiki/MQTT#settings) * [Sensor topics](https://github.com/Laxilef/OTGateway/wiki/MQTT#sensor-topics) * [Examples](https://github.com/Laxilef/OTGateway/wiki/MQTT#examples) * [REST API](https://github.com/Laxilef/OTGateway/wiki/REST) * [Endpoints](https://github.com/Laxilef/OTGateway/wiki/REST#endpoints) * [Settings](https://github.com/Laxilef/OTGateway/wiki/REST#settings) * [Network](https://github.com/Laxilef/OTGateway/wiki/REST#network) * [Sensors](https://github.com/Laxilef/OTGateway/wiki/REST#sensors) * [Examples](https://github.com/Laxilef/OTGateway/wiki/REST#examples) * [Home Assistant](https://github.com/Laxilef/OTGateway/wiki/HomeAssistant) * [Connection](https://github.com/Laxilef/OTGateway/wiki/HomeAssistant#connection) * [Report a temperature sensor](https://github.com/Laxilef/OTGateway/wiki/HomeAssistant#report-a-temperature-sensor) * [Report outdoor weather temperature](https://github.com/Laxilef/OTGateway/wiki/HomeAssistant#report-outdoor-weather-temperature) * [DHW meter](https://github.com/Laxilef/OTGateway/wiki/HomeAssistant#dhw-meter) * [HOMEd](https://github.com/Laxilef/OTGateway/wiki/HOMEd) * [Connect](https://github.com/Laxilef/OTGateway/wiki/HOMEd#connect) * [Heating and DHW control](https://github.com/Laxilef/OTGateway/wiki/HOMEd#heating-and-dhw-control) * [Sensors](https://github.com/Laxilef/OTGateway/wiki/HOMEd#sensors) * [Supply a temperature to OTGateway](https://github.com/Laxilef/OTGateway/wiki/HOMEd#supply-a-temperature-from-homed-to-otgateway) * [Diagnostics](https://github.com/Laxilef/OTGateway/wiki/HOMEd#diagnostics) * [Migrate an existing integration](https://github.com/Laxilef/OTGateway/wiki/HOMEd#migrate-an-existing-integration) * [WirenBoard](https://github.com/Laxilef/OTGateway/wiki/WirenBoard) * [Connection](https://github.com/Laxilef/OTGateway/wiki/WirenBoard#connection) * [Available functions](https://github.com/Laxilef/OTGateway/wiki/WirenBoard#available-functions) * [Device parameters](https://github.com/Laxilef/OTGateway/wiki/WirenBoard#device-parameters) * [Sensors](https://github.com/Laxilef/OTGateway/wiki/WirenBoard#sensors) * [Diagnostics](https://github.com/Laxilef/OTGateway/wiki/WirenBoard#diagnostics) * **Other** * [FAQ and troubleshooting](https://github.com/Laxilef/OTGateway/wiki/FAQ) * [Installation and connection](https://github.com/Laxilef/OTGateway/wiki/FAQ#installation-and-connection) * [Heating and hot water](https://github.com/Laxilef/OTGateway/wiki/FAQ#heating-and-hot-water) * [Sensors](https://github.com/Laxilef/OTGateway/wiki/FAQ#sensors) * [MQTT and Home Assistant](https://github.com/Laxilef/OTGateway/wiki/FAQ#mqtt-and-home-assistant) * [Logs and debug](https://github.com/Laxilef/OTGateway/wiki/FAQ#logs-and-debug) * [Core dump analysis](https://github.com/Laxilef/OTGateway/wiki/Coredump) * [Windows (PowerShell)](https://github.com/Laxilef/OTGateway/wiki/Coredump#windows-powershell) * [Linux (shell)](https://github.com/Laxilef/OTGateway/wiki/Coredump#linux-shell) * [What the report contains](https://github.com/Laxilef/OTGateway/wiki/Coredump#what-the-report-contains) * [Finding the likely cause](https://github.com/Laxilef/OTGateway/wiki/Coredump#finding-the-likely-cause) ## Translations The project uses [Weblate](https://hosted.weblate.org/new-lang/otgateway/) to manage translations of the interface.
Anyone is welcome to add their native language as a [new localization](https://hosted.weblate.org/new-lang/otgateway/portal/). All contributions are welcome! Translation status ## Gratitude * To the developers of the libraries used: [ArduinoJson](https://github.com/bblanchon/ArduinoJson), [NimBLE-Arduino](https://github.com/h2zero/NimBLE-Arduino), [MycilaMQTT](https://github.com/mathieucarbou/MycilaMQTT), [MycilaHADiscovery](https://github.com/mathieucarbou/MycilaHADiscovery), [AsyncTCP](https://github.com/ESP32Async/AsyncTCP), [ESPAsyncWebServer](https://github.com/ESP32Async/ESPAsyncWebServer), [MycilaWebSerial](https://github.com/mathieucarbou/MycilaWebSerial), [MycilaTaskManager](https://github.com/mathieucarbou/MycilaTaskManager), [FileData](https://github.com/GyverLibs/FileData), [MycilaUtilities](https://github.com/mathieucarbou/MycilaUtilities), [GyverBlinker](https://github.com/GyverLibs/GyverBlinker), [OneWireNg](https://github.com/pstolarz/OneWireNg), [DallasTemperature](https://github.com/milesburton/Arduino-Temperature-Control-Library) & [esp32DHT](https://github.com/bertmelis/esp32DHT) * To the [PlatformIO](https://platformio.org/) Team * To the team and contributors of the [pioarduino](https://github.com/pioarduino/platform-espressif32) project * To the [BrowserStack](https://www.browserstack.com/) team. This project is tested with BrowserStack. * To the [PVS-Studio](https://pvs-studio.com/pvs-studio/?utm_source=website&utm_medium=github&utm_campaign=open_source) - static analyzer for C, C++, C#, and Java code. * And of course to the contributors for their contribution to the development of the project!