batpred icon indicating copy to clipboard operation
batpred copied to clipboard

No export being planned when clipping will happen.

Open theholyfish opened this issue 9 months ago • 4 comments

Describe the bug No export being planned when clipping will occur.

Expected behaviour Export to happen automatically via predbat planning. I'm forcing export so I don't clip. [

predbat-2.log Image

Image apps.yaml.txt predbat_debug.yaml.txt

](url)

Predbat version 8.16.7

Environment details

  • solaredge system.
  • 6kw homehub inverter
  • 10 kW battery.
  • Standard HAOS. Version 15.0
  • Anything else?

Screenshots If applicable, add screenshots to help explain your problem. The most useful ones can be your battery chart, the Predbat HTML plan and your current settings in HA.

Log file Can you capture a log file from the time of the issue, debug mode is not normally required.

Predbat debug yaml file Enable debug mode and let Predbat run for one cycle. Look in the 'debug' directory under the Predbat add-on and take the .yaml file for the time period in question. Rename the predbat_debug_XX_XX_XX.yaml to predbat_debug_XX_XX_XX.yaml.txt and upload it to Github. This will allow your plan to be reproduced and also stores all your settings for review.

theholyfish avatar Mar 24 '25 14:03 theholyfish

See #1206

gcoan avatar Mar 24 '25 15:03 gcoan

I'm looking at 1206

springfall2008 avatar Mar 24 '25 20:03 springfall2008

The version on main with 'calculate_export_oncharge' set on appears to be better but not perfect. I'll continue to review this

Image

springfall2008 avatar Apr 04 '25 11:04 springfall2008

This approach doesn't work for DC coupled battery systems. We need to be exporting before the clipping period, not during. So that the battery can be charged slowly to soak up as much of the generation as possible, since trickle charging the battery from solar is not subject to the inverter limits, so we can maximise export.

Having the battery sat at 100% creates the clipping scenario.

I think the only solution seems to be as suggested in other threads, schedule exporting early morning, and limit charge current to give room in the battery to cover periods that would otherwise result in clipping.

raldred avatar Apr 09 '25 10:04 raldred