batpred icon indicating copy to clipboard operation
batpred copied to clipboard

Planned export times seem affected by use of the Automation API

Open mpartington opened this issue 10 months ago • 3 comments

Describe the bug I have been experimenting with the Automation API to reduce the battery discharge rate for planned export (just prior to the IOG cheap rate slot)

I've noticed that setting inverter_limit_discharge(0)=2000 changes the timings of forced export on the plan. Instead of as late as possible, it moves it much earlier. If i cancel the override, then it moves back to the expected 'late as possible' slots

Expected behaviour Export to be as late as possible on a 2 rate tariff with fixed export

Predbat version

v8.16.3

Environment details

  • GivEnergy AC3 + 2x5.2 batteries
  • Standard HAOS installer

Screenshots

Image Image

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

apps.yaml.txt

predbat.log

Predbat debug yaml file

predbat_debug.yaml.txt predbat_debug (1).yaml.txt

mpartington avatar Mar 10 '25 11:03 mpartington

As an additional observation (as it's just happened). Every day the freeze discharges disappear from my plan, but it maintains the forced exports, which doesn't make sense. Debug attached

predbat_debug.yaml (2).txt

mpartington avatar Mar 10 '25 11:03 mpartington

I think this is as expected, if you can only export at a lower rate then you need longer so must start earlier.

Why are you doing this ?

springfall2008 avatar Mar 11 '25 08:03 springfall2008

I understand it needing to take longer, but why is export set 3 til 4 pm in the plan, then a long pause until it commences again at 11pm? Wouldn't we expect it to be ordered as late as possible, so starting at 10pm for a longer block?

Reason I was doing it was to change discharge speed, as it was causing a spurious soc adjustment on 3020 firmware around 40%. I wanted to see if changing the power prevented this - spoiler, it didn't!

However it may still be useful for a kinder slower discharge

mpartington avatar Mar 11 '25 08:03 mpartington