github springfall2008/batpred v9.10.0
Predbat rides out Home Assistant restarts, Octopus moves to its new API domain, Solis GS and IOG cap fixes

pre-release39 minutes ago

Predbat now keeps running through a Home Assistant restart. Before, an HA restart could leave Predbat stopped, or running with no HA connection, until it was restarted by hand. It now waits for Home Assistant to come back and carries on.

This release also moves Predbat to Octopus's new API domain, api.oegb-kraken.energy, before the old one is switched off. Your existing api.octopus.energy URLs keep working: Predbat rewrites them and logs a Warn: asking you to update apps.yaml.

Before you upgrade

  • LoadML retrains once. The model format has moved to version 11 (#6289). Models saved by earlier releases are discarded and retrained from the saved history. While it retrains, which takes a few minutes, Predbat plans with its normal historical load forecast.
  • Octopus URLs. Change any rates_import_octopus_url, rates_export_octopus_url, compare tariff or annual tariff URL from api.octopus.energy to api.oegb-kraken.energy. You don't need a new API key.

What's Changed

New features

  • Expose solar surplus power and force-export window state as sensors by @Pezmc in #3791
    • predbat.solar_surplus_power is the power, in kW, that a load could use now without importing or discharging the battery.
    • binary_sensor.predbat_force_export_slot is on while a force export or freeze export slot is running.
    • Use them in an automation, or with a charger's own solar mode, to charge a car or run an immersion heater from spare solar.
  • feat: cancel a car slot for export, charger force hold (Wallbox) by @springfall2008 in #5900
    • This is the charger side of letting the planner cancel a car charging slot so the energy can be exported instead, for example in a saving session. The planner side comes in a later release.
    • It is behind the new switch.predbat_car_charging_cancel_for_export, which defaults to off.

Bug fixes

Home Assistant and start-up

  • fix(ha): ride out a Home Assistant restart instead of stopping after 10 errors by @chalfontchubby in #5449
  • fix(ha): loop back writes to Predbat-published controls instead of sending them to HA by @boomesh11 in #6230

Octopus

  • Octopus: move to the new API domain, api.oegb-kraken.energy by @chalfontchubby in #5799
  • fix(octopus): count the IOG cap in minutes the car charged, not whole completed half hours by @chalfontchubby in #6255
    • Octopus reports a completed dispatch as whole half hours, so a half hour the car charged in for 2 minutes used 30 minutes of the 6-hour cap. Predbat then priced later dispatches at peak and the battery didn't charge in them.
  • fix(octopus): ignore planned Intelligent dispatches while Smart Control is off by @chalfontchubby in #5341
  • fix(billing): read complete days again until they settle, so re-priced IOG half-hours are corrected by @chalfontchubby in #6275

Inverters

  • fix(inverter): keep a GS 0 A hold against every writer of the timed current, for charge and export by @chalfontchubby in #6119
    • On Solis GS inverters, Hold charging and Freeze charging grid-charged at full power, and an export held at its target carried on exporting.
  • fix: send this cycle's planned rate as {power} to service-driven inverters by @chalfontchubby in #5373
    • Inverters driven by Home Assistant services, such as the Solax SX4 template, were passed the previous cycle's rate, and often the maximum rate. Low power charging now works on them.
  • fix(growatt): export with the timed discharge command, disable the export limit by @springfall2008 in #6312
  • fix(oauth): don't treat a same-token answer to a 401 refresh as a refresh by @springfall2008 in #6297
    • Cloud integrations that use OAuth kept retrying a rejected token until it expired.
  • fix(gecloud): EMS load_today from the energy balance, not consumption_total by @springfall2008 in #6234
  • fix(templates): set battery_temperature_history alongside battery_temperature by @springfall2008 in #6272

Battery, load and solar forecasts

  • fix(battery): measure export evidence against inverter_limit_export by @springfall2008 in #6247
  • fix(load_ml): bound the normalised inputs so a rate spike can't collapse the forecast by @springfall2008 in #6289
  • fix(load_ml): don't pad the rate results back over the whole history by @Zedas030 in #6241
  • fix(load_ml): record a success when initial training is deferred by @springfall2008 in #6319
    • After a restart with no usable saved model, such as the version 11 retrain above, the first plan run reported component errors: ML Load Forecaster until training started.
  • fix(solar): Open-Meteo radiation is a preceding-hour mean, so stop placing the forecast 30 minutes late by @chalfontchubby in #6237

Security

Maintenance

New Contributors

Full Changelog: v9.9.0...v9.10.0

Don't miss a new batpred release

NewReleases is sending notifications on new releases.