or, use Home Assistant to handle your charging schedules.
or even better, use EVCC https://github.com/evcc-io/evcc
or even better, use EVCC https://github.com/evcc-io/evcc