Skip to content

Predbat 8.33.0 incorrectly reports gaps in load history and zero value/very low load history #3351

@gcoan

Description

@gcoan

Describe the bug
Upgraded this morning at 10:05 to predbat 8.33.0. Have configured load ML but am not using it for predbat planning.

Load history before upgrading:

2026-02-11 10:00:25.592638: Historical load totals for days [8, 7, 6, 5, 4, 3, 2] are [34.57, 38.23, 26.85, 28.43, 42.36, 46.15, 46.66]kWh, minimum value 26.85kWh
2026-02-11 10:00:25.592789: Modal filter enabled - Discarding day 4 as it is the lowest of the 7 datapoints
2026-02-11 10:00:25.593918: Historical days now [2, 3, 5, 6, 7, 8] weight [1, 1, 1, 1, 1, 1]

after upgrading;

2026-02-11 10:10:02.116403: Historical load totals for days [8, 7, 6, 5, 4, 3, 2] are [34.52, 38.3, 26.85, 31.04, 42.33, 46.12, 0.42]kWh, minimum value 0.42kWh
2026-02-11 10:10:02.117330: Modal filter enabled - Discarding day 8 as it is the lowest of the 7 datapoints
2026-02-11 10:10:02.118291: Warn: Found 1 gaps in load_today totalling 2850 minutes to fill using average data
2026-02-11 10:10:02.129441: Historical days now [2, 3, 4, 5, 6, 7] weight [1, 1, 1, 1, 1, 1]

and:

2026-02-11 11:30:01.780467: Historical load totals for days [8, 7, 6, 5, 4, 3, 2] are [34.53, 39.11, 26.64, 28.11, 41.09, 46.53, 2.52]kWh, minimum value 2.52kWh
2026-02-11 11:30:01.780927: Modal filter enabled - Discarding day 8 as it is the lowest of the 7 datapoints
2026-02-11 11:30:01.782223: Warn: Found 1 gaps in load_today totalling 2790 minutes to fill using average data
2026-02-11 11:30:01.797315: Historical days now [2, 3, 4, 5, 6, 7] weight [1, 1, 1, 1, 1, 1]

as you can see I am getting gaps in load_today reported that were not being reported previously and day 8 is retrieving abnormally load load history

There are no issues with the load sensor, it was working fine before the upgrade:

Image

Expected behaviour
Load history to be populated properly!

Predbat version

8.33.0

Environment details
HAOS Givenergy inverters

Log file
predbat.log

Predbat debug yaml file
predbat_debug.yaml

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions