# Predbat

> Home battery prediction and automatic charging for Home Assistant

Source: https://talira.ai/catalog/predbat-aa1165q5
Every listing: https://talira.ai/catalog.md

- Kind: Source available
- Types: Plugin, Web app
- Categories: [home / energy / management](https://talira.ai/categories/home/energy/management)
- Platforms: docker[^2]
- Licence: Software License Agreement (Free, Personal Use) (source-available)[^1]
- Pricing: Free[^3]
- Pricing notes: Free for personal use only. A hosted, paid version (PredBat Cloud) is run by another operator under licence.
- Free tier: yes[^3]
- Self-hostable: yes[^2]
- API: yes[^3]
- Creator: Trefor Southwell

Predbat (also called Batpred) plans when a home battery should charge, discharge or hold, for [Home Assistant](https://talira.ai/catalog/home-assistant-qsc7fbmt.md). It predicts battery levels and costs from your energy tariff, solar forecast and household load (optionally learned with machine learning), then controls inverters from many makers, including GivEnergy, Solis, SolarEdge, Fox, Huawei, Sunsynk, Sigenergy and Tesla Powerwall, to buy, store and export energy at the cheapest times. It also schedules car charging and solar diverters, shows the plan, costs and carbon footprint in a web interface and Home Assistant cards, and its What If tool projects a year of costs for battery and solar sizes before you buy. It installs as a Home Assistant app, with Docker and AppDaemon options. The source is public but licensed for free personal, non-commercial use in the UK only; it's written by Trefor Southwell.

## Links

- Website: https://springfall2008.github.io/batpred/
- GitHub: https://github.com/springfall2008/batpred
- Docs: https://springfall2008.github.io/batpred/

## Problems it solves

- I have a home battery and want it to charge when electricity is cheapest and export when it pays most
- my solar battery runs empty at the expensive evening peak
- plan battery charging around Octopus Agile prices automatically
- schedule my electric car to charge in the cheapest slots overnight
- work out whether a home battery would pay for itself before buying one
- control my GivEnergy or Solis inverter from Home Assistant without changing its settings by hand every day

## Features

- predicts battery levels, costs and carbon footprint
- plans charge, discharge and export around energy rates
- controls inverters from many brands, locally or through their clouds
- machine-learning load prediction
- car charging scheduling
- solar diverter (iBoost) modelling
- web interface and Home Assistant plan card
- What If annual cost and payback projection
- REST API

## Limitations

- Free only for personal, non-commercial use within the United Kingdom; any other use needs a separate licence from its author.[^1]
- Needs a Home Assistant install with at least 3 GB of memory, and familiarity with Home Assistant, integrations and YAML.[^2]
- Works only with the inverters and batteries it supports, such as GivEnergy, Solis, SolarEdge, Fox, Huawei, Sunsynk and Tesla Powerwall.[^3]

## Capabilities

- Has an API: plan not known

## Trust

Overall: 0.28 out of 1.
Signals: backing 0.20, extensibility 0.20.

- created by Trefor Southwell

Warnings:

- GitHub activity not fetched yet

## Related

- Works with [Home Assistant](https://talira.ai/catalog/home-assistant-qsc7fbmt.md)

## Alternatives

- [evcc](https://talira.ai/catalog/evcc-hk772r7a.md): Extensible EV charge controller and home energy management system
- [EMHASS](https://talira.ai/catalog/emhass-srzkb3sn.md): Energy Management for Home Assistant: optimize your home energy usage automatically

## Sources

[^1]: https://github.com/springfall2008/batpred/blob/main/License.md (checked 23 Nov 2026)
[^2]: https://springfall2008.github.io/batpred/install/ (checked 23 Nov 2026)
[^3]: https://springfall2008.github.io/batpred/ (checked 23 Nov 2026)
