From 13140ca6154c7c535c0a1e596c4449b3f9428e6b Mon Sep 17 00:00:00 2001 From: fboundy Date: Mon, 24 Jun 2024 09:01:22 +0100 Subject: [PATCH 1/2] Fix #245 --- apps/pv_opt/pvpy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/pv_opt/pvpy.py b/apps/pv_opt/pvpy.py index d49eb55..afdba05 100644 --- a/apps/pv_opt/pvpy.py +++ b/apps/pv_opt/pvpy.py @@ -530,7 +530,7 @@ def flows(self, initial_soc, static_flows, slots=[], soc_now=None, **kwargs): timed_slot_flows.loc[t] += int(c) chg_mask = timed_slot_flows != 0 - battery_flows[chg_mask] += timed_slot_flows[chg_mask] + battery_flows[chg_mask] = timed_slot_flows[chg_mask] forced_charge[chg_mask] = timed_slot_flows[chg_mask] if soc_now is None: From dd04f692892f387dece450d5e2c902cc07363051 Mon Sep 17 00:00:00 2001 From: fboundy Date: Mon, 24 Jun 2024 09:02:30 +0100 Subject: [PATCH 2/2] 3.15.3 --- README.md | 2 +- apps/pv_opt/pv_opt.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5845dc2..a52d60f 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# PV Opt: Home Assistant Solar/Battery Optimiser v3.15.1 +# PV Opt: Home Assistant Solar/Battery Optimiser v3.15.3 Solar / Battery Charging Optimisation for Home Assistant. This appDaemon application attempts to optimise charging and discharging of a home solar/battery system to minimise cost electricity cost on a daily basis using freely available solar forecast data from SolCast. This is particularly beneficial for Octopus Agile but is also benefeficial for other time-of-use tariffs such as Octopus Flux or simple Economy 7. diff --git a/apps/pv_opt/pv_opt.py b/apps/pv_opt/pv_opt.py index ca7d4f1..b9e2adf 100644 --- a/apps/pv_opt/pv_opt.py +++ b/apps/pv_opt/pv_opt.py @@ -12,7 +12,7 @@ from numpy import nan import re -VERSION = "3.15.1" +VERSION = "3.15.3" OCTOPUS_PRODUCT_URL = r"https://api.octopus.energy/v1/products/"