Skip to the content.

On This Page

    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:

    • A) Four string ModBus wire
      • Use an EspHome or RTU bridge device - communicates via Wifi to HA.
    • B) RJ45 Ethernet port
      • Use a regular network cable, no extras needed.
    • 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.

    Connector options

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

    Ready to use config for Marstek are found here

    Ethernet cable (Venus V3 and Venus A/D only):

    Esphome based - Modbus 4-string

    Modbus RTU bridge to Modbus tcp/ip:

    Important notice

    Home Battery Control assumes the sensor and entity names used in the Fonske projects 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.

    ← Back to Home