github springfall2008/batpred v9.10.3
Manual charge slots kept whole across a rate change, replan after a cancelled dispatch, GE Cloud settings stay in sync, skippable HA update, faster LoadML training

one hour ago

A manual force charge no longer gets cut short when the rate changes partway through its half hour, for example when an Intelligent dispatch is cancelled mid-slot. When a dispatch is cancelled because the car isn't charging, Predbat now switches to the new plan straight away, instead of grid-charging at the full rate for the rest of the dispatch. GE Cloud fixes two ways its cached settings could disagree with the inverter, one of which left an inverter in eco mode for 1.5 hours of a forced export. You can now skip a Predbat release from Home Assistant's update entity. LoadML training is faster and uses much less CPU and memory, and the model it produces is unchanged.

Upgrade notes

  • Home Assistant update entity: update.predbat_version now reports auto_update from switch.predbat_auto_update instead of always true. With auto update off (the default), Home Assistant now offers Skip. A skipped release is remembered across restarts, and a newer release shows as an update again.
  • Solis without energy_control_switch: Predbat now also warns on freeze and hold cycles, and on GS models for timed discharge, because it can't enforce them without the switch. Each warning appears at most once an hour per inverter. Before, the charge warning repeated every charge cycle.
  • GivEnergy 3-phase on GE Cloud (no eco mode switch): the mode-change line that was logged every plan cycle is now one warning.

What's Changed

Planning

  • fix(fetch): keep a manual force slot whole when the rate steps inside it by @springfall2008 in #6400
    • Before, a rate change inside a manual charge or export slot ended the slot at the change. Once that time had passed, the slot disappeared and the plan went to Demand. A manual slot is now kept whole and planned at its average rate. Fixes #6399.
  • fix(plan): take the new plan once an Intelligent dispatch is cancelled by @springfall2008 in #6363
    • When a dispatch was cancelled because the car wasn't charging, the old plan, built on the dispatch's cheap rate, kept winning every cycle. The battery then grid-charged at the full rate for the rest of the dispatch. The cancellation now forces one replan. Fixes #6361.
  • fix(execute): keep charge/export windows a day long from being written as no window by @piomar123 in #6298
    • On inverters that can span midnight, a charge window that ran to the same time tomorrow was written with the same start and end, which the inverter read as no window. The battery was then frozen while the status still said "Charging". The window's end is now capped just short of a day.

GE Cloud

  • fix(gecloud): stop a register read rewinding a newer write, and write back a register whose read failed by @springfall2008 in #6420
    • A slow settings read could finish after Predbat had written a setting and store the older value. Seen in one case: an inverter stayed in eco mode for about 1.5 hours of a forced export. A write made while a read is in flight now wins.
    • When a read failed, Predbat used to keep the cached value with no sign that it might be wrong. In one case the inverter's reserve was 60% while the cache said 5%, so a charge slot was ignored. Predbat now writes a control setting whose read failed back to the inverter on the next cycle, so the two agree again.

Inverters

  • fix(solis): warn when a freeze, hold or timed discharge can't be enforced because energy_control_switch is missing by @chalfontchubby in #6305
    • On Solis FB00 without energy_control_switch, Predbat could show "Freeze charging" or "Hold for car" while the battery kept discharging, and the warning only appeared on charge cycles. Fixes #5857.
  • fix(inverter): warn once about an eco toggle that cannot be written, and never write a non-switch through it by @chalfontchubby in #5647
    • For GivEnergy 3-phase inverters, which have no eco mode register. If a mode select was mapped as the eco toggle, Predbat could report "No write needed" without writing. Fixes #4909.
  • fix(sigenergy): show pending_approval after an accepted onboard by @springfall2008 in #6422
    • After a system was disconnected and reconnected in mySigen, the onboard status could still read active, so the UI never asked the owner to approve the new request in the Sigenergy app.

Home Assistant

  • feat(update): allow skipping the Predbat release in HA's update entity by @springfall2008 in #6411
    • Skip and clear-skipped now work, including with a non-default prefix. Fixes #5489.

LoadML speed and memory

Each figure below was measured on its own, with the LoadML training benchmark from #6401. In every case the trained model and its forecast are identical to before.

  • perf(load_ml): run training's optimiser step in place by @springfall2008 in #6405
    • Training takes 32% less time, and its peak memory is 31 MB lower.
  • perf(load_ml): hold only float16 prediction weights between trainings by @springfall2008 in #6407
    • Memory between trainings is 20.5 MB lower.
  • perf(load_ml): run the optimiser step on 3 threads and skip nan_to_num on finite batches by @springfall2008 in #6408
    • Training takes 8% less time.
  • perf: stop OpenBLAS worker threads busy-waiting between matrix products by @springfall2008 in #6409
    • LoadML training uses 43% less CPU on Linux, leaving more for Home Assistant and other add-ons.

Maintenance

  • LoadML training benchmark and the predbat-load-ml board (#6401)
  • Faster quick test suite (#6415, #6417)
  • Triage bot: a traffic-light verdict on PR reviews, and cleanup runs now resolve the review threads they addressed (#6418, #6419)
  • Docs: Hypervolt design record (#6404)

New Contributors

Full Changelog: v9.10.2...v9.10.3

Don't miss a new batpred release

NewReleases is sending notifications on new releases.