Commit Graph
8 Commits
Author SHA1 Message Date
rsvln 75e22e92e9 feat: add an API token for pushing sensor values (#312)
A device can set sensor values with `Authorization: Bearer <token>`
on POST /api/sensor/value while portal authentication stays enabled,
so the portal password is never given to the device.

- the token is 32 random hex chars, created on first boot
- it is accepted only by /api/sensor/value; Basic auth keeps working
- the portal settings show it read-only, with a button to regenerate it
  (POST /api/portal/token/regenerate), which revokes the old one
- GET /api/settings/portal and the backup include `api_token`; posting
  a valid token restores it

The token is kept in NVS rather than in PortalSettings: adding a field
to Settings changes the /settings.conf layout and would reset all
settings on upgrade.
2026-12-06 11:57:58 +03:00
Yurii f6ff8cfe31 * feat: add LAN8720 support (#310)
* feat: add LAN8720 support and extend ESP32 Ethernet profiles

* fix: fit BLE and Ethernet in classic ESP32 OTA slots
2026-12-04 16:34:47 +03:00
Yurii de1e43c707 refactor: rename the Core task manager to App 2026-11-29 11:27:13 +03:00
Yurii cc6131eac9 refactor: define OTA upgrade flag and MQTT mutex inline 2026-11-28 00:19:16 +03:00
Yurii 72a8cd0eb1 fix: adapt Home Assistant discovery to v9 2026-11-25 22:23:59 +03:00
Yurii 8b2678bbbc feat: configure Home Assistant discovery and retry publications 2026-11-25 03:36:56 +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 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