> extra cleverness needed if the batteries are at different SoCs
The scheme as presented keeps the inverters under equal fraction load, but does not guarantee the batteries end up at equal state of charge. The formula can easily be modified to over time achieve this too:
X = 60 + (fraction load of inverter)*0.1 + per_battery_factor
The per_battery_factor would be set based on the batteries state of charge and/or any user instructions from buttons to charge or discharge a specific battery.
The scheme as presented keeps the inverters under equal fraction load, but does not guarantee the batteries end up at equal state of charge. The formula can easily be modified to over time achieve this too:
X = 60 + (fraction load of inverter)*0.1 + per_battery_factor
The per_battery_factor would be set based on the batteries state of charge and/or any user instructions from buttons to charge or discharge a specific battery.