Smart EV charging based on calendar events, solar and dynamic pricing

I’ve seen the EV Smart Charging project on Github (GitHub - jonasbkarlsson/ev_smart_charging: Electric vehicle smart charging for Home Assistant.), but with the features listed I think it won’t be as efficient as it could be. So I’m asking here if anyone has a solution to the following scenario:

Based on when we need the car and where we are going I want the car to be charged enough to go to the location and back without charging it too much to reach a certain default percentage if we don’t need it, especially on expensive hours.

So for example the week would look like this:
Monday - Work from home, no car needed.
Tuesday - Work at office, car needs to drive 162km total on the day.
Wednesday - Work from home, no car needed.
Thursday - Work at office, car needs to drive 162km total on the day.
Friday - Work at office, car needs to drive 162km total on the day.
Saturday/sunday - Most weekends no car needed, otherwise its in a calendar event including location and time.

So I want to charge the car only using solar if prices are negative for suppling power to the grid, but have enough battery for the next event where we need the car. So I’m happy to only charge the car using solar or cheap energy on the weekends if we don’t need the car. Ofcourse you need some battery for unexpected events, but that could be something like 100km range which is about 30% just to be safe. But if the prices are high on friday night and we only need to drive 50km on saturday then I don’t want it to charge to 80% on expensive power. Also for emergency battery I don’t want to charge it when I get home since from 16:00 to 20:00 are the most expensive hours, so I would like an emergency minimal charge of like 10%-15% and a minimal charge of 30% for unexpected events the next day.

With the EV Smart Charging project I don’t think it is possible to set the minimum range or battery level dynamically using calendar events. And to go even further also integrate with weather prediction to determine the actual range of the car.

Does anyone have a setup like this? Is it possible to do this with the EV Smart Charging project with some extra scripts? or am I going to far with this and should I just accept the “basic” features of EV Smart Charging?

My local setup: Homeassistant in Docker, Peblar Home charger (integrated with Homewizard P1) and Hyundai Ioniq 5 77kWh.