Article · Home Assistant · Battery

Marstek in Home Assistant: which battery runs locally

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.

Models
Venus E 3.0, Venus A, Venus D, Venus E mini, Venus C, Venus E 2.0, B2500, Jupiter
Interfaces
Open API (UDP), Modbus (RS485 or LAN), MQTT
Status
Open API rev. 3.1 of 17 September 2026, integrations checked on 13 October 2026 · sources below
Author
Julian Haag, state-certified electrical engineering technician

The key points in one minute

Three routes into Home Assistant

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.

Which model has which route

Local routes per Marstek model, as of 13 October 2026
ModelOpen APIModbusNote
Venus E 3.0yesvia the LAN port, no adapter¹ten time slots; according to the community, firmware 150 fixes Open API failures over Ethernet
Venus A, Venus Dyes, with PV readingsvia the LAN port¹four PV inputs
Venus E miniyes–six time slots; according to the community, firmware 301 can only be added by IP
Venus Cyes, with a restriction–according to the community, polling can disturb meter reception
Venus E 2.0 (and 1st generation)novia RS485 with a converter¹Marstek warns against Open API integrations
B2500no–local MQTT after enabling, cloud then off
Jupiter C, E, Plusno–only via the cloud in the sources checked
Venus E 4.0, E Max, G, Xnot 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.

Enabling the Open API

  1. Connect the battery to the Marstek app and bring it onto the home network, via Wi-Fi or LAN cable.
  2. Switch on the API function in the app (called “Local API” in the Venus E 3.0 app manual) and set a UDP port. The default is 30000; Marstek recommends a port between 49152 and 65535.
  3. Give the battery a fixed IP address in the router. Marstek advises this if the interface is used permanently.
  4. Set up the integration in Home Assistant. It finds the battery by broadcast on the network or is given the IP address manually.

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.

The integrations

Marstek integrations for Home Assistant, as of 13 October 2026
IntegrationRouteCan
Marstek (by the manufacturer)Open APIsensors for battery, operating mode, PV; polled every 30 s; manual installation, from Home Assistant 2026.9
Marstek Local API (community)Open APIadditionally meter readings per phase, choosing the operating mode, passive power, time slots; HACS as a custom repository
Marstek Venus Modbus (community)Modbus TCPsensors, switches and setpoints for Venus A, D, E 1/2 and E 3; HACS as a custom repository
hm2mqtt (community)MQTTB2500 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”.

What can be controlled

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 Marstek for Home Assistant

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.

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.

Frequently asked questions

Is there an official Marstek integration for 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.

Does the Marstek Venus E 2.0 work with the Open API?

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.

How do I enable the Open API on a Marstek?

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.

Can the Marstek B2500 be integrated locally into Home Assistant?

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.

Sources

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.