pyze icon indicating copy to clipboard operation
pyze copied to clipboard

Twingo ZE - KeyError: 'chargeMode'

Open TheReiner opened this issue 4 years ago • 7 comments

Hi, it work very well with my Zoe but i buy a new car... An Electric Twingo ZE and i have this error

Thanks

/Renault# pyze status --vin VF1AXXXXXXXXXXXXXX Traceback (most recent call last): File "/usr/local/bin/pyze", line 11, in load_entry_point('PyZE==0.5.0', 'console_scripts', 'pyze')() File "/usr/local/lib/python3.7/dist-packages/PyZE-0.5.0-py3.7.egg/pyze/cli/main.py", line 69, in main File "/usr/local/lib/python3.7/dist-packages/PyZE-0.5.0-py3.7.egg/pyze/cli/status.py", line 63, in run File "/usr/local/lib/python3.7/dist-packages/PyZE-0.5.0-py3.7.egg/pyze/api/kamereon.py", line 202, in charge_mode KeyError: 'chargeMode'

TheReiner avatar Jan 16 '21 20:01 TheReiner

Same problem with 0.60

Traceback (most recent call last): File "/usr/local/bin/pyze", line 11, in load_entry_point('PyZE==0.6.0', 'console_scripts', 'pyze')() File "/usr/local/lib/python3.7/dist-packages/PyZE-0.6.0-py3.7.egg/pyze/cli/main.py", line 69, in main File "/usr/local/lib/python3.7/dist-packages/PyZE-0.6.0-py3.7.egg/pyze/cli/status.py", line 63, in run File "/usr/local/lib/python3.7/dist-packages/PyZE-0.6.0-py3.7.egg/pyze/api/kamereon.py", line 202, in charge_mode KeyError: 'chargeMode'

TheReiner avatar Jan 16 '21 20:01 TheReiner

I find a solution.... If you see on My renault APP, charge management is on Unknow

IMG_2846

So i think for the case to add "Unknow" on your script kamereon.py :-) And if you have this error just put this command

pyze charge-mode --always --vin VF1XXXXXXXXXXXX

TheReiner avatar Jan 16 '21 20:01 TheReiner

@TheReiner is this still occuring? Did you get a chance to get a trace of the full json?

epenet avatar Feb 03 '21 19:02 epenet

Hi Epenet, i don't know why... but since 3 days, i haven't "Unknow" now... Maybe wait for another case :)

TheReiner avatar Feb 03 '21 19:02 TheReiner

If it happens again it would be great to have a trace, so that I can adjust renault-api accordingly..

epenet avatar Feb 03 '21 19:02 epenet

I thinkI think I had this error because my car was new, and I think it was partially active... So I think I will no longer have the error and that we have to wait for a new buyer :)

TheReiner avatar Feb 03 '21 19:02 TheReiner

Here is a new buyer :-) I had the same problem and with the hint of your post i know now that the unknown charge mode message disappears when you select the charge mode one time in your car (settings/EV programming/charge mode). Same for climate contol

berti2911 avatar Aug 08 '22 18:08 berti2911