Repository navigation
Conversation
Signed-off-by: Segran <goran@andersson-stehag.se>
Signed-off-by: Segran <goran@andersson-stehag.se>
Related EV regulation field test — 17 October 2026 (CEST)Personal v0.145.2-beta.1 revision 4, derived from #1675 head A controlled test for #1674/#1675 observed 6.209 kW EV charging with a 7,500 W import cap (7.058 kW grid import), an intentional stop with a 3,000 W cap, and automatic recovery to 10.328 kW after disabling the cap, without a cable reconnect or manual Start/Resume. Follow-up at 03:16:49 reported Following and no further stop in that observation interval. This verifies that bounded charging-control scenario, not the history fix. The test's history rows, invalid_balance occurrences, daily estimate provenance and recording coverage still need inspection, followed by a longer charging period. The earlier additive historical repair remains an estimate; this test does not recover missing measurements or establish that all asynchronous balance failures are prevented. The import cap is now disabled because the user currently has no peak-tariff requirement. The configured 25 A per-phase main-fuse protection remains in place. Keep #1667/#1668 open pending history verification and review. |
Longer field/history check — 17 October 2026, 12:27 CESTThe car now reports the requested 80% SoC (vehicle reading about 105 minutes old at inspection), and retained session delivery is approximately 42.73 kWh. Current command and actual charging are both zero; the command reason is This is not a continuous, interruption-free charging result. At 05:49:15, with the import ceiling disabled, the controller issued a below-minimum zero offer: grid 12,323 W, eligible EV credit 0 W, phase bound approximately 2,449.5 W, minimum 4,140 W. Aggregated history shows EV zero from 05:49:25 through 05:50:25 and positive power again at 05:50:40 (10.230 kW by 05:50:45). This documents later recovery in telemetry; it does not independently establish whether any user action occurred or whether that zero decision was physically justified. Other short zero/low-power intervals also exist. The initial controlled test remains passed, but long-term stability and that later decision's raw alignment/phase evidence still need investigation. History API review (
Thus #1668's deployed daily estimate is present while rejected instantaneous rows remain visible; live balance failures are not eliminated. This API inspection does not independently audit every estimate-table entry, exact missing interval or database provenance. No database repair or hardware/configuration change was made in this check. |
Problem and result
Closes #1667.
A brief negative household-power residual currently makes
load_whunknown for the entire local day. Preserve the rejected instantaneous samples, but retain signed source-balance energy in a separate estimate table. Daily totals can use that evidence when its coverage exactly matches the affected energy rows; the API and History label the resulting household total as estimated.Report recorded time alongside the requested period so actual offline/writer gaps remain visible. Negative daily totals and estimates exceeding both two minutes and 5% of recorded time remain unknown.
Scope and safety
masteratd0e0144ca66c31d8c8b71461a251b92e8c7909a1. Open Add EV charging energy and costs for day, week and month #1547 has right of way onweb/energy-history.js; this change touches the daily summary/insights rather than its EV-cost implementation. feat(api): expose charging evidence to clients and Ask why #1337, feat(history): show EV charging energy and cost for 7 and 30 days #1546 and fix(drivers): restart a driver that stays offline #1628 also touchapi.go; these changes are confined tohandleEnergyDaily. Rebase as those branches land; no other branch was rewritten.Verification
make verify, 727 web tests, targeted signed-balance/coverage regressions, ARM64 build, and runtime API verification passed.a77dc66, based on currentmaster:make verifypassed (Go suites, protocol suites, vet and build), and all 727 web tests passed. The release Docker-context check was skipped because no Docker daemon is available. The History quality renderer test now includes the new recording-coverage helper. GitHub CI is still running.Checklist