TARIFF-30: hold out a failed leg while the trade winds down; docs, text, pins
The loop gives up a trade's last target at its slew, so a unit whose own leg failed stays at 0 W charge for that tail (120 s at most). Option and status texts follow STYLE.md. DOCS and CHANGELOG. The per-entry schema pins in test_inverter and test_translations count the new key. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -969,7 +969,8 @@ schema:
|
||||
# no `max_w` would have to borrow a rating, which is the sibling-grading
|
||||
# defect DEV-02 removed; `bms_soc_floor` is SAFETY-32's (options block above).
|
||||
# The optional keys are the sensors, whose absence honestly means "this unit
|
||||
# reports none", and `capacity_kwh`.
|
||||
# reports none", `capacity_kwh`, and TARIFF-30's `round_trip_eff` (0.5 to 1;
|
||||
# absent means today's behaviour exactly, so nothing is invented for it).
|
||||
#
|
||||
# ⚠️ THIS BLOCK IS DECLARED BEFORE `max_w:` ON PURPOSE. `max_w` now appears
|
||||
# TWICE under `schema:` - once nested here, once flat below - and a reader
|
||||
@@ -986,7 +987,6 @@ schema:
|
||||
batt_entity: str?
|
||||
batt_invert: bool?
|
||||
capacity_kwh: float(0.1,200)?
|
||||
# TARIFF-30: optional per entry, 0.5 to 1. Not set = today's behaviour.
|
||||
round_trip_eff: float(0.5,1)?
|
||||
|
||||
estop_fitted: bool
|
||||
|
||||
Reference in New Issue
Block a user