EV-20: SPIKE-05 decisions C1, C6, C9 (brief v5) with rows for C1, C5, C6, C8, C9
C1: an own 0 A not yet read back is kept with the mode; a start in Off with it writes the 0 A (retried), without it nothing; a start that will not write warns once when the charger still has the add-on's current. C6: Solar's 30 s gate also counts from Manual's latest write. C9: an exit also owes its 0 A when the read-back shows Solar's own value. Rows for C5 and C8 too. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VSY9UpTaUYnjJF5oVtbM1w
This commit is contained in:
@@ -191,6 +191,8 @@ T_CHARGER_UNREACH_NL = "Laadpaal onbereikbaar"
|
||||
T_CAR_OVER = "Car over the peak limit"
|
||||
T_CAR_OVER_NL = "Auto boven de piekgrens"
|
||||
T_CAR_RELEASE = "Car may still be charging"
|
||||
T_CAR_START = "Charger kept its current"
|
||||
T_CAR_START_NL = "Laadpaal hield haar stroom"
|
||||
T_CAR_RELEASE_NL = "Auto laadt mogelijk nog"
|
||||
T_NO_PRICES = "No prices"
|
||||
T_NO_PRICES_NL = "Prijzen ontbreken"
|
||||
@@ -207,6 +209,7 @@ ID_NO_PRICES = "goodwe_no_prices"
|
||||
ID_CHARGER_UNREACH = "goodwe_charger_unreachable"
|
||||
ID_CAR_OVER = "goodwe_car_over"
|
||||
ID_CAR_RELEASE = "goodwe_car_release"
|
||||
ID_CAR_START = "goodwe_car_start_current"
|
||||
# PRICE-01: an earlier build raised a card with this id. Nothing raises it now;
|
||||
# the add-on only dismisses it at start.
|
||||
OLD_FIXED_CARD_ID = "goodwe_fixed_tariff_unused"
|
||||
@@ -554,6 +557,21 @@ def car_release_failed() -> Notice:
|
||||
body_nl=f"{T_CAR_RELEASE_NL}. {nl}")
|
||||
|
||||
|
||||
def car_start_current(a_text) -> Notice:
|
||||
"""EV-20 (C1): the add-on starts without writing (shadow mode, control
|
||||
stopped) and the charger still has a current the add-on set before the
|
||||
stop. Taken down once the charger shows 0 A."""
|
||||
return Notice(ID_CAR_START, WARNING, T_CAR_START,
|
||||
f"Charger still at {a_text} A from before the restart.",
|
||||
body_nl=f"{T_CAR_START_NL}. Laadpaal staat nog op {a_text} A "
|
||||
f"van voor de herstart.")
|
||||
|
||||
|
||||
def car_start_current_gone() -> Dismiss:
|
||||
"""EV-20 (C1): takes the 'Charger kept its current' notice down."""
|
||||
return Dismiss(ID_CAR_START)
|
||||
|
||||
|
||||
def car_release_gone() -> Dismiss:
|
||||
"""EV-20 (D3): takes the 'Car may still be charging' notice down."""
|
||||
return Dismiss(ID_CAR_RELEASE)
|
||||
@@ -1877,6 +1895,7 @@ def samples() -> list:
|
||||
car_over("16"),
|
||||
car_over_solar("8"),
|
||||
car_release_failed(),
|
||||
car_start_current("10"),
|
||||
]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user