Calculating when to start charging the battery could be more sophisticated

Having a 15 kwh battery pack… was down to 20%
DESS (Trade mode) is set to 5 kw “Maximum charge power”

https://vrm.victronenergy.com/installation/482947/share/7294de89

DESS scheduled to start charge the battery at 13:00… I can understand why, because that is the cheapest hour during daylight. But, charging 80% of a 15 kwh battery during one hour, set to 5 kw charging speed is not possible… and it could not manage it. So, it ended up charging from 13:00 till 17:00, and only to 73%, and therefor charged on hours that where more expensive than the 11:00 and 12:00 hour.

DESS should look/think like (just thinking out loud here) :
I have a battery that needs 12 kwh of charging at a max of 5 kw.
In order for me to do that, I need at least 3 hours.
Lets start finding the cheapest hour… that’s 13:00
Then lets find our second hour that is the cheapest (and not already taken)… that’s the 12:00 hour.
Then lets find our third hour that is the cheapest (and not already taken)… that’s the 14:00 hour

So, I’ll have to begin charging the battery at 12:00 and if solar power looks to be good at the cheapest hour (13:00), I’ll plan to charge at full power in that hour and maybe at a little less power in the other hours.

And of cause still look into the solar and consumption forecast and what else it looks into.

Wouldn’t that be possible to implement? Or do I need to look into Node-Red

Have now tried switching from “Trade mode” to “Green mode”… which is not working either.
Now it charges the battery as soon as there is PV power without looking at the sell price.
Even though is says it will “Charge battery when prices are low”
image

So, I switched back to “Trade mode”… and now, again, it plans to begin charge the battery at the cheapest hour (13:00)… even though it needs at least 3 hours of charging. So it should start at 12:00 is order to charge at the cheapest 3 hours.

OMG… now in one of the most expensive hours it toggles between charging and discharging… but drawing from the grid at the same time… this is really f…ed up :grimacing: