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 63db1ec
Browse filesBrowse the repository at this point in the historyBrowse files
fix(fox): cap the plan at the inverter Max SoC (#5395)
Add a per-inverter battery_max_soc arg (percent, default 100) and bind
the Fox Max SoC setting to it. After the inverters refresh, cap
best_soc_max at the summed usable energy so charge targets and the
prediction stop at the device limit. soc_max stays the capacity.
Copy file name to clipboardExpand all lines: docs/apps-yaml.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1466,6 +1466,10 @@ Be careful of setting the rate at a value higher than your inverter can handle f
1466
1466
If not set or set to 0, Predbat will attempt to automatically determine the battery size by analyzing historical charging data from `soc_percent` and `battery_power` sensors.
1467
1467
This requires at least several days of historical data with charging periods of 15% or more SoC change. If automatic detection fails, you must manually set this value.
1468
1468
- **battery_min_soc** - When set limits the target SoC% setting for charge and discharge to a minimum percentage value
1469
+
- **battery_max_soc** - Optional per-inverter upper limit on the usable battery capacity, a percentage (default 100, so unset
1470
+
leaves the computed `soc_max` unchanged). When set below 100 the usable capacity Predbat models, plans charge towards and
1471
+
predicts against is capped to `soc_max` x `battery_max_soc`/100, mirroring how Fox's device Max SoC setting stops the battery
1472
+
filling all the way. The Fox Cloud component binds it to `number.<prefix>_fox_<sn>_setting_maxsoc` automatically.
1469
1473
- **reserve** - sensor name for the reserve SoC % setting. The reserve SoC is the lower limit target % to discharge the battery down to.
1470
1474
Can also be set to a fixed percentage rather than an entity name for inverters that have no reserve register to point at -
1471
1475
the supplied Huawei and Sofar templates do this. A fixed value tells Predbat what the inverter is set to so it can be modelled,
0 commit comments