This “depends” is the answer. DESS is not a 24/7 always-on EMS deciding in seconds. Generelly your system will be doing ESS, so driving loads from battery is the “default”.
DESS then will just add some managed timeframes to the day, i.e. deciding when to force charge, force discharge - or just idle to favor the grid.
The driving factors behind these instructions are solar- and consumption forecasts.
And your day there is plenty of solar, very little expected consumption - your system quite sure is running in vanilla-ess mode.
Only if the scheduler would see, that there is a need for energy from grid, it will start to apply strategies on certain timeframes, to “direct” grid pull into cheap hours.
As long as you see the scheduler expecting 4 hours of 100% Soc, it won’t encourage energy beeing pulled from grid by adding constraints anywhere.
It will re-evaluate that every 15 minutes, tho. So, by the time the last 100% hour vanishes, it will still allow battery to be used and reduce the amount of bat2grid planed for the evening.
Then, if that all is 0, and your SoC starts to no longer be sufficient through the night - then it may decide to idle the battery during cheap buy-hours or even charge the battery from grid.
A, trademode it’s a different scheduling. The scheduler generally decides to keep the battery as empty as possible before the “best buy opportunity”.
So, feeding the ev from battery “supports” that. If you would do the maths on that (can’t see your prices) it will quite sure work out.
If the current buy price is a bit higher than what you will buy for later (after losses and roundtrip costs) - then, spending battery on the ev does make economical sence. It’s then basically “charging ev now and buying later for less money”