-
-
Notifications
You must be signed in to change notification settings - Fork 641
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
evcc Nissan Leaf Login failed: code not found #13941
Comments
Hi Andi, since yesterday (16.05.2024) I can not query my nissan leaf. the days before it worked fine. The Android Nissan Tool works, so I think Nissan changed something in their setup :(. thanks for having a look on it. gorman |
Yes, I can confirm that the carwings API might have changed, since I cannot query my Leaf either. I can see the problem with the carwings implementation of FHEM also. Android APP works, so no server problem on Nissan side. Someone needs to run apktool and find out the changes, hopefully they only have changed some URLs, like 4 years ago: https://gitlab.com/tobiaswkjeldsen/dartcarwings/-/issues/15 |
Gibts eine Lösung mit der das noch funktioniert? Welche? |
Bislang kann man im Netz noch keine Infos dazu finden. Ich hoffe es wurde nur die baseURL geändert. Ich werden nachher mal die Aufruf von meiner NissanConnected App auf dem Handy sniffen, welche URLs aktuell abgefragt werden. |
Sniffen geht nicht, die Aufrufe werden über Port 443 geroutet. Da komm ich nicht ran. Zumindest sehe ich, dass die Aufrufe noch an Auch beim Versuch die NissanConnected APK aus einem APK-Store zu laden und zu dekompilieren finde ich keine URL. Habe das aber zum ersten Mal versucht. Kann also an mir liegen. Edit: Lag an mir, hab zuerst die falsche APK runtergeladen, dann eine alte Version. 🤣 |
@andig https://github.com/joeshaw/carwings/blob/195f7e10e96699915c18cf10dfafdccad2870aca/carwings.go#L53 |
same problem (with an Ariya)
|
@andig Ich habe dennoch einen fork von carwings gemacht und habe versucht einen PR zu machen, der auf mein Repository verweist. Bin aber zu unerfahren, das bekomme ich nicht hin. 😟 |
Carwings ist im master aktualisiert. Ich sehe lokal keinen Unterschied, kann aber am Testfahrzeug liegen. Nightly baut. Bitte kurzes OK, dann würde ich nochmal releasen. |
d.h. ich kann die binary nachher bei cloudsmith runterladen und testen? |
Ok, Paket ist fertig und erfolgreich getestet: |
correct paste
|
Tja... |
Not working for me. |
For me also not working, sorry... pi@raspberrypi:~ $ evcc -l debug vehicle |
Strange.... 🤔 Mai 18 11:56:31 fhem-heizung evcc[19475]: [main ] INFO 2024/05/18 11:56:31 evcc 0.126.3 (562c702c)
Mai 18 11:56:31 fhem-heizung evcc[19475]: [main ] INFO 2024/05/18 11:56:31 using config file: /etc/evcc.yaml
Mai 18 11:56:31 fhem-heizung evcc[19475]: [main ] INFO 2024/05/18 11:56:31 starting ui and api at :7070
Mai 18 11:56:32 fhem-heizung evcc[19475]: [db ] INFO 2024/05/18 11:56:32 using sqlite database: /var/lib/evcc/evcc.db
Mai 18 11:56:41 fhem-heizung evcc[19475]: [site ] INFO 2024/05/18 11:56:41 site config:
Mai 18 11:56:41 fhem-heizung evcc[19475]: [site ] INFO 2024/05/18 11:56:41 meters: grid ✓ pv ✓ battery ✓
Mai 18 11:56:41 fhem-heizung evcc[19475]: [site ] INFO 2024/05/18 11:56:41 grid: power ✓ energy ✗ currents ✗
Mai 18 11:56:41 fhem-heizung evcc[19475]: [site ] INFO 2024/05/18 11:56:41 pv 1: power ✓ energy ✗ currents ✗
Mai 18 11:56:41 fhem-heizung evcc[19475]: [site ] INFO 2024/05/18 11:56:41 battery 1: power ✓ energy ✗ currents ✗ soc ✓ capacity ✓
Mai 18 11:56:41 fhem-heizung evcc[19475]: [site ] INFO 2024/05/18 11:56:41 vehicles:
Mai 18 11:56:41 fhem-heizung evcc[19475]: [site ] INFO 2024/05/18 11:56:41 vehicle 1: range ✗ finish ✗ status ✗ climate ✗ wakeup ✗
Mai 18 11:56:41 fhem-heizung evcc[19475]: [site ] INFO 2024/05/18 11:56:41 vehicle 2: range ✓ finish ✗ status ✓ climate ✓ wakeup ✗
Mai 18 11:56:41 fhem-heizung evcc[19475]: [site ] INFO 2024/05/18 11:56:41 vehicle 3: range ✗ finish ✗ status ✗ climate ✗ wakeup ✗
Mai 18 11:56:41 fhem-heizung evcc[19475]: [lp-1 ] INFO 2024/05/18 11:56:41 loadpoint 1:
Mai 18 11:56:41 fhem-heizung evcc[19475]: [lp-1 ] INFO 2024/05/18 11:56:41 mode: pv
Mai 18 11:56:41 fhem-heizung evcc[19475]: [lp-1 ] INFO 2024/05/18 11:56:41 charger: power ✓ energy ✓ currents ✓ phases ✗ wakeup ✗
Mai 18 11:56:41 fhem-heizung evcc[19475]: [lp-1 ] INFO 2024/05/18 11:56:41 meters: charge ✓
Mai 18 11:56:41 fhem-heizung evcc[19475]: [lp-1 ] INFO 2024/05/18 11:56:41 charge: power ✓ energy ✓ currents ✓
Mai 18 11:56:41 fhem-heizung evcc[19475]: [lp-2 ] INFO 2024/05/18 11:56:41 loadpoint 2:
Mai 18 11:56:41 fhem-heizung evcc[19475]: [lp-2 ] INFO 2024/05/18 11:56:41 mode: off
Mai 18 11:56:41 fhem-heizung evcc[19475]: [lp-2 ] INFO 2024/05/18 11:56:41 charger: power ✓ energy ✓ currents ✗ phases ✗ wakeup ✗
Mai 18 11:56:41 fhem-heizung evcc[19475]: [lp-2 ] INFO 2024/05/18 11:56:41 meters: charge ✓
Mai 18 11:56:41 fhem-heizung evcc[19475]: [lp-2 ] INFO 2024/05/18 11:56:41 charge: power ✓ energy ✓ currents ✗
Mai 18 11:56:41 fhem-heizung evcc[19475]: [lp-3 ] INFO 2024/05/18 11:56:41 loadpoint 3:
Mai 18 11:56:41 fhem-heizung evcc[19475]: [lp-3 ] INFO 2024/05/18 11:56:41 mode: off
Mai 18 11:56:41 fhem-heizung evcc[19475]: [lp-3 ] INFO 2024/05/18 11:56:41 charger: power ✓ energy ✗ currents ✗ phases ✗ wakeup ✗
Mai 18 11:56:41 fhem-heizung evcc[19475]: [lp-3 ] INFO 2024/05/18 11:56:41 meters: charge ✓
Mai 18 11:56:41 fhem-heizung evcc[19475]: [lp-3 ] INFO 2024/05/18 11:56:41 charge: power ✓ energy ✗ currents ✗
Mai 18 11:56:41 fhem-heizung evcc[19475]: [site ] DEBUG 2024/05/18 11:56:41 set buffer soc: 70
Mai 18 11:56:41 fhem-heizung evcc[19475]: [site ] DEBUG 2024/05/18 11:56:41 set buffer start soc: 75
Mai 18 11:56:41 fhem-heizung evcc[19475]: [site ] DEBUG 2024/05/18 11:56:41 set priority soc: 40
Mai 18 11:56:41 fhem-heizung evcc[19475]: [lp-1 ] DEBUG 2024/05/18 11:56:41 phase timer inactive
Mai 18 11:56:41 fhem-heizung evcc[19475]: [lp-1 ] DEBUG 2024/05/18 11:56:41 pv timer inactive
Mai 18 11:56:41 fhem-heizung evcc[19475]: [lp-1 ] INFO 2024/05/18 11:56:41 vehicle updated: unknown -> Nissan Leaf
Mai 18 11:56:41 fhem-heizung evcc[19475]: [lp-1 ] DEBUG 2024/05/18 11:56:41 max charge current: 6A
Mai 18 11:56:41 fhem-heizung evcc[19475]: [site ] WARN 2024/05/18 11:56:41 interval <30s can lead to unexpected behavior, see https://docs.evcc.io/docs/reference/configuration/interval
Mai 18 11:56:41 fhem-heizung evcc[19475]: [site ] DEBUG 2024/05/18 11:56:41 ----
Mai 18 11:56:41 fhem-heizung evcc[19475]: [lp-1 ] DEBUG 2024/05/18 11:56:41 charge power: 4888W
Mai 18 11:56:41 fhem-heizung evcc[19475]: [lp-1 ] DEBUG 2024/05/18 11:56:41 charge currents: [23 0 0]A
Mai 18 11:56:41 fhem-heizung evcc[19475]: [lp-1 ] DEBUG 2024/05/18 11:56:41 charge voltages: [220 237 235]V
Mai 18 11:56:41 fhem-heizung evcc[19475]: [lp-1 ] DEBUG 2024/05/18 11:56:41 detected connected phases: 3p
Mai 18 11:56:41 fhem-heizung evcc[19475]: [lp-1 ] DEBUG 2024/05/18 11:56:41 charge total import: 3708.847kWh
Mai 18 11:56:42 fhem-heizung evcc[19475]: [lp-1 ] DEBUG 2024/05/18 11:56:42 charger status: C
Mai 18 11:56:42 fhem-heizung evcc[19475]: [lp-1 ] DEBUG 2024/05/18 11:56:42 charge start energy: 3.71e+03kWh
Mai 18 11:56:42 fhem-heizung evcc[19475]: [lp-1 ] INFO 2024/05/18 11:56:42 car connected
Mai 18 11:56:42 fhem-heizung evcc[19475]: [lp-1 ] DEBUG 2024/05/18 11:56:42 pv timer elapse
Mai 18 11:56:42 fhem-heizung evcc[19475]: [lp-1 ] DEBUG 2024/05/18 11:56:42 pv timer inactive
Mai 18 11:56:42 fhem-heizung evcc[19475]: [lp-1 ] DEBUG 2024/05/18 11:56:42 charge total import: 3708.847kWh
Mai 18 11:56:42 fhem-heizung evcc[19475]: [lp-1 ] DEBUG 2024/05/18 11:56:42 charge start energy: 3.71e+03kWh
Mai 18 11:56:42 fhem-heizung evcc[19475]: [lp-1 ] INFO 2024/05/18 11:56:42 start charging ->
Mai 18 11:56:42 fhem-heizung evcc[19475]: [lp-1 ] DEBUG 2024/05/18 11:56:42 wake-up timer: stop
Mai 18 11:56:44 fhem-heizung evcc[19475]: [lp-1 ] DEBUG 2024/05/18 11:56:44 max charge current: 22A
Mai 18 11:56:51 fhem-heizung evcc[19475]: [lp-1 ] DEBUG 2024/05/18 11:56:51 charge power: 4894W
Mai 18 11:56:51 fhem-heizung evcc[19475]: [lp-1 ] DEBUG 2024/05/18 11:56:51 charge currents: [23 0 0]A
Mai 18 11:57:01 fhem-heizung evcc[19475]: [lp-1 ] DEBUG 2024/05/18 11:57:01 charge power: 4882W
Mai 18 11:57:01 fhem-heizung evcc[19475]: [lp-1 ] DEBUG 2024/05/18 11:57:01 charge currents: [22 0 0]A
Mai 18 11:57:11 fhem-heizung evcc[19475]: [lp-1 ] DEBUG 2024/05/18 11:57:11 charge power: 4895W
Mai 18 11:57:11 fhem-heizung evcc[19475]: [lp-1 ] DEBUG 2024/05/18 11:57:11 charge currents: [23 0 0]A
Mai 18 11:57:11 fhem-heizung evcc[19475]: [lp-1 ] DEBUG 2024/05/18 11:57:11 charge voltages: [220 237 235]V
Mai 18 11:57:11 fhem-heizung evcc[19475]: [lp-1 ] DEBUG 2024/05/18 11:57:11 detected connected phases: 3p
Mai 18 11:57:11 fhem-heizung evcc[19475]: [lp-1 ] DEBUG 2024/05/18 11:57:11 detected active phases: 1p
Mai 18 11:57:11 fhem-heizung evcc[19475]: [lp-1 ] DEBUG 2024/05/18 11:57:11 !! session: chargeRater.chargedEnergy=0.0 - chargedAtStartup=0.0
Mai 18 11:57:11 fhem-heizung evcc[19475]: [lp-1 ] DEBUG 2024/05/18 11:57:11 charge total import: 3708.885kWh
Mai 18 11:57:11 fhem-heizung evcc[19475]: [lp-1 ] DEBUG 2024/05/18 11:57:11 charger status: C
Mai 18 11:57:14 fhem-heizung evcc[19475]: [lp-1 ] DEBUG 2024/05/18 11:57:14 vehicle status: C
Mai 18 11:57:14 fhem-heizung evcc[19475]: [lp-1 ] DEBUG 2024/05/18 11:57:14 vehicle soc: 78%
Mai 18 11:57:14 fhem-heizung evcc[19475]: [lp-1 ] DEBUG 2024/05/18 11:57:14 vehicle range: 175km
Mai 18 11:57:14 fhem-heizung evcc[19475]: [lp-1 ] DEBUG 2024/05/18 11:57:14 pv charge current: 12.1A = 22A + -9.88A (2273W @ 1p)
Mai 18 11:57:14 fhem-heizung evcc[19475]: [lp-1 ] DEBUG 2024/05/18 11:57:14 pv timer reset
Mai 18 11:57:14 fhem-heizung evcc[19475]: [lp-1 ] DEBUG 2024/05/18 11:57:14 pv timer inactive
Mai 18 11:57:14 fhem-heizung evcc[19475]: [lp-1 ] DEBUG 2024/05/18 11:57:14 max charge current: 12.1A
Mai 18 11:57:21 fhem-heizung evcc[19475]: [lp-1 ] DEBUG 2024/05/18 11:57:21 charge power: 2709W
Mai 18 11:57:21 fhem-heizung evcc[19475]: [lp-1 ] DEBUG 2024/05/18 11:57:21 charge currents: [12 0 0]A Hier noch mit
I am using "linux" with "arm" architecture (Raspi 4). |
This comment was marked as resolved.
This comment was marked as resolved.
Please do a log with debug infos and search for this line:
I want to verify which URL your evcc carwings is using. |
ich bin auch unter raspberry Pi 4 arm (Raspbian/buster) ein strings /usr/bin/evcc | grep api_v230317_NE matched.. also die neue API ist enthalten was mich aber etwas wundert. wenn ich ein strace -s 2048 -f -o /tmp/strace evcc -l debug vehicle laufen lasse... dann kann ich im strace den Aufruf auf die URL nicht finden .... strange ... ich hätte erwartet dass ich da im strace irgendwo den Aufruf finde @andig was genau brauchst Du an debug Info, dann kann ich versuchen das bereit zu stellen? Danke |
Was mir eben noch auffällt. ich nutze template: nissan ist die URL nur für carwings evtl. geändert? |
Ich bin bei Der Fix ist NUR für Carwings. Welche Android App nutzt du dafür auf dem Handy? Dann schau ich mir hier die aktuelle Version noch an. |
Also: behoben wurde |
Nightly baut |
so type: nissan funktioniert wieder. Vielen lieben Dank @andig |
Confirmation : working now. |
Auch hier läuft es mit der unstable wieder ... Danke! |
two changes 1st re line 75: Nissan changed the Base URL of its Carwings API. Since May 20, 2024 the old URL doesn't work anymore. (Source: evcc-io/evcc#13941) 2nd re line 121: The additional parameter 'headers={"User-Agent": ""}' is at least needed to run pycarwings2.py on a Windows 10 PC with Python 3.12 for test purpose. May be it's not needed in OpenWB itself. (Source: https://github.com/filcole/pycarwings2/blob/master/pycarwings2/pycarwings2.py line 125) For more details see my posts at https://forum.openwb.de/viewtopic.php?p=109761#p109761 ff
Describe the bug
cannot query my Nissan Leaf.
Steps to reproduce
...
Configuration details
Log details
What type of operating system are you running?
Linux
Version
evcc version 0.126.2 (940ce81)
The text was updated successfully, but these errors were encountered: