Skip to content
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

Twingo ZE - KeyError: 'chargeMode' #92

Open
TheReiner opened this issue Jan 16, 2021 · 7 comments
Open

Twingo ZE - KeyError: 'chargeMode' #92

TheReiner opened this issue Jan 16, 2021 · 7 comments

Comments

@TheReiner
Copy link

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
Copy link
Author

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
Copy link
Author

TheReiner commented Jan 16, 2021

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

@epenet
Copy link
Contributor

epenet commented Feb 3, 2021

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

@TheReiner
Copy link
Author

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

@epenet
Copy link
Contributor

epenet commented Feb 3, 2021

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

@TheReiner
Copy link
Author

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 :)

@berti2911
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants