Skip to content

Commit

Permalink
Merge pull request #125 from fboundy/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
fboundy authored Feb 14, 2024
2 parents 6cf2815 + 7e1107c commit 4ec33b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# PV Opt: Home Assistant Solar/Battery Optimiser v3.8.6
# PV Opt: Home Assistant Solar/Battery Optimiser v3.8.7

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
4 changes: 2 additions & 2 deletions apps/pv_opt/pv_opt.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#
USE_TARIFF = True

VERSION = "3.8.6"
VERSION = "3.8.7"
DEBUG = False

DATE_TIME_FORMAT_LONG = "%Y-%m-%d %H:%M:%S%z"
Expand Down Expand Up @@ -1492,7 +1492,7 @@ def optimise(self):

# If the current slot is a Hold SOC slot and we aren't holding then we need to
# enable Hold SOC
if self.hold[0]["active"]:
if self.hold and self.hold[0]["active"]:
if (
not status["hold_soc"]["active"]
or status["hold_soc"]["soc"] != self.hold[0]["soc"]
Expand Down

0 comments on commit 4ec33b0

Please sign in to comment.