admin
There's no DNO export limit set.
It is then indeed the solar that gets converted to AC and directly exported to the grid together with what the inverter can handle to send to the grid.
The challenge is hence the calculation to set the end time. I don't think there's a need to check the SOC every few minutes.
I think you can either:
a) 5 or so mins before the calculated end time verify the SOC once and if that if still too far from desired SOC at end time, just extend the end time once linearly.
b) look at the solar forecast between start and end date and add that value to calculate a new end time
Both should be pretty straight forward. a) is likely much easier to program.
As summer is around the corner, this will gradually gets worse. I'm now already not using 20% of the capacity of the battery that I could sell. As daylight gets longer and longer, then will just increase.