Skip to the content.

Modbus to Home Assistant

Most home batteries allow control via a ModBus port. To connect your battery via Modbus with Home Assistant there are several ready-to-buy/Microcontroler diy/ESPHome based solutions available.

Examples and ready to use configurations for Marstek are found here:

Adapt the above to your any project you have.

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.

← Back to Home