DESS Unexpected behavior

I am using the green mode of Dynamic ESS.
At this moment my system is selling back at the grid with the battery far from 100%
Why is this?
Also I see that the system decided to get power from the grid and not from the battery.
Can please someone explain to me what settings I have mist?
I realy only want to sell back when the battery is full or almost full, and using the grid for my loads when the battery is below 10%