I did a few small automation for my car and the charger.
When I plug in the charger at home, it will check the current electricity prices and if below a certain threshold it will setup a plan to charge in those hours.
I also have a button I can press to make a plan depending on how many kwh I need as well as when I need it.
It will then automatically start and stop the charger based on these plans