Skip to content

Reduced hours fix#567

Open
bramgradussen wants to merge 1 commit intocorneel27:mainfrom
bramgradussen:reduced-hours-fix
Open

Reduced hours fix#567
bramgradussen wants to merge 1 commit intocorneel27:mainfrom
bramgradussen:reduced-hours-fix

Conversation

@bramgradussen
Copy link

In my config I've set reduced hours for my battery at 2000w, however I noticed that DAO just uses the max power configured

2026-03-02 10:08:30 info: Reduced hours applied for

   uur  bat_in  bat_out   cons   prod   base   boil     wp     ev  pv_ac   cost  profit  b_tem
 08:00    0.00     0.13   0.00   0.14   0.19   0.00   0.00   0.00   0.03   0.00   -0.04  20.00
 09:00    0.00     0.00   0.00   0.47   0.19   0.00   0.00   0.00   0.65   0.00   -0.11  20.00
 10:00    0.00     0.00   0.00   0.43   0.19   0.00   0.00   0.00   0.62   0.00   -0.09  20.00
 11:00    1.35     0.00   1.02   0.00   0.19   0.00   0.00   0.00   0.51   0.19   -0.00  20.00
 12:00    2.20     0.00   2.03   0.00   0.19   0.00   0.00   0.00   0.36   0.33   -0.00  20.00
 13:00    1.98     0.00   2.00   0.00   0.19   0.00   0.00   0.00   0.17   0.34   -0.00  20.00
 14:00    0.00     0.00   0.03   0.00   0.19   0.00   0.00   0.00   0.15   0.01   -0.00  20.00

at 12:00 it charges with 2200w

This tiny change does correct this behaviour for the 1hour setting

2026-03-02 10:08:31 info: Berekende prognoses: 
   uur  bat_in  bat_out   cons   prod   base   boil     wp     ev  pv_ac   cost  profit  b_tem
 10:00    0.00     0.00   0.00   0.36   0.19   0.00   0.00   0.00   0.52   0.00   -0.07  20.00
 11:00    1.54     0.00   1.22   0.00   0.19   0.00   0.00   0.00   0.51   0.23   -0.00  20.00
 12:00    2.00     0.00   1.83   0.00   0.19   0.00   0.00   0.00   0.36   0.30   -0.00  20.00
 13:00    1.99     0.00   1.99   0.00   0.19   0.00   0.00   0.00   0.18   0.34   -0.00  20.00
 14:00    0.00     0.00   0.03   0.00   0.19   0.00   0.00   0.00   0.16   0.01   -0.00  20.00
 15:00    0.00     0.00   0.04   0.00   0.19   0.00   0.00   0.00   0.15   0.01   -0.00  20.00
 16:00    0.00     0.00   0.08   0.00   0.19   0.00   0.00   0.00   0.11   0.02   -0.00  20.00
 17:00    0.00     1.55   0.00   1.42   0.19   0.00   0.00   0.00   0.06   0.00   -0.45  20.00
 18:00    0.00     1.55   0.00   1.36   0.19   0.00   0.00   0.00   0.00   0.00   -0.47  20.00
 19:00    0.00     1.50   0.00   1.31   0.19   0.00   0.00   0.00   0.00   0.00   -0.40  20.00
 20:00    0.00     0.00   0.19   0.00   0.19   0.00   0.00   0.00   0.00   0.05   -0.00  20.00
 21:00    0.00     0.00   0.19   0.00   0.19   0.00   0.00   0.00   0.00   0.05   -0.00  20.00
 22:00    0.00     0.00   0.19   0.00   0.19   0.00   0.00   0.00   0.00   0.05   -0.00  20.00
 23:00    0.00     0.02   0.16   0.00   0.19   0.00   0.00   0.00   0.00   0.04   -0.00  20.00
Totaal    5.53     4.61   5.91   4.45   2.62   0.00   0.00   0.00   2.04   1.08   -1.39    NaN

@bramgradussen bramgradussen requested a review from corneel27 as a code owner March 2, 2026 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant