You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug(mpc): diagnostic LOAD column misses EV charge power — operators see phantom exports #174
So a real slot looks like `LOAD 1.6 + EV 4.0 = 5.6 total consumption, battery covers all 5.6, grid ≈ 0`. "Never exports" is honoured.
Root cause
`diagnose.go:100–121` (`buildDiagnostic`) writes `LoadW: slot.LoadW` — household only. `Action.LoadpointW` exists on the Action struct but never lands in `DiagnosticSlot`, so the UI table has no way to show it.
Operators see `LOAD 1.6` alongside `BATTERY −5.6` and assume the difference is export. They can't tell the car is eating 4 kW.
Fix
Add `LoadpointW` (or `EVChargeW`, name tbd) to `DiagnosticSlot` in `diagnose.go`
Populate from `plan.Actions[i].LoadpointW`
Either
(a) add a dedicated "EV" column in the plan table, or
(b) show `LOAD + EV` as a combined value with a hover tooltip breakdown
I'd lean on (a) — keeps the household load forecast separate from EV dispatch decisions, which matters for debugging.
Out of scope
This does not touch the DP math. The DP is correct. The fix is purely in the diagnostic-rendering path.
Reported by
Field test by @erikarenhill (Discord). Collapses into this ticket:
cheap charing - never exports. MPC plannern - hold my beer, planerar mer export än arbitrage 😄
Activity
fix(mpc) + feat(web): plumb Loadpoint into diagnostic + EV target UI (#…