Battery · Control
Controlling a home battery with Home Assistant
Self-consumption or arbitrage: what a battery really earns under a dynamic tariff.
Read the article →Article · Home Assistant · Battery
Marstek builds plug-in batteries in several ranges and generations, and they do not speak the same language. The newer Venus models have a local interface documented by Marstek, the Open API, most recently in revision 3.1 of September 2026. Older models can only be reached via Modbus on the RS485 socket, the B2500 via local MQTT, and the Jupiter range not locally at all in the sources checked. Anyone buying a Marstek for Home Assistant should therefore know before buying which route belongs to which model.
From this article on Amazon (Germany):
Marstek Venus E 3.0* ·
Marstek Venus A* ·
Marstek Venus D*
Marked *: affiliate links. As an Amazon Associate I earn from qualifying purchases.
Open API. Marstek describes it in its own document, most recently in revision 3.1 of 17 September 2026. Battery and Home Assistant exchange JSON messages over UDP on the home network, without a cloud. Marstek provides the interface “as is” and points out that switching it on may disable some built-in functions so that commands do not conflict. Which models support which parts is listed in chapter IV.
Modbus. According to its manual, the Venus E 3.0 has an RS485 socket and a LAN port. I have not found a Modbus register list from Marstek; the manual names the socket but no protocol. The integrations that use Modbus rely on register lists from the community. According to the integration “Marstek Venus Modbus”, the addresses differ between the first and second generation of the Venus E and the E 3.0.
MQTT. The B2500 can send its data to your own MQTT broker on the home network. The hm2mqtt project translates it for Home Assistant. According to hm2mqtt, the other Marstek devices stay on the cloud's MQTT.
| Model | Open API | Modbus | Note |
|---|---|---|---|
| Venus E 3.0 | yes | via the LAN port, no adapter¹ | ten time slots; according to the community, firmware 150 fixes Open API failures over Ethernet |
| Venus A, Venus D | yes, with PV readings | via the LAN port¹ | four PV inputs |
| Venus E mini | yes | – | six time slots; according to the community, firmware 301 can only be added by IP |
| Venus C | yes, with a restriction | – | according to the community, polling can disturb meter reception |
| Venus E 2.0 (and 1st generation) | no | via RS485 with a converter¹ | Marstek warns against Open API integrations |
| B2500 | no | – | local MQTT after enabling, cloud then off |
| Jupiter C, E, Plus | no | – | only via the cloud in the sources checked |
| Venus E 4.0, E Max, G, X | not listed in rev. 3.1 | – | – |
¹ According to the community integration “Marstek Venus Modbus”, not according to Marstek. A dash means: not described in the sources checked.
If Home Assistant runs in Docker, according to Marstek the container needs host networking for the broadcast search to work; otherwise add the battery by IP. Guest Wi-Fi networks and separate IoT networks can also block such broadcasts.
| Integration | Route | Can |
|---|---|---|
| Marstek (by the manufacturer) | Open API | sensors for battery, operating mode, PV; polled every 30 s; manual installation, from Home Assistant 2026.9 |
| Marstek Local API (community) | Open API | additionally meter readings per phase, choosing the operating mode, passive power, time slots; HACS as a custom repository |
| Marstek Venus Modbus (community) | Modbus TCP | sensors, switches and setpoints for Venus A, D, E 1/2 and E 3; HACS as a custom repository |
| hm2mqtt (community) | MQTT | B2500 locally; other Marstek devices via the cloud |
Marstek's own integration is not yet part of Home Assistant. The request “Add Marstek Energy integration” has been
open since 20 August 2026; an earlier one was closed without being merged in July 2026. Until then, it is copied by
hand into the custom_components folder and has to be updated by hand as well.
According to “Marstek Venus Modbus”, writing Modbus commands requires the battery to be switched to RS485 control mode; the integration explicitly says “use with caution”.
The Open API knows five operating modes: Auto, AI, Manual, Passive and Ups. Two of them are interesting for Home Assistant:
The depth of discharge can also be set, 88 % from the factory, adjustable from 30 to 88 %. Whether charging by price pays off is covered in the article Battery arbitrage: does it actually pay?; why zero export and price control do not work at the same time is in the main article on home batteries referred to below.
Which meter the battery needs for its control and which of them delivers its readings to Home Assistant itself is covered in the article Smart meter for a plug-in battery.
On Amazon (Germany): Marstek Venus E 3.0* · search for Marstek Venus A* and Marstek Venus D* · Waveshare RS485 to RJ45 (for the Venus E 2.0)*
Read on: whether a battery should rather use self-consumption or the price difference, and why controllability is a buying criterion, is covered in the main article Controlling a home battery with Home Assistant.
Yes, but not yet in Home Assistant itself. Marstek offers an integration for manual installation, from Home Assistant 2026.9, for Venus A, Venus D, Venus E 3.0 and Venus Mini. According to its description it only provides sensors, no control. The request to include it in Home Assistant has been open since August 2026. The battery can be controlled via community integrations.
No. Marstek states explicitly in its integration that the Venus E 2.0 is not supported and may lose its connection to the CT003 if you try anyway. For the E 2.0, Modbus via the RS485 socket with a converter to Wi-Fi or Ethernet remains, integrated via a community integration.
In the Marstek app: connect the battery to the network, switch on the API function and set a UDP port. The default is 30000; Marstek recommends a port between 49152 and 65535. For permanent use, Marstek advises a fixed IP address.
Via local MQTT, which must first be enabled on the B2500, and the community bridge hm2mqtt. The catch: with local MQTT, according to hm2mqtt the B2500 loses its direct connection to the Marstek cloud; the app then only works via an additional relay. Marstek's Open API does not list the B2500.
The information on the Open API comes from Marstek's own documentation, that on the integrations from their descriptions. Where only the community says something, this is stated. I do not run a Marstek battery myself; this page is a sourced overview, not a field report. Firmware and integrations are changing quickly at the moment. What is written here applies as of 13 October 2026.
Haag Automation has no business relationship with Marstek. Marstek provides the Open API without warranty; writing commands change the behaviour of the battery. Connecting the battery to the home grid follows the manual and the grid operator's requirements; work on the electrical installation belongs in the hands of a qualified electrician.
Links marked with an asterisk are affiliate links. As an Amazon Associate I earn from qualifying purchases; the price is unchanged for you. What I recommend does not depend on it.
Want to bring your Marstek into Home Assistant locally and control it by consumption or price? I can set it up with you – the first conversation is free.