Have a look at ev smart charging:
I use it to plan based on electricity tariffs. I works great.
For a more advanced setup (including load balancing/ battery steering) I highly recommend Emhass, not for the faint of heart but once it works… especially when on dynamic tariff.
https://community.home-assistant.io/t/emhass-an-energy-management-for-home-assistant/