You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 8155d23
Browse filesBrowse the repository at this point in the historyBrowse files
fix(output): keep the state in front of a warning that repeats mid-run
A warning recorded mid-run was written bare, then with the run's state in
front of it at the end, so a warning that recurs every cycle changed the
status sensor's state twice a cycle. A warning whose text repeats the one
already shown now keeps that state in front of it. Any other warning or error,
including a run bailing out without executing, is still shown bare - so two
different recurring warnings, or one whose text changes each cycle, still
change state within a cycle, as they did before.
Also stop reading Predheat's bare "Warn - ..." as a charge/export state in the
History view, and document the status format and the History red flag.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
print("ERROR: the warning should be passed on to flag the slots, got {}".format(captured.get("status_warnings") andset(captured["status_warnings"].values())))
2292
2293
failed=True
2293
2294
2295
+
# The real sequence in a cycle: the bare warning mid-run, then the state put in front of it
print("ERROR: a bare warning followed by 'Exporting, Warn: ...' should rebuild exports only, got {} charge and {} export windows".format(len(captured.get("charge_window_best") or []), len(captured.get("export_window_best") or [])))
2299
+
failed=True
2300
+
2294
2301
# A freeze export under a warning stays a freeze - the exact state survives, not just its side
Copy file name to clipboardExpand all lines: docs/output-data.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -269,6 +269,8 @@ If you toggle this switch in Home Assistant it will force Predbat to perform an
269
269
270
270
- **predbat.status** - Gives the current status & errors and logs any changes that Predbat makes to your inverter.
271
271
The different Predbat status values and their meanings are detailed in [what does Predbat do](what-does-predbat-do.md#predbat-status).
272
+
When a warning is reported during a plan update, the update ends by putting the state it carried out in front of the warning, e.g. `Exporting, Warn: ...`.
273
+
An update that stopped before carrying anything out shows the warning or error on its own.
Copy file name to clipboardExpand all lines: docs/web-interface.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,6 +77,8 @@ The starting battery SoC for this simulation is carried forward from the end of
77
77
'without Predbat'universe remains self-consistent — i.e. if Predbat had not been running, the battery may have had a different SoC at midnight than it actually did.
78
78
This means the starting SoC shown in the 'Yesterday without Predbat' view can differ significantly from the 'History' view, which reflects what actually happened.
79
79
80
+
A time slot in the 'History' view where Predbat reported a warning or error is marked with 🚩 next to its state - the state shown is still the one Predbat carried out, and hovering over it names the problem.
81
+
80
82
The 'History' view also shows a **Debug** column with a download link on any time slot that has an automatically-captured [debug history snapshot](customisation.md#debug-history) from around that time - useful for grabbing the real Predbat state from the moment something looked wrong, without needing to have had debug mode switched on in advance.
81
83
82
84
You can easily change Predbat's planned activity for a slot by clicking on the slot time, then selecting Manual Demand, Manual Charge, Manual Export, Manual Freeze Charge or Manual Freeze Export to set the activity.
0 commit comments