Since a while I wanted to have my Minimum SoC setpoint controlled by weather (solar yield) forecast and others parameters. So in the end to get a dynamic SOC control.
After digging into the matter I have a solution that might be interesting for others too.
My solution might be an overkill for many users, but it has some really nice feature as it allows to charge the battery with cheap grid power at night.
All the details you can find in the Github repo: