Battery to Home Assistant
Home Assistant speaks “ModBus language” to communicate with your Battery and vise versa. Use the configurations on this page and HomeBatteryControl will work out of the box.
Review the available connectors on your battery:
- B) RJ45 Ethernet port
- Use a regular network cable, no extras needed.
- A) Four string ModBus wire
- Use an EspHome or RTU bridge device - communicates via Wifi to HA.
- C) RJ45 ModBus port
- Confusingly looks like an Ethernet port, but isn’t. Use Elfin EW11 to communicate via Wifi.
Decide wether you go WiFi or cable.

| Reading tip | this Marstek topic on Tweakers.net (NL/BE) for detailed info curated by SuperDuper1969 |
Brands
Marstek

Ready to use config for Marstek are found here
Ethernet cable (Venus V3 and Venus A/D only):
-
Ethernet port RJ45 (not modbus RTU RJ45 port) : https://github.com/fonske/MarstekVenusV3-modbus-TCP-IP/tree/main
Copy the YAML to
/config/packages/in Home Assistant folder
Esphome based - Modbus 4-string
- lilygo: Venus E V1/2: https://github.com/fonske/MarstekVenus-LilygoRS485/blob/main/lilygo_mt1.yaml
- lilygo: Venus E V3: https://github.com/fonske/MarstekVenus-LilygoRS485/blob/main/lilygo_mt1_v3.yaml
- lilygo poe: Venus E V3: https://github.com/Adam600david/Marstek-venus-V3-Lilygo-T-POE-pro/blob/main/MarstekVenus-Lilygo-T-POE-Pro%20MTforum.yaml (by Adam David)
- M5stack rs485 Atom s3: Venus E V1/2: https://github.com/fonske/MarstekVenus-M5stackRS485/blob/main/esphome/atom_s3_lite_rs485.yaml
- M5stack rs485 Atom s3: Venus V3: https://github.com/fonske/MarstekVenus-M5stackRS485/blob/main/esphome/atom_s3_lite_rs485_v3.yaml
Modbus RTU bridge to Modbus tcp/ip:
- Elfin EW11: Venus V1/2: https://github.com/fonske/MarstekVenusV3-modbus-TCP-IP/tree/v12
-
Elfin EW11: Venus V3: https://github.com/fonske/MarstekVenusV3-modbus-TCP-IP/tree/main
Copy the YAML to
/config/packages/in Home Assistant folder
Important notice
Home Battery Control assumes the sensor and entity names used in the
Fonskeprojects above.Using alternate naming or different code projects requires you to create HA helper entities to map values from your custom setup to the expected entities in the Home Battery Control (HBC) project.
Altering the mapping in the Node-RED flows is also possible, but less advised as this makes updating later on very cumbersome.
Special thanks to Fonske for his work and efforts to the project.
Anker SOLIX

Several HBC-tweakers have started support for the Anker SolarBank 3 Pro in addition to the:
- Anker SOLIX SolarBank 4 Pro
- Anker SOLIX SolarBank Max AC
- Anker SOLIX Smartplug Gen 2
You can find the progress in the this issue started and maintained by @exuberant_maypole_48572
- GitHub issue: https://github.com/gitcodebob/marstek-venus-rs485-node-red/issues/126
- Or join our discord and search for the Anker channel for more info: community
The official HA integration by Anker SOLIX
- HA integration: https://github.com/anker-charging/ha-anker-solix-official
- This will make HA entities available. To let HBC use them, follow the example below.
Review the documentation in this Anker to Anker to HBC example made by jos
- https://github.com/Jos1958/marstek-venus-rs485-node-red/blob/main/home%20assistant/packages/anker_to_m1_marstek.yaml
Anker SolarBank 3 PRO configs
- Anker SolarBank 3 PRO: read the documentation in this yaml
- 3 PRO is not supported in the official HA integration
- Thanks to Jos1958
An overview of available connection schemas

Table
| Asset | Connection | Communication | HA integrations | HA config | HBC interface |
|---|---|---|---|---|---|
| P1 Meter | Direct USB or LAN | USB or local (TCP-IP) | HomeWizard Integration / Other P1 Integrations | — |
Fonske entity naming schema ↓ Home Assistant • HA Add-Ons (Node-RED) • HA HBC Package (YAML) — Home Battery Control + Config • HA HBC Dashboard (YAML) ↓ HBC Strategy Flows (Bob) ↓ HBC Dashboard (Bob) |
| Marstek Venus V3 | Direct LAN / Wifi | modbus (TCP-IP) | — | Marstek Package (YAML) — MarstekVenusV3-modbus-TCP-IP (Fonske) | |
| Marstek Venus V1/2/3 | via LilyGo, M5stack, Elfin | modbus (RS485) | — | Marstek Package (YAML) — MarstekVenus-ESPHome (Fonske) | |
| Anker SolarBank 3 | via Anker Cloud | Anker Cloud (TCP-IP) | HA-Anker-Solix (thomluther) | Cloud Anker to Marstek Package (YAML) — Anker to M1 Marstek (Jos) | |
| Anker SolarBank 4 & Max AC | Direct LAN | modbus (TCP-IP) | HA-Anker-Solix-Official (anker) [support](https://github.com/anker-charging/ha-anker-solix-official#supported-devices) | Local Anker to Marstek Package (YAML) — Anker to M1 Marstek (Future) (*) | |
| Other Battery | Any | Any | Other Battery Integration | Other Battery to Marstek Package (YAML) — Other to M1 Marstek (Future) (*) |
(*) Use the Anker to M1 Marstek as a template for the other Batteries.