Serving the East Midlands ● Nottinghamshire ● Derbyshire ● Leicestershire ● Lincolnshire ● Staffordshire ● Est. 2011 ● Over 10+ MW Installed ● MCS Accredited ● RECC Accredited ●
Serving the East Midlands ● Nottinghamshire ● Derbyshire ● Leicestershire ● Lincolnshire ● Staffordshire ● ● Est. 2011 ● Over 10+ MW Installed ● MCS Accredited ● RECC Accredited ●

What Is Predbat? Solar Battery Optimisation Explained

Predbat is the open-source Home Assistant add-on that turns Octopus Agile prices and solar forecasts into battery charge and discharge schedules - here's how it works and what it saves UK homes.

Last updated: 15 September 2026. Spectrum Energy Systems

What Is Predbat? Solar Battery Optimisation Explained

133 days left

0% VAT on home solar and batteries ends 31 March 20270% VAT ends 31 March 2027

The short answer

Predbat is the open-source Home Assistant add-on that automates battery charge and discharge decisions on UK time-of-use tariffs. Every half hour it pulls Octopus Agile prices, forecasts your home’s next 24-48 hours of solar generation and electricity consumption, and tells your hybrid inverter when to charge from solar, charge from grid, discharge to home, or export. Result: 30-50% more savings on a battery-storage home than running the same kit without Predbat. Free software, running on a small always-on host such as a Mac mini or a Raspberry Pi, supported across Solis (default) and other major hybrid brands.

Predbat is the single biggest reason Spectrum recommends Solis hybrid + Fogstar to customers on Octopus Agile. Without Predbat, a battery on Agile saves perhaps 60% of what it could. With Predbat, it gets close to the theoretical maximum. The maths only works if the software is there.

What Predbat actually does

Predbat is a half-hourly battery scheduling optimiser. Every 30 minutes it:

Predbat solar battery optimisation, Predbat plan card on a Home Assistant dashboard, showing half-hourly Agile import/export rates, planned charge/discharge state, battery SoC, and running cost
  1. Pulls the next 24-48 hours of Octopus Agile half-hourly prices via API
  2. Forecasts your home’s solar generation for those 48 half-hours (using location, panel orientation, weather forecast)
  3. Forecasts your home’s consumption for those 48 half-hours (based on recent metered data)
  4. Calculates the optimal battery charge/discharge schedule to minimise total cost
  5. Issues commands to your hybrid inverter for the next 30-minute interval

The algorithm balances three things: minimise grid import cost, maximise grid export revenue, respect battery cycle limits (don’t over-cycle if the arbitrage doesn’t justify the wear).

What you need to run Predbat

  • Home Assistant, free open-source home automation platform; it runs on a Mac mini or a Raspberry Pi 4/5 (~£100)
  • Predbat add-on, free, installed from the Home Assistant Community Store (HACS)
  • A compatible hybrid inverter, Solis (LV/HV, the Spectrum default), Sunsynk, SolarEdge, SigEnergy, Victron and Tesla Powerwall are all on Predbat's supported list, at various stages of development.
  • An Octopus Energy account, for the Agile API
  • Optional but recommended: an Octopus Mini, a small device Octopus supplies that streams your smart meter’s readings to Home Assistant in real time (replaces the standard 30-minute meter feed with readings every 10 seconds)

How Predbat compares to manufacturer apps

FeaturePredbatInverter app (SolisCloud)Tesla app (Powerwall)
Half-hourly price awarenessYes (Agile API)NoPartial (Octopus integration)
Solar generation forecastYes (per-roof)NoPartial
Consumption forecastYes (learns from real data)NoPartial
Battery cycle optimisationYes (tunable)NoPartial
Export arbitrageYesNoPartial
CostFreeFreeBuilt-in
ComplexityModerate (one-time setup)LowLow

What the Predbat add-on includes

Spectrum customers on Octopus Agile who take the optional Predbat add-on get the following alongside their solar and battery install:

  • Solis 5/6/8kW LV hybrid inverter
  • Fogstar 16.1kWh battery
  • A Mac mini or a Raspberry Pi 4/5 running Home Assistant, supplied and configured by us
  • Predbat add-on configured for the customer’s tariff, roof orientation and consumption profile
  • Octopus Mini (where available) feeding real-time consumption data into Home Assistant
  • First Predbat tuning after commissioning

The add-on is priced separately on your quote and is priced on your quote.

Want Predbat as part of your install?

