Custom Integration: Battery Controller

This Home Assistant custom integration optimizes your home battery to minimize electricity costs. It uses dynamic programming (backward induction) to calculate the optimal charge/discharge schedule based on:

Electricity price forecasts (Nordpool, ENTSO-E, or any price sensor with forecast attributes like the Dynamic Energy Contract Calculator)
PV production forecasts (from open-meteo.com solar radiation data)
Household consumption patterns (learned from historical energy meter data)
Battery characteristics (capacity, power limits, round-trip efficiency, degradation)
Historical price model (fallback and horizon extension when day-ahead prices are not yet published)
Battery Controller works with any battery inverter and electricity meter — it is a calculated integration that reads sensors and writes setpoints. It does not communicate directly with hardware.

1 Like