Skip to content

Releases: springfall2008/batpred

Fix bug with metric_min_improvement_discharge

14 Dec 16:13
5c02c7d
Compare
Choose a tag to compare

What's Changed

Bugs

Min improvement discharge was being rounded to an integer, this caused a value of 0.1 to be read as 0 and hence lots of silly exports.

Documentation

Full Changelog: v8.8.6...v8.8.7

Further plan optimisations, solar assistant template

13 Dec 09:19
c30344d
Compare
Choose a tag to compare

What's Changed

Minor fixes related to export planning

NOTE If you use expert mode its recommended you change metric_min_improvement_export to 5

Solar assistant template

New Contributors

Full Changelog: v8.8.5...v8.8.6

Plan optimisations to reduce random exports & charges

12 Dec 20:02
207822d
Compare
Choose a tag to compare

What's Changed

In an attempt to reduce random export slots which have little impact the default metric_min_improvement_export has been changed to 5, meaning export must be worth at least 5p/30 minute period to be triggered. At a 3kw export rate this would be 5p for 1.5kWh which is around 3.3p per kWh. You can change this setting in expert mode.

Changed the minimum export slot size to 5 minutes to allow for shorter slots thus preventing false selection of slots where the load is higher in an attempt to get a shorter slot by the backdoor.

Tweaked the metric keep calculations to stop force charges to keep the battery level above keep when its not profitable to do so.

Full Changelog: v8.8.4...v8.8.5

Fix for AppDaemon mode and debug_enable

08 Dec 22:00
45c2897
Compare
Choose a tag to compare

What's Changed

AppDaemon mode can not save Debug YAML, disable it in that mode:

Full Changelog: v8.8.3...v8.8.4

Bug fixes: AC Coupled model, HTML plan, Solis charging

08 Dec 19:28
9f3223c
Compare
Choose a tag to compare

What's Changed

Bug fixes

Inverter service calls were made before updating start/end times:

HTML Plan sometimes did not show export slots:

  • Bug in HTML report row span, change to model related to metric keep a… by @springfall2008 in #1706

Bug in AC Coupled model leading to export slots being put too early in the day

Better way to debug plans

When 'debug_enable' is on Predbat now writes out complete model state into the 'debug' directory. This can be used by the unit test code to reproduce the generated plan and debug the optimiser/model.

Full Changelog: v8.8.2...v8.8.3

Reduction in register writes

06 Dec 08:30
eeb72c0
Compare
Choose a tag to compare

What's Changed

Changes to try to reduce register writes

  • Reductions in the case of force export
  • Reduction during low power mode

Fixes include:

Bug fixes

Full Changelog: v8.8.1...v8.8.2

Reduction and reporting of inverter writes, optimiser changes (re-release)

01 Dec 18:54
cae90e4
Compare
Choose a tag to compare

What's Changed

RE-RELEASE of v8.8.0 due to bug with set_charge_rate

CAUTION Some fairly major changes here so its possible I broke something!

Register write improvements

Regarding the potential issue of Predbat creating too many register writes for your inverters flash memory:

  • Added a new entity to counter the total register writes so users can check their configuration and report and issues. An average of one every 5 minutes (288 a day) should be fine. If you are seeing much higher than this then please report it.

Features

Added a new setting to control the number of minutes margin in low power mode

Optimiser changes

30-minute charge slots are now either on, off or freeze. The charge % target will not be calculated for 30 minute slots. The percentage target is still calculated for larger slots (combine charge = True).

Please feedback on this change, if it causes other issues I may need to revert it.

Fixes

Code improvements

Full Changelog: v8.7.2...v8.8.1

Reduction and reporting of inverter writes, optimiser changes

01 Dec 17:46
1532c76
Compare
Choose a tag to compare

What's Changed

CAUTION Some fairly major changes here so its possible I broke something!

Register write improvements

Regarding the potential issue of Predbat creating too many register writes for your inverters flash memory:

  • Added a new entity to counter the total register writes so users can check their configuration and report and issues. An average of one every 5 minutes (288 a day) should be fine. If you are seeing much higher than this then please report it.

Features

Added a new setting to control the number of minutes margin in low power mode

Optimiser changes

30-minute charge slots are now either on, off or freeze. The charge % target will not be calculated for 30 minute slots. The percentage target is still calculated for larger slots (combine charge = True).

Please feedback on this change, if it causes other issues I may need to revert it.

Fixes

Code improvements

Full Changelog: v8.7.2...v8.8.0

Octopus free (power up) event support fixes

23 Nov 21:40
3e2bd61
Compare
Choose a tag to compare

What's Changed

Note: If the Octopus Free Session event sensor is not working due to lack of data (via a 3rd party service) Predbat can scrape directly from the Octopus Web Site, this may
have its own issues due to change of format. If you enable this then sessions will be considered even if you forget to sign-up so be careful!

octopus_free_url: 'http://octopus.energy/free-electricity'

Full Changelog: v8.7.1...v8.7.2

Octopus free (power up) event support

23 Nov 14:04
b2aed2c
Compare
Choose a tag to compare

What's Changed

Octopus free (power up) event support

Predbat can automatically detect Octopus free events and adjust your battery plan according.

For Predbat to automatically manage Octopus free sessions the following additional configuration item in apps.yaml is used.

Note: You must have signed up to Octoplus to benefit from these events

Like the electricity rates this is set in the apps.yaml template to a regular expression that should auto-discover the Octopus Energy integration.

octopus_free_session - Will point to the free event sensor that is exposed by the Octopus Energy Integration. This event sensor contains the dates/times of
all the free events.

  octopus_free_session: 're:(event.octopus_energy_([0-9a-z_]+|)_octoplus_free_electricity_session_events)'

Note: This event may need to be enabled in Home Assistant first How to Enable Octopus events

If you normally increase your house usage during a free session then you can change input_number.predbat_load_scaling_free to allow Predbat to assume an energy
increase in this period. E.g. setting to a value of 1.2 would indicate you will use 20% more energy that normal during this period. (Default is 1.2)

If you do not want Predbat to see these sessions then comment out the octopus_free_session setting.

Full Changelog: v8.7.0...v8.7.1