Support: SoC Leaf

Alles rund um SoC (Ladezustand des Fahrzeuges). Probleme, Fragen, Fehlfunktionen gehören hier hin
Sethach
Beiträge: 86
Registriert: Di Okt 16, 2018 6:31 pm

Support: SoC Leaf

Beitrag von Sethach »

Seit dem update auf 1.9.235 funktioniert zwar die Abfrage des Tesla SoC an LP1 wieder, aber der Nissan Leaf SoC bleibt be 0.
In der App und auf der Nissan connect webseite habe ich den korrekten Ladestand.

Im log sehe ich:

2021-06-15 18:16:51: Lp2: Done (LV1) at 35 main /var/www/html/openWB/modules/soc_leaf/main.sh
2021-06-15 18:16:51,305 - root - DEBUG - LP2: Update soctimer to 35
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
raise JSONDecodeError("Expecting value", s, err.value) from None
File "/usr/lib/python3.5/json/decoder.py", line 357, in raw_decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.5/json/decoder.py", line 339, in decode
return _default_decoder.decode(s)
File "/usr/lib/python3.5/json/__init__.py", line 319, in loads
myVehicleId = json.loads(myVehicles)["response"][vehicle]["id"]
File "/var/www/html/openWB/modules/soc_tesla/tesla.py", line 291, in getVehicleId
vehicleID = getVehicleId(args.vehicle)
File "/var/www/html/openWB/modules/soc_tesla/tesla.py", line 380, in <module>
Traceback (most recent call last):
2021-06-15 18:16:49: Lp2: Starting Python module (LV1) at 33 main /var/www/html/openWB/modules/soc_leaf/main.sh
pfoerti
Beiträge: 46
Registriert: Sa Jan 09, 2021 3:16 am

Re: Support: SoC Leaf

Beitrag von pfoerti »

Hi,

bei ein paar Nutzern scheint die SoC-Abfrage ja zu funktionieren,
bei mir hat sie leider noch nie funktioniert (seit März ZE1).

Könnten jmd bei dem es funktioniert evtl mal seinen Log posten,
evtl kann man hier ja Unterschiede ausmachen...


bei mir sieht es so aus:

Code: Alles auswählen

2021-06-18 10:31:56: Lp1: Done (LV1) at 35 main modules/soc_leaf/main.sh
2021-06-18 10:31:56,394 - root - DEBUG - LP1: Update soctimer to 11
2021-06-18 10:31:54: Lp1: Starting Python module (LV1) at 33 main modules/soc_leaf/main.sh
2021-06-18 10:31:50: Lp1: Done (LV1) at 35 main modules/soc_leaf/main.sh
2021-06-18 10:31:50,730 - pycarwings2 - ERROR - carwings error INVALID PARAMS: -2010
2021-06-18 10:31:50,729 - pycarwings2 - DEBUG - Response HTTP Response Body: {"status":"-2010","message":"INVALID PARAMS","resultKey":""}
2021-06-18 10:31:50,728 - pycarwings2 - DEBUG - Response HTTP Status Code: 200
2021-06-18 10:31:50,722 - requests.packages.urllib3.connectionpool - DEBUG - https://gdcportalgw.its-mo.com:443 "POST /api_v190426_NE/gdc/UserLoginRequest.php HTTP/1.1" 200 None
2021-06-18 10:31:47,816 - requests.packages.urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): gdcportalgw.its-mo.com
}
   "initial_app_str": "9s5rfKVuMrT03RtzajWNcA"
   "custom_sessionid": "",
   "UserId": "XXX@web.de",
   "RegionCode": "NE",
   "Password": "XXXQCYyxOEfulXT1+0+Y3w==",
2021-06-18 10:31:47,813 - pycarwings2 - DEBUG - params: {
2021-06-18 10:31:47,812 - pycarwings2 - DEBUG - invoking carwings API: https://gdcportalgw.its-mo.com/api_v190426_NE/gdc/UserLoginRequest.php
2021-06-18 10:31:47,802 - pycarwings2 - DEBUG - Response HTTP Response Body: {"status":200,"message":"success","baseprm":"88dSp7wWnV3bvv9Z88zEwg"}
2021-06-18 10:31:47,802 - pycarwings2 - DEBUG - Response HTTP Status Code: 200
2021-06-18 10:31:47,795 - requests.packages.urllib3.connectionpool - DEBUG - https://gdcportalgw.its-mo.com:443 "POST /api_v190426_NE/gdc/InitialApp_v2.php HTTP/1.1" 200 None
2021-06-18 10:31:46,685 - requests.packages.urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): gdcportalgw.its-mo.com
}
   "lg": "en-US"
   "initial_app_str": "9s5rfKVuMrT03RtzajWNcA",
   "custom_sessionid": "",
   "RegionCode": "NE",
