Questions, let's say we have this:
var batteryKWhCurrent = (currentSOC / 100) * batteryCapacityKWh * 0.9
var batteryKWhTargetDelta = dailyUsageKWh - (batteryKWhCurrent + solarYieldKWh)
Obviously any negative delta will be set to 0.
The next step is to calculate the required targetSOC state,so:
var batteryTargetSOC = (batteryKWhTargetDelta+batteryKWhCurrent) / batteryCapacityKWh * 100
This works fairly OK, and we could introduce a correction (which can be specified by the user in Advanced Settings or such) to the batteryKWhTargetDelta
variable.
Question is what type of correction to apply. A percentage of the battery? Additional value in kWh to always apply? Correction multiplier (or percentage of delta) doesn't really work because the closer the delta is to 0, the correction diminishes, equally, the further apart, the more exaggerated the correction becomes.
Perhaps an additional % of the battery capacity to add makes sense. But maybe only if target SOC is below a certain threshold? Or is that now too confusing and similar to 'always charge to min SOC'?
What do you all think? Appreciate your input.