Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions dao/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog 刀 DAO
# Day Ahead Optimizer
# 2026.01.1
Fix error with space(s) in solar_name

# 2026.01.0
With this new stable release comes a second optional method for predicting the porduction of your solar-devices.
This if fully documented in the wiki: https://github.com/corneel27/day-ahead/wiki/2.-Installatie-en-basis-configuratie#pv-productie-voorspellen <br>
Expand Down
2 changes: 1 addition & 1 deletion dao/config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: 刀 Day Ahead Optimizer
version: 2026.01.0
version: 2026.01.1
slug: day_ahead_opt
description: Home Assistant Community Add-ons for day ahead optimizations
url: https://github.com/corneel27/day-ahead
Expand Down
10 changes: 6 additions & 4 deletions dao/prog/day_ahead.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def calc_optimum(
start_hour_dt = dt.datetime.fromtimestamp(start_hour)
for s in range(solar_num):
if solar_ml_prediction[s]:
solar_name = self.solar[s]["name"]
solar_name = self.solar[s]["name"].replace(" ", "_")
solar_prog = solar_predictor.predict_solar_device(
self.solar[s], start_hour_dt, end_prog
)
Expand All @@ -268,7 +268,7 @@ def calc_optimum(
self.config.get(["ml_prediction"], solar_option, "False").lower()
== "true"
):
solar_name = solar_option["name"]
solar_name = solar_option["name"].replace(" ", "_")
solar_prog = solar_predictor.predict_solar_device(
solar_option, start_hour_dt, end_prog
)
Expand Down Expand Up @@ -306,9 +306,10 @@ def calc_optimum(
hour_fraction.append(self.interval_s / 3600)
interval_fraction.append(1)
for s in range(solar_num):
solar_name = self.solar[s]["name"].replace(" ", "_")
if solar_ml_prediction[s]:
prod = (
max(0, getattr(row, self.solar[s]["name"]))
max(0, getattr(row, solar_name))
* interval_fraction[-1]
)
else:
Expand All @@ -325,6 +326,7 @@ def calc_optimum(
for b in range(B):
for s in range(len(self.battery_options[b]["solar"])):
solar_option = self.battery_options[b]["solar"][s]
solar_name = solar_option["name"].replace(" ", "_")
if pv_dc_num <= 9:
pv_dc_varcode.append("pv_dc_" + str(pv_dc_num))
pv_dc_num += 1
Expand All @@ -335,7 +337,7 @@ def calc_optimum(
== "true"
):
prod = (
max(0, getattr(row, solar_option["name"]))
max(0, getattr(row, solar_name))
* interval_fraction[-1]
)
else:
Expand Down
3 changes: 3 additions & 0 deletions release-testing/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog 刀 DAO
# Day Ahead Optimizer
# 2026.01.1.rc1
Fix error with space(s) in solar_name

# 2026.01.0.rc9
This version is identical to stable version 2026.01.0

Expand Down
2 changes: 1 addition & 1 deletion release-testing/config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: 刀 Day Ahead Optimizer (TESTING)
version: 2026.01.0.rc9
version: 2026.01.1.rc1
stage: experimental
slug: day_ahead_opt-testing
description: Beta version of DAO. Use only for testing!
Expand Down