Connect your MyGrid home battery and P1 meter adapter to Home Assistant, or build with the Python libraries. A home for the community tools and the documentation that connects them.
Unofficial project · Local interfaces · Open source
01 / CONNECT
Two devices. A local route for each.
HOME BATTERY
ModuleTwo
Read and control the battery through Modbus TCP, using register map 2. The protocol notes follow MyGrid’s published Modbus manual.
Hardware status: Read-only library tests and partial Home Assistant acceptance passed on 2026-11-09, including small charge/discharge commands and return to idle. Link the battery to your MyGrid account and select Home Assistant control, then check whether Modbus is available. If port 502 stays closed, consult the acceptance record and MyGrid support. See the validation results and remaining checks.
Work with the local HTTP API, DSMR telegram and UDP push. Community protocol notes are based on reverse engineering one device.
Hardware status: Verified on one single-phase meter with firmware build 15.6; the live test passes. Other phases and export readings remain unverified.
Two Python libraries provide the device interfaces. Two hand-maintained HACS integrations bring them into Home Assistant, importing the libraries from PyPI. A dormant overlay is kept for a possible Home Assistant core contribution.
HACS allows one integration (one domain) per repository, so each device gets its own hand-maintained HACS repository. These repositories own their integration code and tests. The dormant overlay ha-mygrid-core keeps a single mygrid domain and is shaped for a possible Home Assistant core contribution. A core contribution is not guaranteed. The HACS entries do not migrate to the core entry because they use different domains.
Dormant overlay (domain mygrid) for a possible Home Assistant core contribution after ModuleTwo hardware validation.
03 / EXPLORE
Follow the source.
Install and configure either Home Assistant integration with the device guides. The VoltBridge API reference lives here; library usage and ModuleTwo protocol documentation stay with their source repositories. Read the hub guides here, with source and edit links to GitHub on every page.