batpred
batpred copied to clipboard
Prebat strange behaviour around Savings Session
Describe the bug Predbat is making poor decisions and intervening too much once enrolled in Savings Session.
It is a sunny day, before the Saving Session came through we had done some early discharging and where sat in Demand, charging the battery for the rest of the day, until planned export later. I use carbon metric so the export was planned in what would become the Saving Session window.
Post enrolling in the saving session I notice Predbat status changed briefly to Charging(!) and has now planned a big block of Freeze Export through the afternoon leaving no battery to export during the Saving Session.
Expected behaviour Produce a sensible plan that makes sensible interventions.
Predbat version
8.15.1
Environment details
- Gen3 Hybrid 5.0
- Predbat as Add-on
Screenshots
Log file
Predbat debug yaml file I turned on debug and will have that file soon after the next run.
After a couple of runs things evened out. But now this shocker. After which I have promptly used the forced demand selectors.
Debug for that plan run.
I had a look at this, its a combination of factors, but you have a 45p/kg weighting on Carbon so exporting during high carbon times can be selected ahead of raw cost. You however also have best_soc_keep set to 1.0 which means if the export takes you below 1 kWh then it can trigger a small charge as a result.
Setting best_soc_keep back to 0 seems to clean up the plan (as would turning off the carbon).
I also found an issue with calculate_export_oncharge when its disabled, fix in the next release