There are several topics in this forum for generic load balancing flows. Such flows examples can be used in your case.
@Picsou621 has had great success in optimizing. For example have a look at Charging EV with Advanced Flows .
One note, that the EV charger does not know what is the percentage of charge in the car. You would need a car make/model specific app to read the state of charge.