** CAUTION: If you have a predbat.py in config/appdaemon/apps please delete it as it should be in config/appdeamon/apps/batpred
In REST mode only, if SOC Max is reported very different from nominal capacity then use nominal
Adjusted sorting algorithm for multi-window sorting to maintain time order when prices are the same
Discharge calculations now dual mass for multi-windows
Fix bug where rates were not replicated for export before calculating windows
Ensure record window range is static throughout calculation
Add debug on soc_min times
Fix a bug where soc_min was being ignored in some cases
Make combining or splitting charge and discharge windows optional
Default discharge windows to combine, now discharge % is being used
By running exactly at the minute slots e.g. 13:00, 13:05, 13:10 it means forced discharge will me more exact
You can now enable charge and discharge predictions on separate options (calculate_best_charge/calculate_best_discharge)
best_min_soc is now taken into account for discharge slots
Discharge percentage is now calculated per discharge slot and the reserve % setting used to control them.