AutoPi for EV charge smart management?

Hi
I’m looking for a method to bypass a strong limitation of my Opel Corsa Electric.
I need to optimize the charging by stopping to 80% of battery capacity of my Opel Corsa Electric, but the onboard sw dose not manage this.
So I’m looking for a way to read (continuosuly or every few minutes) the actual charge level of the battery and use that value to cut the electricity before the wallbox. I have wifi in the car park and can play with domotic switches and I can code in python. Is AutoPI of any help?
Thanks a lot
Roberto