batpred icon indicating copy to clipboard operation
batpred copied to clipboard

Insufficient Iboost On Mixed Charge/Discharge Slots

Open nbullus opened this issue 1 year ago • 2 comments

Describe the bug The predbat_iboost_max_energy entity specifies the maximum iBoost energy required, e.g. 9 kWh. When there are sufficient charge slots available, the maximum energy is not being allocated and drops short.

The root cause is when a 30 min slot is a mixed Charge and Discharge slot. Trefor has already analysed this issue and determined that the cause is due to that way the iBoost slots are picked first but discharge slots will then override it. Therefore if it allocates 9 kWh across 6 x 30 min Charge slots (1.5 kWh each), but then adds a Discharge period to two of these Charge slots, it reduces the iBoost energy to say 0.5 kWh on these two mixed slots and fails to reallocate the missing 2 kWh to make it up the max 9 kWh again.

Expected behavior

The total amount of iBoost energy should match with the predbat_iboost_max_energy when sufficient charge slots are available.

Ideally mixed slots should be avoided, but when this is not possible, additional iBoost charge slots should be allocated to make up the difference in the reduced energy from displacing the full charge slot with a mixed slot.

Predbat version

8.3.2

Environment details

  • GivEnergy AIO
  • Standard HAOS installer

Screenshots

Following screen shot adds up to 8 kWh of iBoost when 9 kWh was requested. It is unclear why we even have mixed slots given the mixed slots setting is off in Predbat anyway to avoid this issue.

image

Log file N/A as Trefor has already established the root cause.

nbullus avatar Aug 14 '24 16:08 nbullus

Fix now on main for testing.

It will work when switch.predbat_iboost_on_discharge is off and switch.predbat_iboost_smart is turned on

springfall2008 avatar Aug 24 '24 15:08 springfall2008

Tested on main and planned iBoost over next 48 hrs shows correctly on both days - no mixed charge/discharge slots planned.

nbullus avatar Aug 25 '24 08:08 nbullus