psiloc Hmm, let's see what our 'simplied' version would have done for your values:
batteryKWhCurrent = (currentSOC / 100) * batteryCapaityKWh * 0.9
batteryKWhTarget = dailyUsageKwh - (batteryKwhCurrent + solarYieldKwh)
Plugging your values in:
SOC: 49%
Battery capacity: 10
Solar yield: 7.1
Daily usage: 12
Ends up with batteryKWhTarget of 0.49 KWh, which would be below your set Min SOC of 30% which would have been the target instead, and due to the fact that your current SOC is 49%, it would have kept your battery at 49%.
Happy for improvements to this formula - it definitely needs a buffer of sorts.
I'm worried it would leave people with empty batteries, especially as the KWh prediction isn't reliable for small differences which will end up having a bigger effect on people with smaller usage and battery capacity.