Home Assistant Integration for the EG4 Battery
This Home Assistant integration allows you to monitor and control your EG4 battery system via Bluetooth. Get real-time data about your battery's state, including charge levels, power flow, and system status.
This integration has only been tested with:
- EG4 LifePower4 Lithium Battery | 12V 400AH (Model: SR-12|400-LP4-00)
Other EG4 battery models may work but are not officially supported. Support for additional models can be added through pull requests.
- Battery state of charge monitoring
- Power flow metrics (charging/discharging)
- System status and health information
- Temperature monitoring
- Voltage and current readings
- Energy Dashboard-ready stored energy and charge/discharge totals
- Ensure HACS is installed in your Home Assistant instance
- Add this repository as a custom repository in HACS:
- Click on HACS in the sidebar
- Click on "Integrations"
- Click the three dots in the top right corner
- Select "Custom repositories"
- Add
https://github.com/k3vmcd/ha-eg4-batteryas an Integration
- Install the integration:
- Click on "Integrations"
- Click the "+" button
- Search for "EG4 Battery"
- Click "Download"
- Download the latest release from this repository
- Copy the
custom_components/eg4_batteryfolder to your Home Assistant'scustom_componentsdirectory - Restart Home Assistant
- Go to Settings -> Devices & Services
- Click "Add Integration"
- Search for "EG4 Battery"
- The integration will automatically discover nearby EG4 batteries via Bluetooth
- Select your battery from the list and follow the configuration steps
- During setup you can provide your battery's usable capacity (default 5.12 kWh). This value is used to expose:
Stored Energy(kWh measurement)Energy Charged(total_increasing kWh)Energy Discharged(total_increasing kWh)
- These sensors satisfy Home Assistant's Energy Dashboard requirements for battery storage. After the first data refresh, navigate to Settings → Dashboards → Energy and select:
Energy Chargedas Energy going into the batteryEnergy Dischargedas Energy going out of the batteryStored Energy(optional) for the Battery State of Charge graph
- To update the capacity later, open the integration's Options panel from Devices & Services and adjust the value; the integration will reload automatically.
- Home Assistant 2023.11.0 or newer
- An EG4 battery system with Bluetooth connectivity
- Bluetooth adapter on your Home Assistant device
- For bugs and feature requests, please open an issue on GitHub
- For questions and support, please use the Home Assistant community forums
This project is licensed under the MIT License - see the LICENSE file for details.