Commit Graph
100 Commits
Author SHA1 Message Date
Yurii 2b110929b7 build: fit C3 firmware in OTA slots 2026-11-30 06:24:01 +03:00
Yurii e6646bb25a fix: reject wildcards in MQTT prefix 2026-11-30 04:36:43 +03:00
Yurii 6eb1ef6ae7 chore: update Mycila deps and lower Equitherm threshold 2026-11-30 03:47:24 +03:00
Yurii 657892a067 fix: reorder sensor includes 2026-11-30 02:01:13 +03:00
Yurii 58806dbcca build: name generated asset tasks 2026-11-30 01:15:11 +03:00
Yurii 40905cf0a1 refactor: move status LED task to the system manager 2026-11-30 01:15:10 +03:00
Yurii d7554f2fa1 fix: synchronize Home Assistant discovery subscriptions
Reuse Discovery through its device and base topic setters. Handle HA status subscriptions and prefix changes in the discovery task.
2026-11-30 01:15:10 +03:00
Yurii 5fcf0af96d fix: validate complete numeric command payloads 2026-11-30 01:15:09 +03:00
Yurii 981cfefe74 fix: enforce a gap between freeze protection thresholds 2026-11-30 01:15:08 +03:00
Yurii 9f66402548 fix: align settings controls with API limits 2026-11-30 01:15:08 +03:00
Yurii 7c6e85b3f6 fix: normalize floating-point settings before validation 2026-11-30 01:15:07 +03:00
Yurii ff07bdcdca refactor: move Bluetooth scan callbacks into bluetooth.hpp 2026-11-29 14:43:28 +03:00
Yurii 4004927ecd refactor: simplify task configuration and registration 2026-11-29 11:27:13 +03:00
Yurii d19f6aaa52 refactor: start task managers in their owning modules 2026-11-29 11:27:13 +03:00
Yurii de1e43c707 refactor: rename the Core task manager to App 2026-11-29 11:27:13 +03:00
Yurii 7f57af0129 feat: configure the task watchdog for 60 seconds at startup 2026-11-29 11:27:13 +03:00
Yurii 62d40bdbf0 fix: enforce safe minimum equitherm exponent 2026-11-29 10:24:21 +03:00
Yurii 86adbc0db7 fix: enforce minimum heating hysteresis 2026-11-29 10:24:06 +03:00
Yurii be6bbab16a fix: replace GyverPID with MycilaPID
fix #292
2026-11-29 10:23:23 +03:00
Yurii 108594f2d9 fix: initialize sensor names and group header includes
Value-initialize sensor name buffers so newly constructed settings start
with an empty, NUL-terminated name instead of uninitialized bytes.

Group standard C and C++ headers before Arduino and ESP-IDF headers,
keeping project headers last.
2026-11-29 05:48:37 +03:00
Yurii 05906b5eb7 refactor: clarify settings labels and section notes
Shorten Home Assistant discovery translation keys and explain device
prefixes and forced publication intervals in all five locales. Put interval
units in the help text and visually separate discovery settings.

Move emergency guidance to the section level and update its translation
path and placement below the fields without changing the help text.
2026-11-29 05:43:53 +03:00
Yurii d40b7cb85a feat: publish MQTT field changes with periodic refresh
Track 89 settings and state fields with partial structure snapshots and a
fixed-capacity map of publication timestamps. Publish changed or expired
values in bounded passes, updating snapshots only after successful queue
acceptance and keeping failed fields eligible for retry.

Refresh fields after reconnecting and affected temperatures after unit or
Equitherm mode changes. Keep the status heartbeat independent, cache DHW
limits for MQTT and API consumers, and clear non-finite retained readings.

Default the forced publication interval to 60 seconds and accept 15 to
3600 seconds in the API and UI. Set Home Assistant state expiration to
twice this interval and refresh discovery when the interval changes.

Remove network connection and dedicated fault/diagnostic availability
publications. Use existing active states and RSSI for HA availability.
2026-11-29 05:43:52 +03:00
Yurii a629589122 fix: normalize setting changes and reject non-finite control values
Round settings to their stored precision before detecting changes and
applying relevant range checks. Accept the minimum sensor factor of 0.09.

Handle matching NaNs and infinities consistently in float comparisons.
Reject non-finite OpenTherm setpoints and PID results before they affect
heating control.
2026-11-29 05:43:52 +03:00
Yurii 09b5f6c9e0 refactor: streamline portal responses and request handling
Return download responses from the filename helper and simplify response
construction while preserving JSON lengths, authentication and body limits.

Move RequestInterface to shared types, clarify route comments and group
validation and OTA branches consistently.
2026-11-29 05:43:51 +03:00
Yurii 8fba88636e fix: accept form posts for manual sensor values
Accept form submissions alongside the existing JSON sensor value endpoint
for compatibility with the manual sensor use case discussed in PR #270.
Support named value and unnamed body parameters with strict numeric parsing
and bounded input lengths. Preserve authentication, unit conversion, MQTT
publication and noresponse handling.

Share payload trimming and numeric parsing between HTTP and MQTT instead
of maintaining separate parser implementations.

Refs #270
2026-11-29 05:43:51 +03:00
Yurii cc6131eac9 refactor: define OTA upgrade flag and MQTT mutex inline 2026-11-28 00:19:16 +03:00
Yurii aa7385c70f refactor: separate board defaults in PlatformIO environments 2026-11-27 22:58:11 +03:00
Yurii 53e5dedfc6 feat: allow build-time overrides for NTC sensor defaults 2026-11-27 22:21:01 +03:00
Yurii a3c3b4faa9 feat: log MQTT publication outcomes 2026-11-26 05:49:03 +03:00
Yurii d1240ad5f6 refactor: use the DHT callback error status 2026-11-25 23:52:51 +03:00
Yurii a8d7f137eb build: use registry releases for TaskManager and ESP32OT 2026-11-25 22:24:39 +03:00
Yurii aeac5bf726 refactor: use unique_ptr for the MQTT client 2026-11-25 22:24:21 +03:00
Yurii 72a8cd0eb1 fix: adapt Home Assistant discovery to v9 2026-11-25 22:23:59 +03:00
Yurii e56dd1de11 docs: expand README navigation links 2026-11-25 07:11:39 +03:00
Yurii 18a51351ff fix: rename development release tag to unstable 2026-11-25 05:13:29 +03:00
Yurii 7dc803bd99 refactor: clarify CH2 setpoint scheduling 2026-11-25 03:54:55 +03:00
Yurii 1d1a57ecad refactor: simplify conditions and standardize formatting 2026-11-25 03:37:16 +03:00
Yurii d1a44de0df fix: clarify state change delay labels 2026-11-25 03:37:06 +03:00
Yurii 8b2678bbbc feat: configure Home Assistant discovery and retry publications 2026-11-25 03:36:56 +03:00
Yurii 65df4b7f5a fix: harden configuration and runtime state handling 2026-11-25 03:36:46 +03:00
Yurii f3f8ce5861 docs: exclude prereleases from version badge 2026-11-24 06:47:22 +03:00
Yurii 64e7069376 docs: emphasize wiki navigation categories 2026-11-24 06:34:33 +03:00
Yurii 9f3190734e feat: use custom board titles in web flasher
Define custom_title for each PlatformIO environment and pass resolved titles from prepare to release. Use titles as manifest display names while keeping artifact filenames tied to environment IDs and versions.

Reject missing or blank titles. Validated with 17 local checks, including resolved PlatformIO inheritance and quoted Unicode titles.
2026-11-24 06:30:00 +03:00
Yurii 880dab3f33 docs: refresh README wiki navigation
Group current wiki pages and section links into a single categorized tree. Add the Russian wiki entry point and replace the obsolete temperature sensor link.

Validated all 69 Documentation links against wiki revision d67d4dd.
2026-11-24 06:16:21 +03:00
Yurii 25fd973326 fix: regenerate web flasher manifest with release assets
Generate webflasher.json from the build matrix and matching factory/filesystem artifacts before replacing release assets. Use environment IDs as board names and the fixed filesystem address 0x370000.

Reject incomplete or ambiguous artifact sets and replace the manifest alongside firmware assets. Validated with 11 local checks across all 9 environments, including prefix overlaps, added/removed targets, version mismatches, and workflow wiring.
2026-11-24 05:54:25 +03:00
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 bab5f46ff5 docs: move project assets to the wiki repository 2026-11-24 03:35:31 +03:00
Yurii 8a86a69c64 docs: allow task-specific overrides of confidentiality restrictions 2026-11-24 03:35:23 +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 f11b238b34 fix: publish development releases from the dev branch 2026-11-23 19:35:38 +03:00
Yurii f88392f6a1 docs: add adapter enclosure photo and preview 2026-11-23 19:25:37 +03:00
Yurii fa3d388ffe fix: skip duplicate checks on pull request updates 2026-11-23 19:25:37 +03:00
Yurii 0ab78aa783 fix: download TinyUSB sources using SDK revisions
Download lib-builder and TinyUSB source snapshots directly using the
revisions in the installed SDK versions.txt. Avoid the GitHub REST lookup
without maintaining a separate set of commit pins.

