Skip to content

WhatIf Annual Prediction run restarts the Predbat add-on before completing #4397

Description

@mitulgovind

Running the WhatIf Annual Prediction tool (Configure → Run simulations) causes the Predbat add-on to restart partway through the run, aborting it before it finishes. This happens consistently — reproduced multiple times, including after reducing samples_per_month from the default.

File /config/annual_work/apps.yaml was modified
Stopping Predbat due to file changes....
2026-07-30 23:23:14.261361: Stopping Predbat
2026-07-30 23:23:15.096032: Info: Web socket stopping
2026-07-30 23:23:15.096324: Info: Web Socket stopped
2026-07-30 23:23:15.097004: Info: HA interface stopped
2026-07-30 23:23:15.333634: Info: Components stopped
Web interface stopped
Shutdown, sleeping 20 seconds before restarting
[23:23:42] INFO: Predbat init script running
Running Predbat inside Add-on
Bootstrap Predbat
Startup
Predbat files are installed correctly for version v8.47.1
**** Starting Standalone Predbat ****

Steps to reproduce

  1. Go to WhatIf → Configure, fill in the form.
  2. Click Run simulations.
  3. Run progresses partway (varies each time — seen anywhere from ~8% to ~25%).
  4. Add-on restarts, run is aborted, progress is lost.

Expected behavior

The run should complete without the add-on restarting.

Environment

Predbat version: v8.47.1
Running as: Home Assistant Add-on
Home Assistant: Home Assistant Green

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions