From 87ad9c1ed09108cc5c17334874769528f06f8086 Mon Sep 17 00:00:00 2001 From: Trefor Southwell <48591903+springfall2008@users.noreply.github.com> Date: Fri, 8 Mar 2024 20:08:49 +0000 Subject: [PATCH] Crash with iboost enabled (#836) --- apps/predbat/predbat.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/predbat/predbat.py b/apps/predbat/predbat.py index d5f5f2a6..645aec80 100644 --- a/apps/predbat/predbat.py +++ b/apps/predbat/predbat.py @@ -26,7 +26,7 @@ if not "PRED_GLOBAL" in globals(): PRED_GLOBAL = {} -THIS_VERSION = "v7.16.4" +THIS_VERSION = "v7.16.5" PREDBAT_FILES = ["predbat.py"] TIME_FORMAT = "%Y-%m-%dT%H:%M:%S%z" TIME_FORMAT_SECONDS = "%Y-%m-%dT%H:%M:%S.%f%z" @@ -1534,8 +1534,8 @@ def run_prediction(self, charge_limit, charge_window, discharge_window, discharg discharge_rate_now = self.battery_rate_max_discharge # IBoost on load, don't do on discharge + iboost_amount = 0 if self.iboost_enable and (discharge_window_n < 0): - iboost_amount = 0 if iboost_today_kwh < self.iboost_max_energy: if self.iboost_gas: if rate_gas: