EV-03 round 3: the power entity is required and reads in W or kW
A charger with no usable power entity is refused as "not set up", like a missing setpoint, read-back or state entity, so House and the house profile behave as with no charger. An entity that is merely unavailable at probe time is still the unreachable path. NL: help text "met rust", chip "Laadpaalstoring". Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -1991,6 +1991,7 @@ def charger_probe_rows(opts: dict, entities: dict | None) -> dict:
|
||||
pr = chargers.probe_from(setpoint, state_obj)
|
||||
return {"ok": pr.ok, "found": [list(x) for x in pr.found],
|
||||
"missing": [list(x) for x in pr.missing], "limit_a": pr.station_a,
|
||||
"power_unit": pr.power_unit,
|
||||
"state": "ok" if pr.ok else "missing"}
|
||||
|
||||
|
||||
@@ -2032,11 +2033,26 @@ def _charger_notes(notes, opts: dict, entities: dict) -> None:
|
||||
return
|
||||
for role, entity in look["missing"]:
|
||||
required = role in chargers.REQUIRED
|
||||
_advise(notes, "warn" if required else "info", key,
|
||||
f"Home Assistant has no entity {entity}, which the charger "
|
||||
f"needs.",
|
||||
nl=f"Home Assistant kent {entity} niet, die de laadpaal "
|
||||
"nodig heeft.")
|
||||
# A missing required entity (current, read-back, car state or power)
|
||||
# means the charger is not used: the Car card says "not set up".
|
||||
if required:
|
||||
_advise(notes, "warn", key,
|
||||
f"Home Assistant has no entity {entity}, which the "
|
||||
"charger needs, so it is not used.",
|
||||
nl=f"Home Assistant kent {entity} niet, die de laadpaal "
|
||||
"nodig heeft, dus ze wordt niet gebruikt.")
|
||||
else:
|
||||
_advise(notes, "info", key,
|
||||
f"Home Assistant has no entity {entity}, which the "
|
||||
"charger can also use.",
|
||||
nl=f"Home Assistant kent {entity} niet, die de laadpaal "
|
||||
"ook kan gebruiken.")
|
||||
if look.get("power_unit") is not None:
|
||||
_advise(notes, "warn", key,
|
||||
"The charger's power does not read in W or kW, so the "
|
||||
"charger is not used.",
|
||||
nl="Het vermogen van de laadpaal is niet in W of kW, dus ze "
|
||||
"wordt niet gebruikt.")
|
||||
lim = look["limit_a"]
|
||||
if look["ok"]:
|
||||
have = {r for r, _e in look["found"]}
|
||||
|
||||
Reference in New Issue
Block a user