Has anyone thought about this yet:
I have a Solax X1-Hybbrid G4 with batteries and a feed-in contract. It runs smoothly with the modbus integration which frankly is a wet dream, purring like a cat and giving me access to absolutely every setting and sensor. Now in the winter time without sufficient solar harvest for self use and a full battery at sundown I am taking advantage of the cheaper night rates and am charging the battery to full. (I had to write an automation that limits the charging current to 12A not to trip the mains, as the full 30A results in way more power than my contract allows. It also switches the night charging to disabled during day in case HA goes offline during day time. Works wonderfully. Now, after I put that toggle switch in, and it tripped at midnight when I was 1000km away and my wife unplugged the UPS that is supplying HA and the wifi, as its beeping was giving the dog a panic attack. Solving the situation involved over the phone instructions to go in the cellar with a torch to switch off the inverter manually of which neither of us had any idea how to do it…I am digressing…Maybe open another thread titled Tales from your individual HA journey.)
As the days get longer and brighter now I want to optimise the whole thing incrementally reducing battery SOC using as little night charging as necessary and eventually get to the point when I do not need any grid power at all. I am trying to think of a formula for this even including predicted sunshine. Anyone done that before?