Skip to content

Commit

Permalink
Merge pull request #246 from fboundy/patch
Browse files Browse the repository at this point in the history
Patch
  • Loading branch information
fboundy authored Jun 24, 2024
2 parents 0e88b22 + c15c2de commit 6312225
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# PV Opt: Home Assistant Solar/Battery Optimiser v3.15.2
# 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.

Expand Down
3 changes: 2 additions & 1 deletion apps/pv_opt/pv_opt.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
from numpy import nan
import re

VERSION = "3.15.2"
VERSION = "3.15.3"


OCTOPUS_PRODUCT_URL = r"https://api.octopus.energy/v1/products/"

Expand Down
2 changes: 1 addition & 1 deletion apps/pv_opt/pvpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 6312225

Please sign in to comment.