jamesremuscat / pyze

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

chargeto example program #105

Closed ifly7charlie closed 2 years ago

ifly7charlie commented 2 years ago

This is a simple python script that shows how to use some of the PYZE API - it's a bit easier to read than the CLI script.

It can be run to stop the charging of a Zoe at a specified percentage - eg 85% which is also useful as it means that 'B' mode doesn't get restricted because the battery is too full ;)

There is some documentation on how it works in the readme.md file and there are extensive comments in the source.

I have done some testing, but no promises it always works - especially with fast chargers! I have also not had a flat enough battery to confirm the below threshold charging starts properly...

ifly7charlie commented 2 years ago

I'll raise again on a branch so I can submit --json as well