Releases: springfall2008/batpred
Fix problem when on a fixed rate tariff
If there are no charge windows then avoid optimising then (and hence don't crash)
Fix problem with 100% charge when discharge was enabled
Fix problem with 100% charge when discharge was enabled, GivTCP treats 100% reserve as Eco (Paused) which confused the discharge code and overwrote the reserve back to 4%
Automatic conversion of text to boolean
It's possible to use a boolean config option connected to a switch or sensor, automatically convert the type
Add more configurability around charge and discharge calculation algorithms
- Fix bug with non-integer discharge %
- Stop discharge if soc% target is hit, and count that in the simulation
- Add more configurability around charge and discharge calculation algorithms
- Discharge calculates by default oldest slot first, while charge on newest first
Publish min, max, average and threshold rates into rates
Publish min, max, average and threshold rates into rates
Some code tidy up around configuration
Fix rounding to use round to nearest not ceiling
Fix bugs in REST mode
- Battery scaling not working correctly in REST mode
- If charge_limit was missing from config in REST mode then there was a crash
Fix bug in discharge only mode
In discharge only mode there was a crash, now fixed
Fix bug in workaround for incorrect battery size reporting
In the case where an incorrect battery sized was detected there was a typo leading to a crash
Fix crash in previous release, add discharge window notifications
Fix crash in non-REST mode
Add discharge window notifications
Fix file naming issue - many updates to the correct location
** 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.