diff --git a/goodwe_controller/CHANGELOG.md b/goodwe_controller/CHANGELOG.md index 1e80155..b627a86 100644 --- a/goodwe_controller/CHANGELOG.md +++ b/goodwe_controller/CHANGELOG.md @@ -2,6 +2,7 @@ ### Not in a release yet +- **A car phase change whose current the charger refuses no longer sends that current five times.** After three refused tries the add-on stops at once and warns CHARGER_REFUSED; the car stays at 0 A until you change something. A value you change meanwhile gets its own three tries ([[EV-59]]). - **A car current the add-on cannot send because of an error is no longer sent again every second.** It counts as a write the charger did not take: 3 tries a minute apart, then the add-on stops and warns CHARGER_REFUSED. The error is logged once per current ([[EV-56]]). - **A peak cut the charger does not take no longer stops Solar.** After three refused tries in a 15-minute period, Solar goes on controlling the car and tries the cut again at the start of the next period while it is still needed. The warning now says "The charger did not take the peak cut, so the add-on tries again next quarter: CHARGER_REFUSED." ([[EV-54]]). - **The add-on log now says when the add-on sets a new car current or the car mode changes.** One line each, for example "Car: set from 10 A to 6 A on 1 phase (Manual)." and "Car mode is now Manual." It names the reason: Manual, Solar, peak cut, start-up or shutdown. A refused write adds no such line, and nothing is written or timed differently ([[EV-52]]). diff --git a/goodwe_controller/test_ev59.py b/goodwe_controller/test_ev59.py index 6a5edd9..7e46658 100644 --- a/goodwe_controller/test_ev59.py +++ b/goodwe_controller/test_ev59.py @@ -693,9 +693,11 @@ check(f"T21: the read-back unknown (allowed and setpoint None): judged by the " len(nz(R21)) == 3 and R21.rows[399]["gave_up"] and len(refs(R21)) == 1 and not R21.errs) R21b = run(refuse, 400, power=lambda t, d: None, cur=16.0, a=16.0) -check(f"T21: the power unknown: the sequence ends in 3 tries at most, no " - f"exception ({nz(R21b)}, {R21b.errs[:1]})", - len(nz(R21b)) <= 3 and not R21b.errs) +check(f"T21: the power unknown: the drawing timeout's restore is tried 3 " + f"times (20, 25, 30), then the give-up and one REF, no exception " + f"({nz(R21b)}, {refs(R21b)}, {R21b.errs[:1]})", + nz(R21b) == [20, 25, 30] and R21b.rows[30]["gave_up"] + and refs(R21b) == [30] and not R21b.errs) R22 = run(refuse, 600, avail=lambda t: False) check("T22: no charger: 0 writes, no lines, no REF", not R22.drv.calls and not R22.log and not refs(R22))