Predbat charging (from grid) when plenty of solar is expected
Describe the bug Predbats goes in to charging mode on days when PV energy is more than enough to fully charge the battery. If clouds arrive or PV is not enough to cover the max charging allowed to the battery it will draw power from the grid.
Expected behaviour Expecting that predbat stays in Demand mode during days with enough sunshine.
Predbat version
8.16.3
Environment details
- Solax inverter/battery
- Standard HAOS installer
- Swedish Nordpool (SE3) prices
Screenshots
Plan:
predbat.status switching between demand/charge/hold when sun is shining at full blast:
Log file Can you capture a log file from the time of the issue, debug mode is not normally required.
Predbat debug yaml file
Adding some info from today's plan that shows the same behavior with charging at 12-13. I also reverted metric_self_sufficiency back to 0 in this one, which was set to 20 in my initial post. So all settings are pretty much default now, except for metric_min_improvement_export which i don't think matters in this case
predbat_debug_09_25_00.yaml.txt
Plan:
Adding a more complete picture
The second charge at 16:30 is a hold at 100%, its used to run from grid at around 125 otherwise you import more at 138/140 range later on, you still run out of battery for the 132 price even with that hold.
The only question then is why the charge to 79 at 12:00 - let me run the plan without it next
There's something odd here, if I put the two side by side as the plan with the charge appears to export more rather than less, will debug further
So you have a hybrid inverter with a 20kw limit, an export limit of 11kw and a battery charge rate of 6kw? This means the PV is more than enough to charge the battery at full rate regardless of if charge is enabled or not.
Your battery charge curve tails off at 91% onwards and with the given export limit you will be getting clipping (lost solar you can't export)
All very odd...
Adding a more complete picture
The second charge at 16:30 is a hold at 100%, its used to run from grid at around 125 otherwise you import more at 138/140 range later on, you still run out of battery for the 132 price even with that hold.
The only question then is why the charge to 79 at 12:00 - let me run the plan without it next
Yes, I understand the second charge at 100% and that one seems reasonable. At least as long as the prices for tomorrow are unknown.
It’s those mid day charges are a bit strange and by looking at the history of predbat.status it is also switching between hold and charge at times not shown in the plans I uploaded. So the plan must have changed a bit during the day.
Let me know if you need any more debug files that match those time stamps.
So you have a hybrid inverter with a 20kw limit, an export limit of 11kw and a battery charge rate of 6kw? This means the PV is more than enough to charge the battery at full rate regardless of if charge is enabled or not.
Your battery charge curve tails off at 91% onwards and with the given export limit you will be getting clipping (lost solar you can't export)
All very odd...
Correct. The charge curve is a bit uncertain though, but somewhat close to reality.
The battery capacity will be expanded with 120 kWh EV battery’s which I haven’t had time to connect yet and I actually tried setting the capacity to 120 kWh in Predbat just to see the plan, from what I can remember it still had some charging planned at that occasion. But also a lot higher prices in the evening that made it profitable to export.
Okay I've found the issue, there's an assumption in the code that is probably wrong that if the battery is set to charge to say 80% that if there is more solar than load and the battery is about to reach that target it won't store the extra solar in the battery. In reality I think it will actually do so, I'll make a fix
Fix on 'main'
https://github.com/springfall2008/batpred/releases/tag/v8.16.4
Awesome! Looking good so far!
The strange charging slot is gone and some export slots has showed up in the plan for tomorrow.
Seems logical and I guess those are meant to make as much profit of the solar energy as possible?
The hold charge is a little odd however as the battery is already full, I'd be interested to see the debug YAML if you get that again
The hold charge is a little odd however as the battery is already full, I'd be interested to see the debug YAML if you get that again
This one is from 09:25 the same day, but should have the same hold charge. (I have adjusted my export limit from 11 kW to 13 kW in this debug file, since 11 kW was a limit I had earlier, before the expansion of my PV system) predbat_debug_09_25_00.yaml.txt
Things have been working pretty well recently, but today the plan is showing some unwanted charging slots again.
predbat_debug_07_00_00.yaml.txt