I have activated dynamic ESS recently. It does what I expect but sometimes I find counter intuitive behaviour. Like today.
Its a sunny sunday noon. But the system ist feeding to the grid instead of charging the battery. In addition, the system has planned to charge the battery from the grid this afternoon when the price is lowest.
What is the intention of the system to use the pricier grid power instead of solar to charge the battery?
I started looking at your code. I think the solution is pretty much the same for Trade mode as well. Even in Trade mode, the system works via the TargetSOC setting. And that’s where the problem starts. TargetSOC == SOC means the system should not take energy from the battery but from the grid, because the grid is cheap. But… hmm… unfortunately this also means that it’s not charging the battery from solar surplus because… yeah…