2021-06-18 10:31:46,682 - pycarwings2 - DEBUG - params: {
2021-06-18 10:31:46,681 - pycarwings2 - DEBUG - invoking carwings API: https://gdcportalgw.its-mo.com/api_v190426_NE/gdc/InitialApp_v2.php
2021-06-18 10:31:46,662 - root - DEBUG - LP1: login =XXX@web.de, region = NE
2021-06-18 10:31:46,662 - root - DEBUG - LP1: Update soctimer to 10

Gibt es evtl Probleme bzgl. der regionCode o.ä.?


Gruß Stefan
OpenWB series 2 Custom
+ go-e-Charger als 2.LP
+ 9,75 kwP PV (Kostal Plenticore mit Speicher)
+ Nissan Leaf 2
KlausZaH
Beiträge: 9
Registriert: Di Feb 23, 2021 2:11 pm
Wohnort: oberösterreich

Re: Support: SoC Leaf

Beitrag von KlausZaH »

Mit dem Nightly 1.9.239 ist dieser Fehler im Soc Header vom Leaf korrigiert.

Bei meinem ZE1 geht es wieder nach dem update.....Lutz Sei Dank :lol:

LG klaus
PV 4 kWp +Fronius Symo + Fronius Smart Meter
Nissan Leaf ZE1 40kW
Simple EVSE Wifi WB Vers: 2.2.0
seit 15.7.23 Release 2.0
pfoerti
Beiträge: 46
Registriert: Sa Jan 09, 2021 3:16 am

Re: Support: SoC Leaf

Beitrag von pfoerti »

Ich habe das nightly geladen,
Keine Änderung bei mir.

Sieht der Log bei dir anders aus?

Gruß Stefan
OpenWB series 2 Custom
+ go-e-Charger als 2.LP
+ 9,75 kwP PV (Kostal Plenticore mit Speicher)
+ Nissan Leaf 2
KlausZaH
Beiträge: 9
Registriert: Di Feb 23, 2021 2:11 pm
Wohnort: oberösterreich

Re: Support: SoC Leaf

Beitrag von KlausZaH »

In dieser Zeile des Log sollten schon alle Daten stehen LoginName Pw VIN und noch eineiges.
und nicht INVALID PARAMS !!

2021-06-18 10:31:50,729 - pycarwings2 - DEBUG - Response HTTP Response Body: {"status":"-2010","message":"INVALID PARAMS","resultKey":""}

Ist der Wagen überhaupt auf Nissan Connect oder Carwings oder You&Nissan registriert?
mit emailadresse PW und VIN

oder hast du überhaupt eine Handyapp NissanConnect um die Abfrage zu probieren?

bin auch kein Programmierer eher ein Probierer ..bis es funzt...
LG Klaus
PV 4 kWp +Fronius Symo + Fronius Smart Meter
Nissan Leaf ZE1 40kW
Simple EVSE Wifi WB Vers: 2.2.0
seit 15.7.23 Release 2.0
pfoerti
Beiträge: 46
Registriert: Sa Jan 09, 2021 3:16 am

Re: Support: SoC Leaf

Beitrag von pfoerti »

Hi Klaus,

Ja das Auto ist dort registriert,
Abfrage per Nissan Connect und auch der Alternativ-App "myleaf" funktioniert ohne Probleme, auch auf mehreren Smartphones.

Im Passwort oder der Mail-Adresse sind auch keinerlei exotische Zeichen oder ähnliches,
drum frag ich mich an was das liegen könnte.

Mehrmals eingegeben um Tippfehler auszuschließen wurde es natürlich auch ;)

Gruß
OpenWB series 2 Custom
+ go-e-Charger als 2.LP
+ 9,75 kwP PV (Kostal Plenticore mit Speicher)
+ Nissan Leaf 2
Sethach
Beiträge: 86
Registriert: Di Okt 16, 2018 6:31 pm

Re: Support: SoC Leaf

Beitrag von Sethach »

Nach dem update auf 1.9.242 ist die SoC Abfrage für den Leaf nun wieder in Ordnung.
Sethach
Beiträge: 86
Registriert: Di Okt 16, 2018 6:31 pm

Re: Support: SoC Leaf

Beitrag von Sethach »

Mein Nissan SoC funktioniert erneut nicht.
Die App und die Nissan Connect Webseite zeigen den korrekten SoC des Fahrzeugs an. Das dumme ist, das die letzte erfolgreiche SoC Abfrage bei 100% war, und somit das Auto nicht lädt (Lademengen Begrenzung EV SoC). Im log sehe ich nichts ungewöhnliches:

2021-09-25 08:27:33: Lp1: Nothing to do yet. Incrementing timer. (LV1) at 172 main modules/soc_tesla/main.sh
2021-09-25 08:27:33: Lp1: Car is not charging (LV1) at 170 main modules/soc_tesla/main.sh
2021-09-25 08:27:33: Lp1: timer = 37 (LV1) at 149 main modules/soc_tesla/main.sh
2021-09-25 08:27:29: Lp2: Done (LV1) at 35 main /var/www/html/openWB/modules/soc_leaf/main.sh
2021-09-25 08:27:29,781 - root - DEBUG - LP2: Update soctimer to 21
2021-09-25 08:27:28: Lp2: Starting Python module (LV1) at 33 main /var/www/html/openWB/modules/soc_leaf/main.sh
2021-09-25 08:27:24: Lp1: Nothing to do yet. Incrementing timer. (LV1) at 172 main modules/soc_tesla/main.sh

Die Tesla Abfrage funktioniert.
Was mich wundert ist, das wenn ich in der Modulkonfiguration ein falsches Kennwort eingebe, ich im log nichts dazu finde.
Warum suggeriert mir das Hauptmenue einen SoC, obwohl der SoC tagelang nicht erfolgreich abgefragt werden konnte?

Hat jemand ähnliche Probleme?
andig
Beiträge: 306
Registriert: Fr Sep 13, 2019 9:24 am

Re: Support: SoC Leaf

Beitrag von andig »

Du könntest noch evcc probieren- da sind mir keine Fehler bekannt.

Viele Grüße, Andreas
Dubit
Beiträge: 2
Registriert: So Aug 01, 2021 5:38 pm

Re: Support: SoC Leaf

Beitrag von Dubit »

Sethach hat geschrieben: Sa Sep 25, 2021 6:33 am Hat jemand ähnliche Probleme?
Ja, laut geloggten Werten funktioniert die SOC-Abfrage über die openWB bei mir seit dem 12.9. nicht mehr, über App usw. funktioniert es weiterhin. Bei mir war der Ladestand auch einige Zeit "eingefroren", seit einem Reboot auf 0%.
Antworten