Open-source ESP32 touchscreen smart thermostat
A cloud-free smart thermostat on an ESP32: touchscreen control, Home Assistant integration and forecast-aware heating behaviour, with the full build documented.

Key Facts
- Chip: ESP32-S3-WROOM-1 (16 MB flash)
- UI: 3.2in ILI9341 touchscreen with XPT2046 touch, no buttons
- Integration: Home Assistant over MQTT on both firmwares; Matter is an optional build profile on the original, and the alt firmware adds a native HA integration
- Output: HVAC relay control (5 relays, 2-stage capable)
- Power: harvested from the 24 VAC HVAC line, no separate supply
- Licences: original firmware GPL-3.0; alt firmware PolyForm Noncommercial 1.0.0 (PCB GPL-3.0)
About This Project
This open-source thermostat runs locally, without a cloud service: it connects over Wi-Fi to Home Assistant, is configured on a touchscreen, and adjusts its behaviour based on the weather forecast — suggesting open windows when outdoor conditions align, and pausing HVAC when doors or windows are open. Stefan Meisner's design is a complete custom PCB built around an ESP32-S3 module with 16 MB of flash, a 3.2-inch ILI9341 display with XPT2046 touch, an AHT20 temperature and humidity sensor, optional LD2410 presence radar, and power harvested directly from the 24 VAC HVAC wiring. It switches live HVAC circuits, so wiring knowledge is required. One open hardware design, two actively maintained firmware projects.
The original firmware: native ESP-IDF
Meisner's smart-thermostat is a native ESP-IDF application driven through PlatformIO, with the touchscreen UI drawn in LVGL and no mechanical buttons behind a hardware master-reset circuit. It integrates with Home Assistant over native MQTT, balances rooms with remote sensors, watches thermal-rise degradation to flag clogged filters, and serves a local web interface that was modernized in release v0.9.2 (November 2026) — it can now complete configuration, stream logs and live stats, and auto-upgrade the thermostat's firmware from GitHub. Matter over Wi-Fi is available since v0.9.0 as an optional build profile: a separate firmware-matter.bin release that replaces MQTT rather than running alongside it, requires IPv6 on the network, and still carries development-default commissioning credentials. The standard build remains MQTT plus Home Assistant, and the project's own feature list still describes Matter as a future milestone.
The alternative firmware: Home Assistant first
Jonn Taylor's Smart-Thermostat-Alt-Firmware targets the same PCB with a rewritten, feature-dense codebase on the Arduino framework. The thermostat appears in Home Assistant automatically via MQTT auto-discovery, and a bidirectional 7-day schedule sync keeps edits made on the device and in Home Assistant in step. Release v2.0.001 (November 2026) adds a second, native integration path: a token-protected local API with mDNS discovery, an installable Home Assistant custom integration, and a bundled dashboard card, with MQTT still available. It ships prebuilt binaries, adds hydronic heating support with water-temperature interlocks, multi-stage HVAC with short-cycling prevention, and tooling to keep schedules in sync across multiple thermostats. The licence differs from the original: the alternative firmware is PolyForm Noncommercial 1.0.0 (documentation CC BY-NC-SA; the PCB design stays GPL-3.0), so commercial reuse of that firmware is not permitted.
Build and integration depth
Both repositories go deeper than the usual maker README: full KiCad PCB sources and a production BOM for the board, a step-by-step toolchain walkthrough for the original (whose author notes the build steps are not fully verified on every release), a user manual and MQTT schedule-sync protocol documentation in the alternative repo, plus a Home Assistant integration and dashboard card with their own tests. Migrating between the two firmwares on the same board requires erasing the flash first. The Home Assistant community thread that announced the project in January 2024 remains a single post — the build and integration detail lives in the two repositories.
What we checked, and when: the two repositories were read through GitHub's API on November 29, 2026 — the original firmware at release v0.9.2 with its GPL-3.0 licence taken from the licence file, the alternative at v2.0.001 — and every vendor price in the parts list below was re-checked against live listings that same day. What we have not done is build or run either firmware: the feature descriptions above are the makers' own claims from their documentation, and the alternative author's multi-thermostat verification is his self-report.
Source & Attribution

How to Build It
Parts Needed
- ESP32 module or the project's PCB
- Touchscreen display
- Temperature/humidity sensor
- Relays for heating, cooling and fan (low-voltage 24VAC HVAC)
- 24VAC HVAC wiring (power is harvested on the thermostat board, no separate supply)
Steps
- 1
Assemble the hardware
Build the PCB or wire the ESP32, touchscreen, sensor and relays according to the repo's schematics. HVAC control wiring is 24VAC; switch the breaker off before touching it.
- 2
Set up PlatformIO
The firmware is pure ESP-IDF but builds through PlatformIO. Open the repo in VS Code with PlatformIO and let it fetch the libraries pinned in platformio.ini.
- 3
Build and flash
Do a clean build (the partition scheme has changed between versions), then upload over USB. If you are switching an already-flashed board between the two firmwares, erase the flash first.
- 4
Configure on the device
Use the touchscreen to join Wi-Fi and set your HVAC options, then add your MQTT broker so Home Assistant can see it.
- 5
Tips
You can telnet into the thermostat for config and monitoring. It has no password, so keep it on a trusted network.
Bill of Materials
Parts list
5 parts · 3 linked
Heads up: some Buy links are affiliate links. If you buy through one, MCU Atlas may earn a small commission at no extra cost to you. It never changes which parts we list. How this works
1× ESP32-S3-WROOM-1-N16 module (bare, soldered to the PCB)
1× 3.2in ILI9341 touch TFT with XPT2046
The design specifies the 3.2-inch ILI9341 module with XPT2046 touch. Confirm the driver and touch before ordering — marketplace batches sometimes ship the pin-compatible ST7789 or the no-touch MSP3217. In stock at $5.00–13.59 across AliExpress, siqma and Amazon (checked 2026-11-29); no Mouser/Digi-Key channel for this exact module.
5× HVAC relays
Five relays on the shipped PCB: KEMET UC2-3NJ signal relays, NRND at Mouser ($2.324 each, 3,205 left, checked 2026-11-29). The alt firmware also documents an external 5 V relay-module path — an 8-channel module covers all five circuits at $8.99 (checked 2026-11-29).
1× Custom PCB fabrication (5 boards, 2-layer)
Not included: 3D-printed case, wire, solder, USB cable, custom-PCB passives order (SMD passives, connectors, USB-C jack, LM2596T-5 and AMS1117 regulators — LCSC, roughly 40 lines), shipping, optional LD2410 presence sensor, optional DS18B20 water-temperature sensor, 24 VAC bench transformer for testing without HVAC wiring
Related Projects






