Marstek Battery plugin Topic is solved

Python and python framework

Moderator: leecollings

Haaibaai
Posts: 2
Joined: Sunday 03 August 2025 14:22
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Marstek Battery plugin

Post by Haaibaai »

Power line. Why didn’t I think of that. Ordering a puser at alie now. Thank you for all the responses.

In other news:
I made a plugin for the ct003 to get the data over to Domoticz without the need for a puser.

You can find it here: https://github.com/Haaibaai/Domoticz-Marstek
eddieb
Posts: 391
Joined: Wednesday 04 July 2018 7:48
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Marstek Battery plugin

Post by eddieb »

I dumped the CT003 for a HomeWizzard P1 ...
The CT003 was way to unstable for me
RPI4 Beta / Tasmota / ZigBee2MQTT / P1meter / Haier AC MQTTmapper / SolarEdge SE3500H modbus_tcp / Marstek Venus / Opentherm gateway / Plugwise Anna/Smile / ObserverIP weatherstation thru WuDirect
Feeding ADSB https://adsb.im/home
RNEE
Posts: 55
Joined: Sunday 05 August 2018 10:13
Target OS: Raspberry Pi / ODroid
Domoticz version: 2025.1
Location: Eindhoven area
Contact:

Re: Marstek Battery plugin

Post by RNEE »

Haaibaai wrote: Monday 04 August 2025 15:31 Power line. Why didn’t I think of that. Ordering a puser at alie now. Thank you for all the responses.

In other news:
I made a plugin for the ct003 to get the data over to Domoticz without the need for a puser.

You can find it here: https://github.com/Haaibaai/Domoticz-Marstek
Nice!

About using the dr164 with wifi, there are several solutions :
- a separate plugin
- something like mqmgateway, mobugen
- a script using jq

All recquire a lot more skills and time to get and keep it going

For me i take the dr134, no more thoughts about that. Easy to setup and easy to maintain.
Domoticz on Docker on Raspberry PI 5 with 500 Gb NVMe|Milight|KaKu + RFXCOM|Goodwe|Smartstuff P1 meter|Buienradar|Afval kalender|Tuya-wifi|Zigbee + deCONZ Conbee II|Marstek Homebattery 5,12Kwh via Modbus on Pusr-dr134|MQTTMapper|Quatt v2|
Henielma
Posts: 11
Joined: Friday 12 September 2025 12:14
Target OS: Raspberry Pi / ODroid
Domoticz version: 2025.2
Contact:

Re: Marstek Battery plugin

Post by Henielma »

I am using the DR134 to read out data from the Marstek Venus V2 battery as RNEE describes. This works fine with the Light edge mode of this modbus gateway. Also adding aditional register readout like battery voltage and back up relay status is no problem.

My goal is to use the DR134 to change the force charge/discharge/stop register. To start simple I tried to change the back up relay status using the DR134. After a few evenings trying to get this working I think I need some help on this.

Is it possible to send commands to the Marstek battery using the DR134?
Has anybody something like this working?

As test I first would like to send a command to the battery using the DR134 and MQTT Explorer and see that the battery reacts on this.
User avatar
pwassink
Posts: 1
Joined: Monday 05 June 2017 10:17
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Vorden (NLD)
Contact:

Re: Marstek Battery plugin

Post by pwassink »

Domo latest stable version: , on top of a Debian CT running in Proxmox
Version: 2025.1 (build 16782)
Build Hash: 3ed178aa4
Compile Date: 2025-09-12 08:38:25

This plugin was a nice discovery, had some trouble to get python at work on an old beta-version running VM.
Build a seperate new instance, which does work, has python and loads the plugin, , and i see some data from the Marstek CT passing through the logtraces.

As it is a Udp broadcasted datagram which is beeng sent like it seems, is there a possibillity to let it listen to the data fom more than one Marstek-Venus V3 ?

This is the data i see passing when the plugin reads it:
2025-09-26 15:25:54.293 Marstek: Data ontvangen van Marstek:
2025-09-26 15:25:54.293 Marstek: {'meter_dev_type': 'HME-3', 'meter_mac_code': '009b08a5fbb1', 'hhm_dev_type': 'HMG-50', 'hhm_mac_code': '60323b753543', 'A_phase_power': 3, 'B_phase_power': -303, 'C_phase_power': 226, 'A_charge_power': -42, 'B_charge_power': 0, 'C_charge_power': 1, 'total_power': 0, 'A_discharge_power': 0, 'B_discharge_power': -62, 'C_discharge_power': 196, 'Total_charge_power': 0, 'Total_discharge_power': 0, 'A_chrg_nb': -4, 'B_chrg_nb': 0, 'C_chrg_nb': 0, 'ABC_chrg_nb': 0, 'wifi_rssi': 0, 'info_idx': 0, 'x_chrg_power': 0, 'A_chrg_power': 0, 'B_chrg_power': 82498660, 'C_chrg_power': 63676220, 'ABC_chrg_power': 16202890, 'x_dchrg_power': 40356090, 'A_dchrg_power': None, 'B_dchrg_power': None, 'C_dchrg_power': None, 'ABC_dchrg_power': None}
2025-09-26 15:25:54.307 Marstek: ABC Charge: 0 W / 16.203 kWh
2025-09-26 15:25:54.308 Marstek: ABC Discharge: 0 W / 0.000 kWh
2025-09-26 15:25:54.308 Marstek: Data bijgewerkt

Ive seen this data for couple of days now, the ABC values stay the same, seems there is still something wrong.

Any ideas how to get all three batteries working on this plugin inside Domoticz ?
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest