Home battery prediction and automatic charging for Home Assistant
source availableSoftware License Agreement (Free, Personal Use)self-hostablefree
Predbat (also called Batpred) plans when a home battery should charge, discharge or hold, for Home Assistant. 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.
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 |
|---|
Alternatives
The same job
These do what Predbat does.
