EV-05 round 3: a refused way-out 0 A is tried again; one cut per excess
checks / unit (pull_request) Successful in 24m5s
infra-pin / fresh (pull_request) Successful in 2s

Review of 17a7b29:
- Critical: every way out of Solar (Off, Stop, shadow, safety stop, charger
  error, stuck reading, no car) now owes a 0 A until the charger takes it:
  tried again 60 s apart, 3 times (EV-04's rule), then the gave-up row and
  CHARGER_REFUSED; never over another writer. Shutdown does not trust last_a
  while a write of ours is unconfirmed. The card no longer says paused while
  the 0 A is not taken.
- Major: an excess episode is taken off the car once, measured from the car's
  power when it began, until the car shows it and 15 s more.

Tests: refused-then-accepted 0 A for each exit, a 0 A never taken, shutdown
during a start write's read-back, a cut from 16 A with a slow car; the fuzz
checks refused exits of every kind (N9).

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
ems-agent
2026-11-18 12:15:00 +01:00
co-authored by Claude
parent 17a7b299d2
commit d2504efa82
9 changed files with 338 additions and 58 deletions
+5 -2
View File
@@ -3356,10 +3356,13 @@ Both apply at once, with no restart.
catch does not pause the car. With every battery at its cut-out level, or
in the last 2 minutes of the 15-minute period, it cuts at once. A Solar
charge never sets the month's peak.
- **Every way out of Solar leaves the charger at 0 A**, written once: a stop or
- **Every way out of Solar leaves the charger at 0 A**: a stop or
restart of the add-on (before the inverters go to 0 W), stopping control, a
safety stop, shadow mode turned on, choosing Off, an unplugged car, a charger
error or a stuck reading. After the charger or Home Assistant was away, the
error or a stuck reading. If the charger does not take the 0 A, the add-on
tries again a minute later, three times, then shows *Charger did not take
it* and a warning. Once taken, nothing more is written. After the charger
or Home Assistant was away, the
add-on first sets 0 A, then starts again by the rules. A meter that stops
gives a hold for *Pause after*, then 0 A. Choosing Manual leaves it to Manual.
- Another writer stops the add-on's writes after 30 seconds, with an amber row