Nissan Leaf - SoC Abfrage funktioniert nicht mehr

Fragen zur Nutzung, Features, usw..
Sethach
Beiträge: 86
Registriert: Di Okt 16, 2018 6:31 pm

Nissan Leaf - SoC Abfrage funktioniert nicht mehr

Beitrag 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
openWB
Site Admin
Beiträge: 7904
Registriert: So Okt 07, 2018 1:50 pm

Re: Nissan Leaf - SoC Abfrage funktioniert nicht mehr

Beitrag 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
Supportanfragen bitte NICHT per PN stellen.
Hardwareprobleme bitte über die Funktion Debug Daten senden mitteilen oder per Mail an support@openwb.de
aiole
Beiträge: 6779
Registriert: Mo Okt 08, 2018 4:51 pm

Re: Nissan Leaf - SoC Abfrage funktioniert nicht mehr

Beitrag 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
openWB
Site Admin
Beiträge: 7904
Registriert: So Okt 07, 2018 1:50 pm

Re: Nissan Leaf - SoC Abfrage funktioniert nicht mehr

Beitrag 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
Supportanfragen bitte NICHT per PN stellen.
Hardwareprobleme bitte über die Funktion Debug Daten senden mitteilen oder per Mail an support@openwb.de
openWB
Site Admin
Beiträge: 7904
Registriert: So Okt 07, 2018 1:50 pm

Re: Nissan Leaf - SoC Abfrage funktioniert nicht mehr

Beitrag von openWB »

Bitte mal auf die aktuelle Beta 1.093 Updaten und testen, habe die URL abgeändert, hoffe sie funktioniert
Supportanfragen bitte NICHT per PN stellen.
Hardwareprobleme bitte über die Funktion Debug Daten senden mitteilen oder per Mail an support@openwb.de
Sethach
Beiträge: 86
Registriert: Di Okt 16, 2018 6:31 pm

Re: Nissan Leaf - SoC Abfrage funktioniert nicht mehr

Beitrag 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
Sethach
Beiträge: 86
Registriert: Di Okt 16, 2018 6:31 pm

Re: Nissan Leaf - SoC Abfrage funktioniert nicht mehr

Beitrag 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
openWB
Site Admin
Beiträge: 7904
Registriert: So Okt 07, 2018 1:50 pm

Re: Nissan Leaf - SoC Abfrage funktioniert nicht mehr

Beitrag 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.
Supportanfragen bitte NICHT per PN stellen.
Hardwareprobleme bitte über die Funktion Debug Daten senden mitteilen oder per Mail an support@openwb.de
Sethach
Beiträge: 86
Registriert: Di Okt 16, 2018 6:31 pm

Re: Nissan Leaf - SoC Abfrage funktioniert nicht mehr

Beitrag 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
Sethach
Beiträge: 86
Registriert: Di Okt 16, 2018 6:31 pm

Re: Nissan Leaf - SoC Abfrage funktioniert nicht mehr

Beitrag von Sethach »

Ich pushe das Thema noch mal nach oben, gibt es schon was neues zum Theam Leaf SoC Abfrage?
Antworten