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
fix(plan): gate Freeze Export on a new inverter_can_freeze_export flag (#4207/#4538)
springfall2008 pointed out on #4538 that gating on
inverter_can_charge_during_export was wrong: that flag is specifically
about PV exceeding the inverter/export limit during *active* Force Export
(see its own docstring), not about whether Freeze Export can hold the
battery flat at all - two genuinely different questions this PR had
conflated.
Add inverter_can_freeze_export as its own setting (apps.yaml only, defaults
to true) and gate optimise_export()/optimise_solar()'s freeze offering on
it instead. Reusing inverter_can_charge_during_export's default of true
would have been wrong here too - most inverters genuinely can freeze, so
"assume it works, let affected users opt out" is the right default for
this flag as well, it just needed to be a different flag with a different
meaning, not a shared one.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: docs/apps-yaml.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1149,6 +1149,19 @@ During a force export period if the generated solar exceeds the inverter limit o
1149
1149
If this setting is `true` then the inverter is able to charge the battery from excess PV while still in Force Export mode.
1150
1150
If this setting is `false` then the inverter will not charge the battery and the excess PV will be lost.
1151
1151
1152
+
This is a different question to **inverter_can_freeze_export** below - it's specifically about PV exceeding the inverter/export limit during *active* Force Export, not about whether Freeze Export can hold the battery flat at all.
1153
+
1154
+
### **inverter_can_freeze_export**
1155
+
1156
+
Global setting, defaults to `true`.
1157
+
1158
+
Controls the way Predbat models your inverter, this does not change the way it is controlled.
1159
+
1160
+
Freeze Export is meant to disable battery charging entirely so all solar is exported. Some inverters (e.g. certain "Feed-in First" work modes) cannot be commanded into a state where charging is disabled at all - they keep charging the battery from any available surplus PV regardless of the mode requested.
1161
+
1162
+
If this setting is `true` (the default) Predbat assumes Freeze Export genuinely holds the battery flat, and will offer it as a distinct option in the plan.
1163
+
If this setting is `false`, Predbat assumes your inverter can't actually achieve that - Freeze Export would behave identically to Idle - so it stops offering Freeze Export in the plan at all, rather than showing a `FrzExp` slot that wouldn't achieve anything different from doing nothing.
1164
+
1152
1165
## Controlling the Inverter
1153
1166
1154
1167
There are a few different ways to control your inverter:
0 commit comments