Skip to content

Commit 6f5e4cb

Browse files
authored
Version 2026.03.0 (#580)
* Fixed error when checking runtime hours heatpump and there no data (reported by @Rescla) * Fixed error and better warning when no data for actual soc level battery (reported by @tonvanboven) * Fixed error when optional "entity calculated end" (machine) is not defined (reported by @Xelaph) * Fixed error when hp-stages are not sorted ascending max_power (reported by @mvdw) * Restuctured maps and files * Version 2026.03.0/2026.03.0.rc6
1 parent a514576 commit 6f5e4cb

24 files changed

+1683
-42
lines changed

dao/.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
tests/
2+
pred/

dao/CHANGELOG.md

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,36 @@
11
# Changelog 刀 DAO
22
# Day Ahead Optimizer
3+
# 2026.03.0
4+
### New features:
5+
- Add Fast Forward and Fast Reverse to web interface Home page (PR from @tomvandepoel3)
6+
- Improve error handling. Got "could not convert string to float: unavailable" exception without a reference to the problem HA entity.
7+
This change should help locate and fix such issues.
8+
- All used data of the ml-training are output in debug-level of logging (take care much data!!)
9+
### Change
10+
Changed entity hp heat demand from input_boolean (values "on"/"off" to input_select values "off"/"eco"/"max"(="on")
11+
12+
### Fixes:
13+
- Corrected logging when there are no data in wp-sensor(s)
14+
- Fixed error when retrieving wp-data (reported by @rescla)
15+
- Fix error only supply zero's for missing sensor data of the solar inverter after the first record.
16+
- Fixed error when checking runtime hours heatpump and there no data (reported by @rescla)
17+
- Fixed error and better warning when no data for actual soc level battery (reported by @tonvanboven)
18+
- Fixed error when optional "entity calculated end" (machine) is not defined (reported by @Xelaph)
19+
- Fixed error when hp-stages are not sorted ascending max_power (reported by @Mvdw)
20+
- Update several python modules
21+
- Fixed error report/api with period "morgen"
22+
- Fixed error "reduce hours" with interval "1hour" (pr by @bramgradussen)
23+
- Fixed error missing inverter values at the begin/end of period (@reported by @DaBit)
24+
- Fixed error when reducing power during charging at high soc and during discharging
25+
at low soc, taken the mean value of the soc at the start and the soc at the end of the interval (reported by @bartzzz)
26+
- Fixed error with flex setting of "dc_to_bat max power" or "bat_to_dc max power" (reported by @DaBit)
27+
- Fixed error not planning heatpump in first interval when not in run-mode (reported by @f.welvering)
28+
- Missing hour-values (solar-inverters) are filled up by zero's (suggested by @DaBit)
29+
- Fixed error when "-" is used in name of solar-devices (reported by @patrickvorgers and @Asclepius8)
30+
- Made optional battery settings "bat_to_dc max power" and "dc_to_bat max power" flex-setting (feature request by @DaBit)
31+
- Reduce power during charging at high soc and during discharging at low soc (feature requests form @bartzzz and @arjenhiemstra)
32+
- Made check 'optimal lower level" lower as "lower limit" (feature request of @mistral2)
33+
334
# 2026.02.2
435
- Fix error in calculating heating window boiler
536
- Fixed error in reports and api with interval "vandaag en morgen"
@@ -17,7 +48,7 @@
1748
Added missing module tzdata
1849

1950
### Breaking change
20-
The file-format ofthe calculated model is changed (update of module pandas).
51+
The file-format of the calculated model is changed (update of module pandas).
2152
The ml_prediction works only after a new training of the models.<br>
2253
### Changes:
2354
- Update several python modules
@@ -211,7 +242,7 @@ Fix error api prognose pv_dc
211242
- You can configure the meteo-model for your data (option, default **harmonie**)
212243
- You can configure the max number of attempts (option, default 2)<br>
213244
More info in DOCS.md
214-
- Fixed index-error when more than one batteries are used (reported by @PSMGoossens)
245+
- Fixed index-error when more than one batterie are used (reported by @PSMGoossens)
215246
- Improved graphical presentation received meteodata
216247
- Improved logging getting meteodata
217248
- Fixed error handling getting meteo-data

dao/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: 刀 Day Ahead Optimizer
3-
version: 2026.02.2
3+
version: 2026.03.0
44
slug: day_ahead_opt
55
description: Home Assistant Community Add-ons for day ahead optimizations
66
url: https://github.com/corneel27/day-ahead

dao/lib/__init__.py

Whitespace-only changes.
Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
import logging
33
import os
44

5+
from pandas.io.common import file_exists
6+
57
# from logging import raiseExceptions
6-
from dao.prog.db_manager import DBmanagerObj
8+
from dao.lib.db_manager import DBmanagerObj
79
import sqlalchemy_utils
810

911

@@ -24,7 +26,10 @@ def __init__(self, file_name: str):
2426
self.options = self.parse(file_name)
2527
datapath = os.path.dirname(file_name)
2628
file_secrets = datapath + "/secrets.json"
27-
self.secrets = self.parse(file_secrets)
29+
if file_exists(file_secrets):
30+
self.secrets = self.parse(file_secrets)
31+
else:
32+
self.secrets = {}
2833

2934
def get(
3035
self, keys: list, options: dict = None, default=None
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
from requests import get
99
import matplotlib.pyplot as plt
1010
import knmi
11-
from dao.prog.da_graph import GraphBuilder
12-
from dao.prog.da_config import Config
13-
from dao.prog.db_manager import DBmanagerObj
11+
from dao.lib.da_graph import GraphBuilder
12+
from dao.lib.da_config import Config
13+
from dao.lib.db_manager import DBmanagerObj
1414
from sqlalchemy import Table, select, func, and_
1515

1616

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
1-
from dao.prog.da_config import Config
1+
from dao.lib.da_config import Config
22
import pandas as pd
3-
from dao.prog.db_manager import DBmanagerObj
3+
from dao.lib.db_manager import DBmanagerObj
44
from entsoe import EntsoePandasClient
55
import datetime
66
import sys
77
from requests import get, post
88
from nordpool.elspot import Prices
99
import pytz
10-
import tzdata
1110
import json
1211
import math
1312
import pprint as pp
1413
import logging
15-
from sqlalchemy import Table, select, and_
1614

1715

1816
class DaPrices:

dao/pred/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)