Seite 1 von 2

Nissan Leaf - SoC Abfrage funktioniert nicht mehr

Verfasst: Di Dez 25, 2018 4:02 pm
von Sethach
Moin

in der Woche vor Weihnachten hat Nissan die App fürs Smartphone aktualisiert. Die alte App funktioniert nicht mehr.
Dazu passend ist die SoC Abfrage in OpenWB auch nicht mehr möglich.

Im log sehe ich:

leaf = Leaf(sys.argv[1], sys.argv[2])
File "/var/www/html/openWB/modules/soc_leafs1/leaf.py", line 14, in __init__
self.custom_sessionid, self.VIN = login(username, password)
File "/var/www/html/openWB/modules/soc_leafs1/auth.py", line 28, in login
r.raise_for_status()
File "/usr/lib/python2.7/dist-packages/requests/models.py", line 893, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://gdcportalgw.its-mo.com/api_v180 ... equest.php

Wird es einen Fix geben?

Gruß S

Re: Nissan Leaf - SoC Abfrage funktioniert nicht mehr

Verfasst: Di Dez 25, 2018 4:45 pm
von openWB
Nabend,
neue API ist noch nicht reverse engineered.
Sobald das geschehen ist werde ich das natürlich updaten.
Nissan hat leider keinen „Übergangszeitraum“ vorgesehen.

grüße

Re: Nissan Leaf - SoC Abfrage funktioniert nicht mehr

Verfasst: Di Dez 25, 2018 11:14 pm
von aiole
Kann man nicht die alte App als apk-file installieren?
Zumindest unter Android geht das.

Diese automatischen updates haben häufig den Nachteil, dass danach etwas nicht mehr läuft. Ich lasse mich seit längerem nur noch informieren und entscheide selbst, was upgedatet wird.

VG aiole

Re: Nissan Leaf - SoC Abfrage funktioniert nicht mehr

Verfasst: Mi Dez 26, 2018 3:32 pm
von openWB
Die App ist hier recht egal.
Nissan hat die API umgestellt. Die alte APP, wie auch die Abfrage in OpenWB funktionieren nicht mehr.
Bissl geduld bis die neue API reverseenfineered ist, dann gibts nen update

Re: Nissan Leaf - SoC Abfrage funktioniert nicht mehr

Verfasst: Do Dez 27, 2018 12:39 pm
von openWB
Bitte mal auf die aktuelle Beta 1.093 Updaten und testen, habe die URL abgeändert, hoffe sie funktioniert

Re: Nissan Leaf - SoC Abfrage funktioniert nicht mehr

Verfasst: Fr Dez 28, 2018 6:47 am
von Sethach
Ich hab die 1.093 Beta installiert, der SoC für den Leaf funktioniert noch nicht.

Hier das log:

evua 1 0 2 0 3 0
Traceback (most recent call last):
File "/var/www/html/openWB/modules/soc_leafs1/soc.py", line 17, in <module>
leaf = Leaf(sys.argv[1], sys.argv[2])
File "/var/www/html/openWB/modules/soc_leafs1/leaf.py", line 14, in __init__
self.custom_sessionid, self.VIN = login(username, password)
File "/var/www/html/openWB/modules/soc_leafs1/auth.py", line 28, in login
r.raise_for_status()
File "/usr/lib/python2.7/dist-packages/requests/models.py", line 893, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://gdcportalgw.its-mo.com/api_v180 ... equest.php
2018/12/27 23:51:35 socat[5886] E connect(7, AF=2 192.168.0.24:26, 16): No route to host
Traceback (most recent call last):
File "/var/www/html/openWB/modules/sdm120modbuslls1/readsdm1.py", line 20, in <module>
llv1 = struct.unpack('>f',struct.pack('>HH',*resp.registers))
AttributeError: 'ModbusIOException' object has no attribute 'registers'
Do 27. Dez 23:51:44 CET 2018
pvwatt 119 ladeleistung 0 llalt 0 nachtladen 0 minimalA 10 maximalA 21
lla1 0 llas11 0 llas21 mindestuberschuss 1800 abschaltuberschuss 5
lla2 0 llas12 0 llas22 sofortll 16 wattbezug 333 uberschuss -333
lla3 0 llas13 0 llas23 soclp1 0 soclp2 0

Re: Nissan Leaf - SoC Abfrage funktioniert nicht mehr

Verfasst: Fr Dez 28, 2018 6:49 am
von Sethach
Sorry,
Das war ein logauszug vor dem Update. Hier das Richtige:
evua 1 0 2 0 3 0
Traceback (most recent call last):
File "/var/www/html/openWB/modules/soc_leafs1/soc.py", line 17, in <module>
leaf = Leaf(sys.argv[1], sys.argv[2])
File "/var/www/html/openWB/modules/soc_leafs1/leaf.py", line 14, in __init__
self.custom_sessionid, self.VIN = login(username, password)
File "/var/www/html/openWB/modules/soc_leafs1/auth.py", line 28, in login
r.raise_for_status()
File "/usr/lib/python2.7/dist-packages/requests/models.py", line 893, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://gdcportalgw.its-mo.com/api_v180 ... equest.php
2018/12/28 07:47:35 socat[28153] E connect(7, AF=2 192.168.0.24:26, 16): No route to host
Traceback (most recent call last):
File "/var/www/html/openWB/modules/sdm120modbuslls1/readsdm1.py", line 20, in <module>
llv1 = struct.unpack('>f',struct.pack('>HH',*resp.registers))
AttributeError: 'ModbusIOException' object has no attribute 'registers'
Fr 28. Dez 07:47:44 CET 2018
pvwatt 119 ladeleistung 0 llalt 0 nachtladen 0 minimalA 10 maximalA 21
lla1 0 llas11 0 llas21 mindestuberschuss 1800 abschaltuberschuss 5
lla2 0 llas12 0 llas22 sofortll 16 wattbezug 255 uberschuss -255
lla3 0 llas13 0 llas23 soclp1 0 soclp2 0
evua 1 0 2 0 3 0

Re: Nissan Leaf - SoC Abfrage funktioniert nicht mehr

Verfasst: Fr Dez 28, 2018 7:08 am
von openWB
Dann geht die API URL auch nicht.
Ich halte die Augen offen bis ich eine funktionierende URL finde.
Da findet man aktuell ja leider relativ viel zu das Nissan groß am umstellen ist.

Re: Nissan Leaf - SoC Abfrage funktioniert nicht mehr

Verfasst: Fr Dez 28, 2018 8:09 am
von Sethach
Im FHEM Forum wurde das Modul angepasst auf die neue URL - ist also irgendwie bekannt:

https://forum.fhem.de/index.php/topic,92163.0.html

2018-12-21
neue API URL eingebaut - FHEM muß neu gestartet werden, damit das übernommen wird

Re: Nissan Leaf - SoC Abfrage funktioniert nicht mehr

Verfasst: Mi Jan 02, 2019 8:49 pm
von Sethach
Ich pushe das Thema noch mal nach oben, gibt es schon was neues zum Theam Leaf SoC Abfrage?