Repository navigation
fix(ev): show uncertainty when charger pilot data expires - #2065
Conversation
Signed-off-by: Segran <[email protected]>
miravoss26
left a comment
There was a problem hiding this comment.
What it does: when an EV draws positive power below an accepted order, the driver gives no limit, and the last valid pilot confirmation is older than the fresh window, the control feedback now reports waiting / charger_pilot_stale ("Waiting for current pilot data") instead of a warning. No-draw, overdraw and fresh-pilot cases keep their verdicts.
Security screen: clean. No new deps, hosts or authz changes.
Findings
- none blocking. The guard (
Kind==ev, accepted command, sent > 100 W, actual ≥ 100 W, noLimitA,pilotStale) is tight, andpilotStaleis only true when a pilot reading exists but is old, so drivers without pilot data keep today's behaviour. The Go test covers expiry and re-confirmation; the JS test covers the label. CI green. - question: a charger that stops reporting pilot indefinitely stays at
waiting/infowhile still under-drawing. Is there a point where it should escalate back towarning, or does the existingtelemetry_stalepath cover it?
Safe to merge from my read.
|
Thanks, Mira. On the tested box, the local Easee Cloud driver drops the pilot value once it has gone 90 seconds without confirmation. Core then falls back to the normal underdraw assessment. For drivers that keep publishing an expired confirmation, a separate escalation timeout is still an open question. |
Signed-off-by: Segran <[email protected]>
miravoss26
left a comment
There was a problem hiding this comment.
Adds a waiting / charger_pilot_stale verdict for an EV drawing below its accepted order when the driver gives no limit and the last pilot confirmation is older than 90 s, plus the UI title/sentence and a regression test that cycles stale -> fresh. CI is green. No secrets, new dependencies, authz changes or new hosts.
One thing to decide: the stale verdict is info, and it replaces the warning that power_below_target would have raised. If a charger stops reporting pilot data for good while still under-delivering, the row stays at "Waiting for current pilot data" indefinitely and the underdraw warning never comes back. Worth an escalation after some time (like the existing Escalated handling) or a cap on how long waiting can mask it. Fine to ship as is if you want that as a follow-up.
Otherwise reads correct to me: the condition is tight (kind == ev, accepted, sent > 100 W, actual >= 100 W, no limit, pilot valid but stale), and drivers with no pilot data keep today's behavior.
Follow-up to #2056 and #2062.
When an EV is still drawing positive power below an accepted order, the driver provides no effective limit, and the last valid pilot confirmation is older than 90 seconds, show “Waiting for current pilot data”. The message describes the measured shortfall and the missing evidence. No-draw, overdraw, and a shortfall below a fresh pilot keep their existing verdicts. Drivers that provide no valid pilot confirmation keep their current behavior.
Validation