From 135115b27ad415865458f20965b0e14253eba0ec Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Mon, 31 Aug 2026 09:49:50 +0200 Subject: feat: aggregate five Tasmota plugs with cost and daily history Proxy Tasmota energy JSON into Homepage's customapi widget, which can render JSON but cannot do arithmetic. Applies the tariff, sums across plugs, and records the per-day history the plugs do not keep. Plugs are fetched in parallel; sequential polling would stack five timeouts into a 25s hang. An offline plug is reported rather than counted as zero, so a dead sensor cannot read as "consumed nothing". Tasmota exposes only Today/Yesterday/Total, so each poll writes yesterday's finished kWh into SQLite keyed (day, plug), making repeat polls and restarts idempotent. Display strings are preformatted server-side: Homepage's locale formatting renders 1593 W as an ambiguous "1,593", and its widget has no columns, so pairing kWh with its cost in one value is what keeps the cards compact. --- CLAUDE.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 CLAUDE.md (limited to 'CLAUDE.md') diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 0000000..520fddc --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1,8 @@ +# tasmota-dash + +See @AGENTS.md for everything: architecture, endpoints, deployment, plug +calibration and the Tasmota command gotchas. + +This file is intentionally thin. AGENTS.md is the single source of truth, +shared across every agent tool. Do not duplicate content here, edit AGENTS.md +instead. -- cgit v1.2.3