Is anyone interested in being nerd sniped by optimising my house solar + battery charging?

I have:
* solar panels
* battery storage
* heat pump
* forecast.solar for solar generation forecasts
* grid carbon intensity forecasts
* grid cost data (differing import cost and export pay)

I'd like to minimise cost, minimise carbon, and still have sufficient electricity available.

I'm probablly over thinking it ...