Anker: every charger on the account, not just the ones outside a station
get_user_bind_and_not_in_station_evchargers is the only list the connector ever asked for, and its name says exactly what it withholds. A charger that belongs to a system is not in it. Its userBindEvChargersCount, though, counts every charger bound to the account — so an owner with two chargers in a system got "authenticated; 2 EV charger(s) bound to account" from the health probe and an empty list from the capability that is supposed to show them. A working login that finds nothing. So the capability now asks every view the cloud has and merges them by serial. The standalone list still answers for chargers standing on their own; get_site_list walks the systems and reads each one through get_scen_info, falling back to get_system_running_info where that is silent — the power-service / HES split charger-state already knows; and get_relate_and_bind_devices contributes model, firmware and the Wi-Fi flag, and discovers anything in the A519 family that the first two missed. Whichever way a charger was registered, one of the three has it. The merge is first-writer-wins per field rather than last view overwriting: the standalone record knows the name, the site record knows the live state, and neither should blank what the other established. A view that fails is a warning on the document instead of an error on the call, because one dead endpoint should not cost the chargers the other two found. Only losing all three is a failure. When nothing comes back at all the response says so in its own words and names the remaining suspect — country picks the regional server, and the wrong one authenticates happily and shows an empty account. The other half of "not showing any chargers" was that neither client ever showed a list. The serial was a text box, and the number is printed on a charger hanging on a wall. Both apps now list what the account holds — name, serial, model, site, state, an offline badge — and hand the serial to the OCPP control card instead of asking anyone to go and read it. Where control is off the list still stands on its own, as the answer to the first question an owner has after entering credentials. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a7cab50e06
commit
e138fad3f4
17 files changed
+1062
-17
No files matched your search
@@ -297,6 +297,26 @@
|
||||
"controlRevokeConfirm": "Tilbagekald denne laders styringstoken? Den bliver afbrudt og kan ikke forbinde igen, før du genererer et nyt.",
|
||||
"controlConnected": "Forbundet til styrings-backend",
|
||||
"controlDisconnected": "Ikke forbundet",
|
||||
"chargersTitle": "Dine ladere",
|
||||
"chargersHint": "Alle EV-ladere på den tilknyttede Anker-konto — både dem, der står for sig selv, og dem i et system.",
|
||||
"chargersRefresh": "Opdater",
|
||||
"chargersLoading": "Indlæser…",
|
||||
"chargersEmpty": "Der blev ikke fundet nogen EV-lader på denne konto.",
|
||||
"chargerUnnamed": "Lader uden navn",
|
||||
"chargerOffline": "Offline",
|
||||
"chargerUse": "Brug denne",
|
||||
"states": {
|
||||
"standby": "Standby",
|
||||
"preparing": "Forbereder",
|
||||
"charging": "Lader",
|
||||
"charger_paused": "Sat på pause af laderen",
|
||||
"vehicle_paused": "Sat på pause af bilen",
|
||||
"completed": "Fuldført",
|
||||
"reserving": "Reserveret",
|
||||
"disabled": "Deaktiveret",
|
||||
"error": "Fejl",
|
||||
"unknown": "Ukendt"
|
||||
},
|
||||
"greencell": "Greencell (HabuDen EV-lader)",
|
||||
"greencellDesc": "Læs din Greencell-lader via den MQTT-broker, den publicerer til. Kun lokalt — ingen Greencell-skykonto er involveret.",
|
||||
"greencellBroker": "MQTT-broker",
|
||||
|
||||
@@ -296,6 +296,26 @@
|
||||
"controlRevokeConfirm": "Revoke this charger's control token? It will disconnect and can't reconnect until you generate a new one.",
|
||||
"controlConnected": "Connected to control backend",
|
||||
"controlDisconnected": "Not connected",
|
||||
"chargersTitle": "Your chargers",
|
||||
"chargersHint": "Every EV charger on the linked Anker account — the ones standing on their own and the ones inside a system.",
|
||||
"chargersRefresh": "Refresh",
|
||||
"chargersLoading": "Loading…",
|
||||
"chargersEmpty": "No EV charger was found on this account.",
|
||||
"chargerUnnamed": "Unnamed charger",
|
||||
"chargerOffline": "Offline",
|
||||
"chargerUse": "Use this one",
|
||||
"states": {
|
||||
"standby": "Standby",
|
||||
"preparing": "Preparing",
|
||||
"charging": "Charging",
|
||||
"charger_paused": "Paused by charger",
|
||||
"vehicle_paused": "Paused by car",
|
||||
"completed": "Completed",
|
||||
"reserving": "Reserved",
|
||||
"disabled": "Disabled",
|
||||
"error": "Error",
|
||||
"unknown": "Unknown"
|
||||
},
|
||||
"greencell": "Greencell (HabuDen EV charger)",
|
||||
"greencellDesc": "Read your Greencell wallbox over the MQTT broker it publishes to. Local only — no Greencell cloud account is involved.",
|
||||
"greencellBroker": "MQTT broker",
|
||||
|
||||
@@ -301,6 +301,26 @@
|
||||
"controlRevokeConfirm": "Unieważnić token sterowania tej ładowarki? Rozłączy się i nie połączy ponownie, dopóki nie wygenerujesz nowego.",
|
||||
"controlConnected": "Połączono z backendem sterowania",
|
||||
"controlDisconnected": "Nie połączono",
|
||||
"chargersTitle": "Twoje ładowarki",
|
||||
"chargersHint": "Wszystkie ładowarki EV na połączonym koncie Anker — te wolnostojące i te należące do systemu.",
|
||||
"chargersRefresh": "Odśwież",
|
||||
"chargersLoading": "Wczytywanie…",
|
||||
"chargersEmpty": "Na tym koncie nie znaleziono żadnej ładowarki EV.",
|
||||
"chargerUnnamed": "Ładowarka bez nazwy",
|
||||
"chargerOffline": "Offline",
|
||||
"chargerUse": "Użyj tej",
|
||||
"states": {
|
||||
"standby": "Czuwanie",
|
||||
"preparing": "Przygotowanie",
|
||||
"charging": "Ładowanie",
|
||||
"charger_paused": "Wstrzymane przez ładowarkę",
|
||||
"vehicle_paused": "Wstrzymane przez auto",
|
||||
"completed": "Zakończone",
|
||||
"reserving": "Zarezerwowana",
|
||||
"disabled": "Wyłączona",
|
||||
"error": "Błąd",
|
||||
"unknown": "Nieznany"
|
||||
},
|
||||
"greencell": "Greencell (ładowarka EV HabuDen)",
|
||||
"greencellDesc": "Odczytuj swoją ładowarkę Greencell przez brokera MQTT, do którego publikuje. Tylko lokalnie — konto w chmurze Greencell nie jest potrzebne.",
|
||||
"greencellBroker": "Broker MQTT",
|
||||
|
||||
Reference in new issue
Block a user