EV-54: a refused peak cut no longer stops Solar; tried again next quarter
checks / unit (pull_request) Successful in 52m35s
infra-pin / fresh (pull_request) Successful in 1s

Refused cut tries are capped at 3 per quarter key and never set the session-wide gave_up. The next quarter tries again while a cut is needed. Once no cut stands, a refused cut value is dropped (sent_a and the plan current = the read-back, taken), never re-sent; the drop waits for a good, known read-back. A cut write that raises counts as a refused try. New notice text (Q3); the hold path's text is unchanged. Tests: test_ev54.py, test_ev54_drop.py (T1-T35); test_ev52 N8 knows the new text.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
ems-agent
2026-11-30 00:24:58 +01:00
co-authored by Claude
parent bdfd3e6848
commit a698211318
11 changed files with 1654 additions and 15 deletions
+4
View File
@@ -3389,6 +3389,10 @@ changes at most once per 30 seconds and only by 1 A or more.
fault, or a lower current the charger has not shown yet), the peak alarms
treat the car as in Off. A Solar charge is never counted as setting the
month's peak.
- **A cut the charger does not take** is tried again after a minute, at most
three times per 15-minute period; then one warning and an amber row say so.
Solar's normal control goes on, and the cut is tried again at the start of
the next period while it is still needed.
- **Energy.** The card says "{kWh} charged today, {kWh} from the sun", and the
sensor `goodwe_car_today_solar_kwh` has the sun's part. Only Solar's own
share of spare sun counts, not the hold's battery or grid power.