Intelligent Battery Energy Storage System (BESS) management and optimization for Home Assistant.
💰 Maximize your battery savings by automatically optimizing your battery storage system with real-time price data, solar integration, and adaptive scheduling.
The BESS Battery Manager is a sophisticated Home Assistant add-on that automatically optimizes Growatt inverter battery storage systems using dynamic programming algorithms and Nordic electricity market pricing. It continuously analyzes published electricity prices, solar production forecasts, and consumption predictions to determine optimal charge/discharge schedules that minimize your electricity costs.
The system requires the Growatt, Nordpool, and solar forecast (e.g., Solcast) Home Assistant integrations to function, and optionally uses InfluxDB for historical data storage. Unlike simple timer-based systems, BESS Manager makes intelligent decisions by weighing multiple factors: current battery state, published hourly electricity prices, solar weather forecasts, consumption estimates, and battery degradation costs. The system updates its optimization strategy every hour as new sensor data becomes available, ensuring your battery always operates in the most economically beneficial way while respecting technical constraints like charge rates and depth-of-discharge limits.
Dynamic Programming Optimization: Solves 24-hour battery scheduling as an optimization problem, considering electricity prices, solar forecasts, consumption patterns, and battery constraints to find the globally optimal charge/discharge schedule.
Nordpool Market Integration: Automatically retrieves electricity prices from Nordic power markets to be used by optimization algorithm.
Battery Wear Economics: Incorporates battery degradation costs (cycle cost) into optimization calculations to balance immediate savings against long-term battery life.
Hourly Re-optimization: Recalculates the optimal 24-hour schedule every hour as predicted values become actual.
Comprehensive Energy Tracking: Tracks all energy flows (solar production, grid import/export, battery charge/discharge, home consumption) with detailed cost analysis and savings calculations.
Power Monitoring & Fuse Protection: Monitors grid current to prevent overloading electrical fuses by limiting battery charging when household consumption is high.
The BESS Manager provides a comprehensive web interface organized into focused pages:
Dashboard: Real-time system overview with live energy flows, current battery optimization decisions, and today's performance summary.
Savings: Financial analysis with daily savings breakdown, cost comparisons between grid-only vs solar-only vs optimized battery scenarios, and detailed hourly cost analysis.
Inverter: Detailed information about your inverter including current status, active schedule, operating modes, and configuration settings.
Insights: Understand the economic reasoning behind every battery decision - why the system chose to charge, discharge, or remain idle at any given time.
System Health: Component status monitoring with sensor validation, integration health checks, and system diagnostics.
- ✅ Growatt inverters with battery storage via Home Assistant
⚠️ Compatibility: The Growatt inverter must provide control of battery settings such as charge power, discharge power and Time-of-Use. Tested with MIN/TLX inverters
- 📊 Nordpool integration for electricity prices
- 🏠 Growatt integration for battery control and energy monitoring
- ☀️ Solar forecast integration (e.g., Solcast) for production predictions
- 📈 InfluxDB integration - recommended to preserve historical data during server restarts
- ⚡ Tibber integration - optional for power monitoring and fuse protection
Beautiful energy flow visualization with real-time optimization results

Detailed savings breakdown with battery actions and ROi calculations
Intelligent scheduling showing charge/discharge decisions with price predictions
📸 Screenshot placeholders - Add actual screenshots to
docs/images/directory
- 🔧 Installation Guide - Complete setup instructions
- 📚 User Guide - Understanding the interface and results
- 🏗️ Software Architecture - Technical design and system architecture
- 👨💻 Development Guide - Contributing and development setup
- 🐛 Issues: GitHub Issues
- 💬 Community: Home Assistant Community Forum
- 📢 Updates: Follow repository for latest features
- ⭐ Like it? Star the repository to support development!
This project is licensed under the MIT License - see the LICENSE file for details.