Check the archive commit ID, extract the required files and reuse completed
downloads. Incomplete extraction is retried on the next invocation.
2026-11-23 19:25:37 +03:00
Yurii 44a599f5b2 fix: recover missing source revisions in S2 TinyUSB builds
Resolve missing SDK revisions to their full GitHub commit IDs and fetch
those commits explicitly before checkout. Keep using the matching source
revision when upstream branches no longer expose it.

Always materialize the requested checkout, including fresh no-checkout
clones whose HEAD already matches the pinned revision. Cached commits
continue to work without API requests.
2026-11-23 19:25:37 +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 97ac190bef fix: support clean SDK builds and portable C6 compiler flags
Create the SDK source directory before pioarduino populates it so its
project generator supplies app_main when Arduino autostart is disabled.

Skip TinyUSB setup for S2 clean targets before accessing SDK packages.
Move C6 constexpr attributes into a forced include header to preserve the
size optimizations across SDK metadata parsing and POSIX shell execution.
2026-11-23 19:25:37 +03:00
Yurii 8fafa7fa45 docs: organize and refresh wiki illustrations
Move active board, adapter and Home Assistant images into assets/wiki.
Add English and Russian screenshots for weather compensation and
manual outdoor temperature configuration.

Remove unused legacy assembly and connection pictures.
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 31fe7268ac refactor: remove unused code from firmware, portal and build scripts
Remove the unused sensor connection getter, slug prefix and suffix helpers, UTC conversion and array formatting routines. Drop unused shared strings and the CONFIG_URL macro.

Remove setupUpgradeForm from the shared browser bundle. The upgrade page registers its own submit handler.

Delete the obsolete Python gzip packer and its import. Gulp handles compression when building the web assets.
2026-11-23 19:25:37 +03:00
Yurii 5d8126d6ef docs: update the third-party library list in Gratitude
Replace retired dependencies with the libraries used by the firmware and credit the upstream esp32DHT project.
2026-11-23 19:25:37 +03:00
Yurii 03aef73ff0 feat: add offline ESP32 core dump analysis
Decode native ESP-IDF core dumps against a matching firmware ELF. Report the target, build identity, task stacks, registers, and saved heap metrics with the PlatformIO GDB toolchain.
2026-11-23 19:25:37 +03:00
Yurii e16bbda28f feat: update the web portal for the new firmware APIs
Restore legacy backups through the settings APIs, update the dashboard and sensor controls, and keep translations in sync. Package the backup converter separately and wait for all compressed web assets before building LittleFS.
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
Yurii c817f87d6f build: enforce the firmware size limit before creating factory images
Reject images that exceed the application slot, propagate esptool failures, and run the build workflow when the PlatformIO hooks change.
2026-11-23 19:25:37 +03:00
Yurii 10f1f6e278 chore: document project engineering and coding conventions
Record the ESP32 development, verification, and coding guidelines. Keep local engineering notes out of Git while retaining the directory placeholder.
2026-11-23 19:25:37 +03:00
Yurii 0439b6f7c4 perf: replace global buffer with MQTT config URL storage 2026-10-25 04:50:43 +03:00
Yurii 353452784f chore: revert README 2026-10-21 14:04:08 +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 734615e7b5 fix: pin Python version for firmware builds 2026-10-20 05:52:08 +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 16308866ce fix: render API strings as text to prevent XSS 2026-10-19 20:05:57 +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 9cf10201f6 fix: preserve sensor names as strings 2026-10-19 05:22:31 +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 ab5b96c970 fix: render scanned Wi-Fi names as text 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 451fe92b7a chore: bump dependencies and fix build for ESP32 C6 2026-10-14 00:17:22 +03:00
Yurii 1695e1ea0d chore: fix build for ESP32 C6 2026-10-13 03:36:59 +03:00
Yurii 00a80f82f1 chore: bump dependencies 2026-10-12 05:44:17 +03:00
Yurii e95045b9b6 Merge branch 'master' into async 2026-10-12 05:42:21 +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 54217fbbc1 chore(git): fix update notes for dev release 2026-05-21 13:37:51 +03:00
Yurii 69116aa3d2 chore(git): fix update of dev tag 2026-05-21 13:27:38 +03:00
Yurii bb6b3f1854 chore(git): update build workflow 2026-05-21 13:16:30 +03:00
Yurii a4ca20f9a9 fix(portal): fix i18n name for extPump.invertState 2026-05-19 23:25:24 +03:00
Yurii 07650b4878 refactor: improved dashboard & restore settings 2026-05-19 21:39:29 +03:00
Yurii ffcacb3d48 fix: translation for volume unit 2026-05-19 19:42:29 +03:00
Yurii bdfa793c49 chore: update build workflow 2026-05-18 00:36:30 +03:00
Yurii 25280bf9b1 chore: added build workflow 2026-05-17 19:32:27 +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