43 Commits

Author SHA1 Message Date
adebaumann e7a0f0890f ESP Compilation weirdness fixed 2026-07-07 23:37:20 +02:00
adebaumann 75acb4a6b2 Documentation cards added 2026-07-06 10:51:52 +02:00
adebaumann 8e054ca1ec Arduino 3 later commit 2026-07-06 10:51:38 +02:00
adebaumann 558a12340a Merge commit 2026-07-05 23:25:47 +02:00
adebaumann d4745997dc Update platform version and enhance WiFi handling
- Set platform version to espressif32@^6.10.0 for all environments
- Add applyWifiTxPower function to adjust TX power for ESP32-C3
- Implement handleNotFound function for improved HTTP 404 handling
2026-07-05 23:18:17 +02:00
adebaumann aa977e7c89 Migrate all ESP32 envs to Arduino-ESP32 3.x (pioarduino)
The registry espressif32 platform still ships Arduino core 2.0.17, which
lacks ESP32-C6 support. Switch every ESP32 env to the pioarduino fork
(Arduino-ESP32 3.x) via a shared ${common.platform_esp32} variable and
consolidate shared settings into [env].

Rewrite the PWM code for the 3.x LEDC API:
- ledcSetup + ledcAttachPin -> ledcAttach(pin, freq, res)
- ledcDetachPin -> ledcDetach
- ledcWrite now addresses PWM by pin instead of channel index

Adds the esp32-c6-devkitc-1 env; all four ESP32 envs build clean.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-05 00:24:11 +02:00
adebaumann 82621398b0 More debugging 2026-07-04 22:23:42 +02:00
adebaumann 547f9a42b4 Display multiple meters in tabbed interface 2026-07-04 20:35:28 +02:00
adebaumann c55eea0e14 Label for username added 2026-07-04 20:30:25 +02:00
adebaumann bec0d8d31a Add logo header to web UI, matching Device-Framework layout 2026-07-04 13:00:52 +02:00
adebaumann e64f1c1b85 Framework updated 2026-07-03 20:43:46 +02:00
adebaumann ee73a0f9ba Merge pull request 'Fix meter lifecycle and MQTT/HA integration bugs' (#1) from fix-attach-meters-detach into main
Reviewed-on: #1
2026-06-26 23:53:15 +00:00
adebaumann 96998fb9e2 Persist MQTT settings when disabling MQTT 2026-06-27 01:48:35 +02:00
adebaumann b10c89505c Retain HA command messages so values survive restarts 2026-06-27 01:44:32 +02:00
adebaumann acf63a3753 Escape < and > in escHtml to prevent stored XSS 2026-06-27 01:44:32 +02:00
adebaumann eafdf87563 Wire MQTT availability into HA discovery 2026-06-27 01:40:57 +02:00
adebaumann 409eeb4895 Allow anonymous MQTT broker connections 2026-06-27 01:39:26 +02:00
adebaumann 5450d21c34 Shorten MQTT probe timeout to limit web server stalls 2026-06-27 01:36:47 +02:00
adebaumann a09f1dec87 Clear retained HA discovery for removed meters 2026-06-27 01:34:57 +02:00
adebaumann 5bfe3890f2 Detach freed PWM channels in attachMeters() 2026-06-27 01:33:48 +02:00
adebaumann 9169bb0cb1 Clear reset counter after power-on delay to prevent false factory reset 2026-06-27 01:25:31 +02:00
adebaumann 8443260190 Update README.md 2026-06-26 08:02:33 +00:00
adebaumann 7ad099dc80 Redirect to root after handling configuration changes 2026-06-24 00:22:45 +02:00
adebaumann 3e79542304 Remove authentication requirement from handleSet function 2026-06-24 00:19:53 +02:00
adebaumann 0bf7c3a463 Remove currentValue from MeterConfig and related factory reset logic 2026-06-24 00:15:17 +02:00
adebaumann 9fb424fd68 Update factory reset procedure in README and main.cpp for clarity and functionality 2026-06-24 00:10:38 +02:00
adebaumann c57c0c93fd Add factory reset functionality and update README instructions 2026-06-23 23:53:23 +02:00
adebaumann a08cc5e779 Update switch styling and adjust hostname parameter initialization 2026-06-23 23:42:01 +02:00
adebaumann a3c7d9aa28 Authentication added 2026-06-23 23:39:43 +02:00
adebaumann aed0d1a13e Not saving to flash anymore (flash wear prevention) 2026-06-19 22:50:26 +02:00
adebaumann 36a638230f Scale as SVG with text (requires GOST font) and paths added 2026-06-15 10:37:19 +02:00
adebaumann 16c38e51c1 Scale template added 2026-06-15 10:03:05 +02:00
adebaumann 1f89e70808 Documentation moved to the root directory 2026-06-15 00:29:08 +02:00
adebaumann 9a54c8142e Range mapped, documentation added 2026-06-15 00:10:53 +02:00
adebaumann 097da42ea3 MQTT: add HA auto-discovery, meter metadata, drop maxduty
- Add name/unit/range fields per meter (saved to config, shown in web form)
- Publish Home Assistant MQTT discovery configs for each meter (number entity)
- Add MQTT_MANUFACTURER constant at top of file
- Increase PubSubClient buffer to 1024 bytes for discovery payloads
- Remove maxduty from MQTT subscription and HA discovery
- Publish current state on MQTT connect and on MQTT-set changes
2026-06-14 23:08:58 +02:00
adebaumann e20ef2ffbb MQTT works 2026-06-14 22:19:41 +02:00
adebaumann 0e01b0a333 Debug logging added 2026-06-14 22:09:53 +02:00
adebaumann 955fd24df6 MQTT - not working properly yet 2026-06-14 22:08:16 +02:00
adebaumann 42a4c89eee Float for value 2026-06-14 21:34:16 +02:00
adebaumann 168d740595 MVP 2026-06-14 18:50:09 +02:00
adebaumann dc39b3dc53 Hostname, Webserver, MDNS added 2026-06-14 16:51:37 +02:00
adebaumann a60797ff7c Base code with wifi and captive portal 2026-06-14 16:37:57 +02:00
adebaumann 42c1b51862 Initial commit 2026-06-14 14:06:18 +00:00