jamesremuscat / pyze

Unofficial Python client and API for Renault ZE
MIT License
111 stars 29 forks source link

Does charge mode work for some users? #84

Open epenet opened 4 years ago

epenet commented 4 years ago

Hi everyone,

I can't seem to find a discussion regarding the charge_mode endpoint. Currently it fails on my Zoe (ZE40 R90) : 500 Server Error: Internal Server Error on url...

Is this one of those endpoints that is only available on ZE50?

jamesremuscat commented 4 years ago

Working for my ZE40 Q90:

DEBUG:urllib3.connectionpool:https://api-wired-prod-1-euw1.wrd-aws.com:443 "GET /commerce/v1/accounts/xxxxxxxxxxxxxx/kamereon/kca/car-adapter/v1/cars/xxxxxxxxxxxxxx/charge-mode?country=GB HTTP/1.1" 200 None
DEBUG:pyze.api.kamereon:Received Kamereon vehicle response: {"data":{"type":"Car","id":"xxxxxxxxxxxxxx","attributes":{"chargeMode":"schedule_mode"}}}
epenet commented 4 years ago

Looks like my "ZE interactive" contract didn't renew properly... My "Z.E. Connect" contract renewed ok, but ZE interactive is stuck in "activating"

I wonder if it's possible to get that information from PYZE. It appears in my contract list on the Renault app...

sunilson commented 4 years ago

I think this isn't yet implemented in Pyze but I found the endpoint while building my own Zoe app:

https://api-wired-prod-1-euw1.wrd-aws.com/commerce/v1/accounts/{accountId}/vehicles/{vin}/contracts?connectedServicesContracts=true&warranty=true&warrantyMaintenanceContracts=true&country=AT&lang=de&brand=RENAULT

Maybe something that can be implemented in the future in Pyze also :)