Skip to content

Alert causes miscalculation of cheap vs expensive import rate #3201

@brettjenkins

Description

@brettjenkins

Describe the bug
When alert is enabled and there is a matching alert, it sets the threshold for what is cheap energy incorrectly causing predbat to think the whole day is cheap energy and will charge during expensive periods.

Expected behaviour
When there's an alert coming up, I would expect predbat in the periods directly before the alert to charge to the hold percentage set (if need be) . Then during the alert I would expect it to be in demand mode until the hold level is reached, at which case it would hold the battery and run off grid, just in case of a power outage, until the end of the period when things return to normal.

I wouldn't expect it to alter the threshold import level, and not affect the plan outside of the alert period and the immediate few previous slots if need be. In the provided data this time it looks like it's performing as expected because of the time of day, but the other day you can see it was making odd decisions, not charging at the start of the cheap period for example (unfortunately I didn't take more screenshots of that plan at the time)

Predbat version

8.31.9

Environment details

Sigenergy with 12kw inverter, and two 9kwh batteries
Docker

Screenshots
AISelect_20260108_121405_Firefox.jpg
FB_IMG_1767874636456.jpg

Log file

predbat.log

Predbat debug yaml file

predbat_debug.yaml.txt

predbat_plan.html

Metadata

Metadata

Labels

bugSomething isn't workingfixed

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions