Commit Graph
404 Commits
Author SHA1 Message Date
Yurii fc80e0cd8f fix: stabilize Ethernet and WiFi connectivity
Clean up failed Ethernet initialization and allow retries with updated GPIOs. Preserve AP clients and mDNS during ordinary STA retries, and stop mDNS before destroying network interfaces.

Pause BLE scanning while AP clients are connected, prefetch nearby networks on AP startup, and fix SSID selection for nested WiFi settings. Enable Ethernet in the S3 Mini build.

Validated the S3 build and bench WiFi/MQTT, settings restoration, AP client operation, and BLE pause/resume. The Ethernet module was not connected.
2026-11-24 05:31:05 +03:00
Yurii 4e71915222 feat: merge master Ethernet support into dev
Adapt W5500 to the native network event queue and select STA or ETH from NetworkSettings. Preserve the existing dev network settings and add a separate C6 Ethernet build without BLE to fit the OTA slot.

Validate with S3 and C6 Ethernet firmware builds, the shared LittleFS image, binary layout checks and targeted network transition checks.
2026-11-23 21:06:26 +03:00
Yurii 7e6408ac75 style: resolve cpplint warnings in firmware sources
Place C headers before C++ headers in sensor, metrics, utility and
application sources.

Document the owned cache of the applied MQTT prefix and suppress
runtime/string only for this variable. Preserve MQTT reconfiguration
and prefix buffer cleanup.

Validated with cpplint 2.0.2 over include, lib and src using CI filters.
2026-11-23 19:25:37 +03:00
Yurii c354ecd6e0 fix: correct threshold names across firmware and portal
Use threshold_time for the emergency-mode delay in settings, JSON,
portal forms and all five translations.

Convert legacy tresholdTime backup fields to threshold_time.
Correct the NTC voltage threshold macro names while keeping their limits.
2026-11-23 19:25:37 +03:00
Yurii 93d7ebad28 fix: use unique device defaults and MQTT client identifiers
Allow empty hostname and MQTT prefix defaults to use chip-derived names.
Use the configured MQTT prefix as the broker client identifier.
2026-11-23 19:25:37 +03:00
Yurii 0b07e88812 feat: expose smart heating control across device interfaces
Rename indoor_temp_control to smart_control across firmware, REST,
the dashboard and Home Assistant.

Publish state/master/heating/smart_control over MQTT and remove the
redundant state/master/mqtt/connected topic.
2026-11-23 19:25:37 +03:00
Yurii 78056ce32a refactor: migrate ESP32 firmware to task-managed services
Split the header-based firmware into services for OpenTherm, heating control, sensors, networking, logging, and the portal. Run these services with MycilaTaskManager and use ESP32OT for the boiler bus.

Move MQTT and Home Assistant discovery to Mycila libraries, expose native crash metrics, and align the board profiles and build hooks with the new dependencies.
2026-11-23 19:25:37 +03:00
Elvin Luff f9a814ca11 feat: Implement W5500 SPI ethernet support (#286)
* feat: implement feature gate & w5500 SPI ethernet

* feat: eth conn restart handling, wifi-ap connection type, BLE sensor
gate

* fix: bring eth down when disabled

* fix: disable WiFi scan when ethernet is active

* feat: refactor uplink types into separate classes

* fix: compare enum, not string

* chore: remove dead code

* fix: remove out of scope persistNow(), move w5500 to networksettings,
add base for future ethernet implementations

* fix: keep wifi armed while reconnecting, reset IP when moving from
static to DHCP, refactor wifi loop to use return

* fix: clear out connectionType string for enum
2026-11-11 08:31:36 +03:00
Yurii 0439b6f7c4 perf: replace global buffer with MQTT config URL storage 2026-10-25 04:50:43 +03:00
Yurii b72bccb3d7 refactor: remove ESP8266 support and legacy flash wrappers 2026-10-21 04:34:00 +03:00
Yurii 959a15c11f feat: add authenticated WebSerial log viewer 2026-10-20 07:05:00 +03:00
Yurii c698337b95 fix: always send initial OpenTherm setpoints 2026-10-20 05:26:31 +03:00
Yurii c63b8d44a1 feat: configure OpenTherm channel disabling actions 2026-10-20 05:26:31 +03:00
Yurii 4581ca49cb fix: separate room and heating setpoint state 2026-10-20 05:26:31 +03:00
Yurii cd8764bb97 fix: encode OpenTherm weekdays from one to seven 2026-10-19 20:06:23 +03:00
Yurii f2047b18ba fix: decode heat exchanger temperature as f8.8 2026-10-19 20:05:22 +03:00
Yurii 69ed4ef86c fix: handle BLE initialization failures 2026-10-19 05:24:47 +03:00
Yurii 549dbf4985 fix: reject invalid hostnames safely 2026-10-19 05:22:31 +03:00
Yurii 63aeb2fa25 fix: validate sensor IDs before narrowing 2026-10-19 05:22:30 +03:00
Yurii f613731183 fix: prevent hangs when processing long sensor names 2026-10-19 04:10:21 +03:00
Yurii 85dda5b859 fix: enforce minimum heating setpoint during freeze protection 2026-10-19 03:09:26 +03:00
Yurii c6df5b59cf fix(opentherm): fixes the inability to enable channels if the max modulation level has become zero for some reason 2026-10-12 04:17:33 +03:00
Yurii 9c2e420ec7 refactor: use localtime_r(...) for thread safety 2026-05-17 04:46:47 +03:00
Yurii af2d4624b3 chore: fix cpplint 2026-05-17 04:38:53 +03:00
Yurii db99746ee9 feat: added choice of averaging type for indoor and outdoor temperatures (#244)
* feat: added a choice of averaging type for indoor and outdoor temperatures

* refactor: locales updated

* refactor: some changes
2026-05-16 17:58:13 +03:00
Yurii 2bd3360880 Merge branch 'master' into async 2026-05-11 14:32:24 +03:00
Yurii cbc32fd378 refactor: reworking the freeze protection algorithm (#242)
* refactor: impoved freeze protection

* refactor: reworked freeze protection
2026-05-11 14:26:14 +03:00
Yurii 8186e17912 refactor: BLE scanning instead of connecting to BLE devices (#243)
* refactor: passive scan instead of connecting to BLE devices

* refactor: increased disconnected timeout for sensors

* fix: build for nodemcu32, c3, c6 boards; formatting ``platformio.ini``

* refactor: decreased interval and window for scanning BLE

* refactor: active + passive BLE scanning

* refactor: reduced tasks stack size

* style: formatting

* refactor: improved OTA upgrade

https://github.com/ESP32Async/ESPAsyncWebServer/pull/329

* chore: fix dependencies

* chore: reformat `platformio.ini`

* chore: dependencies fixed

* feat: added support BTHome v2 format for BLE sensors #215

* refactor: cosmetic changes

* fix: move OpenThermTask to 0 core

* chore: minimizing flash size with NimBLE

* chore: dependencies updated
2026-05-10 09:43:48 +03:00
Yurii 3fdb48e016 feat: added support DHT11/DHT22 sensors (#223)
* feat: Added support DHT11/DHT22 sensors

* chore: formatting

* fix: typo

* fix: `HaHelper::publishDynamicSensor()` for DHT sensors fixed

* refactor: optimization of wired sensors
2026-02-16 10:17:38 +03:00
Yurii 11747dd8bd feat: added commit hash 2026-02-16 10:06:26 +03:00
Yurii 9c86ad4427 chore: misc 2026-02-15 05:37:09 +03:00
Yurii ced0385d5b Merge branch 'master' into async 2026-01-26 02:19:54 +03:00
Yurii e4d1ba7d7b refactor: added different timeouts for wired and wireless sensors 2026-01-26 01:03:26 +03:00
Yurii c6518db0d3 Merge branch 'master' into async 2026-01-19 20:48:16 +03:00
Konstantin 10ab75c055 feat: dynamic filenames for backup/debug (#207)
* feat: generate dynamic filenames for JSON file downloads (backup and debug) based on hostname and timestamp

* fix: threadsafe getFilename
2025-12-23 11:32:40 +03:00
Yurii 3b038c4bd1 Merge branch 'master' into async 2025-12-21 12:33:43 +03:00
Yurii a9220d9fa1 refactor: always set temperature to ID 1 2025-12-13 06:25:16 +03:00
Yurii 5a14857f52 refactor: minor changes 2025-12-13 06:21:21 +03:00
Yurii e487c78921 feat: added sensor type "OT, Cooling hours" 2025-12-13 06:17:15 +03:00
Yurii 6c3b79bda1 fix: OT protocol version in JSON of slave fixed 2025-12-13 04:15:48 +03:00
Yurii 348fab39bb refactor: refactoring after #204 2025-12-12 15:21:02 +03:00
inediblePotato f9cb421893 feat: added OT option alwaysSendIndoorTemp, rename nativeHeatingControl to nativeOTC (#204)
* added option to always send the current and target indoor temp, even if the current heating mode doesnt officially need it. This is a direct fix for WeHeat heatpumps which seem to require it.

* add option to AlwaysSendIndoorTemp and rename NativeHeatingControl to
NativeOTC.

Updated locals and settings page.

* change minor order
2025-12-12 15:08:44 +03:00
Yurii eafb33cb6a refactor: fix typo 2025-12-09 21:10:23 +03:00
Yurii 01192a59f5 Advanced hysteresis settings (#201)
* feat: added more hysteresis settings

* fix: heating hysteresis switch fixed

* refactor: added localization for hysteresis
2025-12-09 19:27:47 +03:00
YuriiandP43YM cb8251dd40 Implementation of the new Equitherm algorithm (#146)
* feat: new equitherm algorithm and chart for it (#144)

* refactor: refactoring after #144

* refactor: cosmetic changes (equitherm chart)

* chore: fix typo

* refactor: cosmetic changes

* chore: remove unused files

* chore: resolve conflicts

* refactor: added notes for equitherm parameters

* fix: decimation for Equitherm chart fixed; chartjs updated

* style: HTML code formatting

* chore: added additional description of the ``T`` parameter for Equitherm

* flx: typo

* refactor: after merge

---------

Co-authored-by: P43YM <ip43ym@gmail.com>
2025-12-09 19:27:12 +03:00
Yurii e573ce582f fix: generation of default_entity_id for HA fixed 2025-11-12 20:21:39 +03:00
Yurii 1d7f85f462 refactor: migrating from Telnet to WebSerial for remote logging 2025-11-06 13:29:59 +03:00
Yurii d4603aa0de fix: compatibility with HA 2025.10+ fixed #189 2025-11-02 23:43:02 +03:00
Yurii d576969ea4 refactor: initial async web server 2025-11-02 11:28:46 +03:00
Yurii b9010643f0 feat: added GPIO inversion setting for extpump 2025-10-31 21:08:35 +03:00