Spectrum offers Predbat as an optional add-on on our own installs, for customers who ask for it on Solis and Fogstar systems we fit, with the setup and first tuning priced on the quote. We do not add Predbat to systems fitted by other installers. Or send us your property details and we will design and price a system from them.

Get Estimate

The savings, quantified

For a 5kWp solar + 16kWh battery domestic on Octopus Agile:

  • Battery + Agile, no Predbat: ~£1,200/year savings vs flat tariff (basic time-shifting)
  • Battery + Agile + Predbat: ~£1,700/year savings vs flat tariff (full optimisation)
  • Battery + Agile + Predbat + Agile Outgoing export arbitrage: ~£1,900/year savings vs flat tariff

The Predbat uplift is typically £400 - £600/year.

Common Predbat misconceptions

  • ‘Predbat is too technical.’ The first-time setup takes a couple of hours. After that, it runs in the background. Customers who take the Spectrum add-on get the setup done for them, so they don’t touch it.
  • ‘You need to run servers in your house.’ A £100 Raspberry Pi tucked behind your router is the ‘server’. Silent, low-power, no maintenance.
  • ‘Predbat doesn’t work with my inverter.’ If your inverter is Solis (the Spectrum default), Sunsynk, Sigenergy or another brand on Predbat's supported list, Predbat works. The exception is closed-ecosystem firmware on a small set of older units.
  • ‘Octopus’s own app does the same thing.’ Closer than it was, but Predbat’s granularity and tuneability still wins on the savings number.

Tuning Predbat across the seasons

Predbat’s parameters benefit from quarterly review. Summer solar surplus changes how aggressively you can lean on solar-charging vs grid-charging. Winter overnight cold-snaps change consumption patterns. Where a customer takes the Predbat add-on, the first tuning is part of the setup, and we show customers how to manage it themselves long-term.

FAQs

Is Predbat free?

Yes. Predbat is open-source software, free to download and run. You’ll need a small always-on host. The hardware is typically a Mac mini, or a Raspberry Pi (~£100) as a lower-cost option. Spectrum can supply and configure it as an optional add-on on our own installs, for customers who ask for it, priced on the quote.

Does Predbat work without solar panels?

Yes. Predbat can run battery-only arbitrage on Octopus Agile without solar PV. Charge from cheap import windows, discharge against peak import or export at Agile Outgoing peak rates. Less profitable than solar + battery + Predbat but still earns a meaningful return on a battery investment.

Which inverters does Predbat support?

Solis (LV and HV, the Spectrum default), Sunsynk, SolarEdge, Victron, SigEnergy, Tesla Powerwall and a growing list, at various stages of development. Check the live Predbat compatibility list before committing.

Will Predbat break my battery warranty?

No. Predbat issues standard charge/discharge commands through the inverter’s normal API. It doesn’t over-discharge or push beyond manufacturer-rated parameters. Predbat’s cycle-cost parameter is specifically designed to respect battery warranty cycle limits.

Can Predbat handle Octopus Cosy and Octopus Go?

Yes. Predbat handles any Octopus tariff including Cosy (3-window), Go (overnight 7p/kWh), Intelligent Go (EV-focused), Agile and Flexible. It also handles Octopus Outgoing variants for export. Multiple-tariff setups (Agile import + Outgoing export) are explicitly supported.

Is there a non-open-source alternative?

Manufacturer apps (Tesla app for Powerwall, SolisCloud, Sungrow, Sunsynk dashboards) have built-in Octopus integration but typically deliver less granular optimisation than Predbat (Spectrum doesn’t install Powerwall; we offer Predbat as an optional add-on on our own battery installs). For self-hosters, pv_opt is an open-source Home Assistant alternative aimed at Solis inverters, though for maximum Agile optimisation in 2026, Predbat remains the strongest option.

Does Predbat need internet?

Yes. It polls the Octopus API for prices and the inverter’s cloud control endpoint. Most home broadband is reliable enough for Predbat’s half-hourly cycle. Short outages are tolerated, Predbat falls back to the last known plan and resumes when connectivity returns.

Related reading

For the full Spectrum service overview see domestic battery storage.

Speak to Spectrum Energy Systems

MCS NIC200223. We design and install Solis + Fogstar systems for Octopus Agile across the East Midlands, with Predbat automation as an optional add-on. One quote.

Get Estimate
Spectrum Energy Systems
MCS-certified installers

Before you go: 0% VAT on home solar ends 31 March 2027

133 days left

You pay no VAT on solar panels and batteries fitted to your home until then. Leave time for your design, survey and install.

Prefer to talk? Call 0115 773 7575