custom-mygrid

COMMUNITY TOOLS / MYGRID

Your energy.
Your local connection.

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.

Find your device

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.

ModuleTwo manufacturer page ↗

ModuleTwo → Modbus TCP → Home Assistant

P1 METER ADAPTER

VoltBridge

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.

VoltBridge manufacturer page ↗

VoltBridge → HTTP / UDP → Home Assistant

02 / REPOSITORIES

One family. Five repositories.

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.

Which repository to use
RepositoryUse it for
python-mygrid-modbusBuild Python tools for ModuleTwo with Modbus TCP, register map 2. PyPI: mygrid-modbus.
python-mygrid-voltbridgeBuild Python tools for VoltBridge with the local HTTP API, DSMR telegram and UDP push. PyPI: mygrid-voltbridge.
ha-mygrid-modbusInstall or contribute to the ModuleTwo HACS integration (domain mygrid_modbus), using the library from PyPI.
ha-mygrid-voltbridgeInstall or contribute to the VoltBridge HACS integration (domain mygrid_voltbridge), using the library from PyPI.
ha-mygrid-coreDormant 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.