batpred icon indicating copy to clipboard operation
batpred copied to clipboard

Zero-rated import not causing battery to discharge beforehand

Open chris-y opened this issue 9 months ago • 5 comments

Describe the bug When I have a zero-rated period (power-up) Predbat was discharging as much as possible before the session, so it could charge the battery back up during the session. For some reason this is no longer happening the last couple of times. I'm using 8.16.0 beta but it started before I tried that.

Expected behaviour Predbat should discharge the battery as much as possible to maximise revenue, and then charge it back up whilst it is free.

Predbat version

8.16.0 beta

Environment details

  • Solis inverter with custom scripts
  • Standard HAOS installer

Screenshots

ResizedImage_2025-03-04_17-57-42_2020.png

Plan HTML: predbat_plan.zip

Predbat debug yaml file

predbat_debug.zip

chris-y avatar Mar 04 '25 16:03 chris-y

Setting metric_min_improvement_export to 3 appears to fix this

Image

springfall2008 avatar Mar 08 '25 19:03 springfall2008

It's weird, this has been ok, but there's another session tomorrow and Predbat decided on no export beforehand and no charging during the session.

I've force export for the half hour before the free electricity, and now it is exporting beforehand (although quite a long time beforehand, not immediately before) and charging during the session.

chris-y avatar Mar 17 '25 17:03 chris-y

It's weird, this has been ok, but there's another session tomorrow and Predbat decided on no export beforehand and no charging during the session.

would need to see the plan, but one reason could be that if the solar forecast is greater than your inverter charge capacity then there's no benefit to grid importing at 0p

I'm seeing some of this happening tomorrow for the power up, my max charge rate is 2x2.6kW, so 2.6kW every half hour, but solar generation is more than this

image

gcoan avatar Mar 17 '25 21:03 gcoan

Could be; there's a lot of solar predicted tomorrow.

chris-y avatar Mar 17 '25 22:03 chris-y