Skip to content

Commit 5411025

Browse files
committed
Fixed a bug with not combining slots in the JSON output
1 parent e7e6f58 commit 5411025

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/predbat/predbat.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4271,9 +4271,9 @@ def publish_json_plan(self, pv_forecast_minute_step, pv_forecast_minute_step10,
42714271
if self.set_charge_freeze and (limit == self.reserve):
42724272
slot["state"]["mode"] = "Freeze charge"
42734273
limit_percent = soc_percent
4274-
elif limit_percent == soc_percent_min_window:
4274+
elif limit_percent == soc_percent_min:
42754275
slot["state"]["mode"] = "Hold charge"
4276-
elif limit_percent < soc_percent_min_window:
4276+
elif limit_percent < soc_percent_min:
42774277
slot["state"]["mode"] = "No charge"
42784278
else:
42794279
slot["state"]["mode"] = "Charge"

0 commit comments

Comments
 (0)