Skip to content

Releases: springfall2008/batpred

Discharge slot clipping

Choose a tag to compare

@springfall2008 springfall2008 released this 08 Jun 08:51
cbf90f0
  • Adjust discharge slots to have the % just below the expected
  • Default to 1 pass discharge calculations (2 isn't needed)
  • Add new metric_min_improvement_discharge which should normally be 0. Allows different value for charging.
  • Adjust defaults in config template and update readme

Minor fixes and optimisations for discharge

Choose a tag to compare

@springfall2008 springfall2008 released this 07 Jun 21:30
6f92052
  • Align reported data to the correct simulated time (was + 5 minutes)
  • Fix bug with soc_min handling
  • Retain discharge window start where possible to avoid keep setting it
  • Once discharge stops don't restart unless there is at least 5 minutes of SOC left
  • Reset Charge rate during charge slots
  • Reset Discharge rate during discharge slots
  • Understand charge/discharge rate settings

Fix problem when on a fixed rate tariff

Choose a tag to compare

@springfall2008 springfall2008 released this 07 Jun 07:47
6d97cd1

If there are no charge windows then avoid optimising then (and hence don't crash)

Fix problem with 100% charge when discharge was enabled

Choose a tag to compare

@springfall2008 springfall2008 released this 07 Jun 07:26
66a7ebc

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

Choose a tag to compare

@springfall2008 springfall2008 released this 06 Jun 19:19
c04e44f

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

Choose a tag to compare

@springfall2008 springfall2008 released this 06 Jun 19:09
784d921
  • 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

Choose a tag to compare

@springfall2008 springfall2008 released this 06 Jun 13:04
fbd0510

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

Choose a tag to compare

@springfall2008 springfall2008 released this 06 Jun 06:51
b03feb3
  • 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

Choose a tag to compare

@springfall2008 springfall2008 released this 05 Jun 19:27
3803e2f

In discharge only mode there was a crash, now fixed

Fix bug in workaround for incorrect battery size reporting

Choose a tag to compare

@springfall2008 springfall2008 released this 05 Jun 19:11
ee558c9

In the case where an incorrect battery sized was detected there was a typo leading to a crash