github springfall2008/batpred v8.37.0

6 hours ago

Changelog

v8.37.0

Bug Fixes

  • ML Load forecasting — Fixed an incorrect inflation of ML load predictions caused by clean_incrementing_reverse being applied to power sensors (which are not incrementing). Forecasts for users with Load ML enabled should now be more accurate. (#3784)
  • SolisCloud — Time windows for charge/discharge are now cleared before writing new ones, preventing overlapping windows that could cause unexpected inverter behaviour. (#3787)
  • Forecast.SolarNone responses from the Forecast.Solar API are now handled gracefully, preventing 429 crash loops when the API is rate-limiting or returning empty data. (#3793)
  • Load ML + in-day adjustment — The classic in-day load adjustment is now gated off when Load ML is enabled, preventing the two systems from conflicting and distorting load predictions. (#3792)
  • MINE time window helpersinput_datetime and input_text entity types are now correctly supported in set_state_external, fixing broken time window helpers in MINE setups. (#3795)

New Features

Open Meteo Solar Forecast (#3796)

A new free solar forecast source using the Open Meteo API. No API key or account required. It can be used as an alternative or supplement to Solcast and Forecast.Solar.

Add open_meteo_forecast: to your apps.yaml:

open_meteo_forecast:
  - postcode: SW1A 2AB   # UK postcode, or use latitude/longitude
    kwp: 3.5             # Array peak power in kWp
    declination: 35      # Panel tilt from horizontal (degrees)
    azimuth: 180         # 0=N, -90=E, 90=W, 180=S (Solcast convention)
    efficiency: 0.95     # Optional loss factor (default 1.0)
open_meteo_forecast_max_age: 4.0  # Hours between cache refreshes (default 4)

Multiple arrays with different orientations can be listed — their outputs are summed automatically.

Predbat fetches both a P50 (central) forecast and a P10 (pessimistic) forecast from Open Meteo's ensemble API, applying a temperature-corrected PV model for accuracy. Per-month shading_factors are also supported for site-specific shading correction.

  • Per-Month Shading Factors (#3798)

When using the Google Solar API (or manually), a 12-element list of per-month shading factors can now be configured to improve solar yield accuracy throughout the year, accounting for seasonal shading from trees, buildings, etc.

Marginal Cost Matrix Published to Predbat Gateway (#3783)

The marginal cost matrix is now published to the Predbat gateway, enabling richer external integrations and dashboards.

Compare Feature Improvements (#3799)

The tariff comparison feature has been upgraded to support larger battery sizes and now uses rolling average data for smoother, more reliable cost comparisons.

The Compare feature lets you model what your energy costs would be on different tariffs (or with different hardware) using your actual usage patterns. Predbat runs a full optimisation for each tariff scenario once per day and publishes the results as Home Assistant sensors.

To use it, add a compare_list: to your apps.yaml:

compare_list:
  - id: agile
    name: "Octopus Agile"
    rates_import_octopus_url: "https://api.octopus.energy/v1/products/AGILE-24-10-01/electricity-tariffs/E-1R-AGILE-24-10-01-{dno_region}/standard-unit-rates/"
    rates_export_octopus_url: "https://api.octopus.energy/v1/products/OUTGOING-FIX-12M-19-05-13/electricity-tariffs/E-1R-OUTGOING-FIX-12M-19-05-13-{dno_region}/standard-unit-rates/"
  - id: flux
    name: "Octopus Flux"
    rates_import_octopus_url: "https://api.octopus.energy/v1/products/FLUX-IMPORT-23-02-14/electricity-tariffs/E-1R-FLUX-IMPORT-23-02-14-{dno_region}/standard-unit-rates/"
    rates_export_octopus_url: "https://api.octopus.energy/v1/products/FLUX-EXPORT-BB-23-02-14/electricity-tariffs/E-1R-FLUX-EXPORT-BB-23-02-14-{dno_region}/standard-unit-rates/"

You can also override hardware specs per-scenario (e.g. override_soc_max_kwh, override_battery_rate_max_charge_kw) to model what a larger battery or faster charger would save you. Results are visible in the Predbat web UI under the Compare view and as predbat.compare_tariff_<id> sensors. A manual run can be triggered via switch.predbat_compare_active.

See the Compare documentation for full configuration options.

New Contributors


Full Changelog: v8.36.3...v8.37.0

Don't miss a new batpred release

NewReleases is sending notifications on new releases.