I tested this and the behavior has changed. At this moment the scheduled SOC is 100% and the battery is used for consumption when there is not enough PV power on 3.70~6 while on 3.70~5 the grid is used because the scheduled soc of 100% is maintained.
Only downside with the current fix is that the battery is also used while it is more profitable to use the grid and keep the charge for selling a few hours later.
So it might solve the issue of using grid instead of battery when target soc has reached, but it should only be used when it’s more profitable to use the battery instead of grid.