OpenAmpere

Device knowledge

These pages are technical. They collect what the OpenAmpere contributors have found out about the devices, each fact with its source and how sure it is. They show the latest state of development, which can be ahead of the version you have installed. They are not official manufacturer information. You don't need them to set up OpenAmpere; the app explains everything you need.

M-TEC Energy-Butler GEN3

Not official manufacturer information: compiled by the OpenAmpere contributors, can be incomplete or wrong. No affiliation with M-TEC, Solinteg or EKD; not legal advice. See the device knowledge README.

Applies to: M-TEC Energy-Butler GEN3 hybrid inverters (a Solinteg inverter, also sold as Wattsonic, Sunways, A-Tronix, SunEnergyBox) · Sold as: M-TEC Energy-Butler (EKD from late 2022) · OpenAmpere: driver mtec (src/openampere/drivers/mtec/), register map mtec_gen3 · Support: display only · Confirmed on a real device: partly (detected and read in the Home Assistant app; port 502, RTU frames and unit 252 on one unit; only one Modbus connection; signs compared with the M-TEC app on one unit)

Summary

Identification

Registers

All holding registers (FC03).

RegisterMeaningType, scale, signR/WStatusSource
10000–10007Serial numberASCIIRdocumentedM-TEC document; MTECmqtt
10008Equipment info (model code, high byte = series)U16RderivedMTECmqtt
10011–10014Firmware, two versions of four bytesbytesRderivedMTECmqtt
10105Running state: 0 wait, 1 check, 2 on-grid, 3 fault, 4 flash, 5 off-gridU16RdocumentedM-TEC document
10112–10115Fault flags 1 and 2U32 eachRderivedMTECmqtt
10994–10999Grid meter power L1–L3I32 each, WRderivedMTECmqtt
11000–11001Grid meter power, total, + = exportI32, WRdocumented (register), confirmed (sign, one unit)M-TEC document; MTECmqtt; evcc (scale −1); #647
11016–11017Inverter AC powerI32, WRdocumentedM-TEC document; MTECmqtt
11028–11029PV power, totalU32, WRdocumentedM-TEC document; MTECmqtt
11038–11041PV1, PV2 voltage and currentU16, 0.1 V, 0.1 ARderivedMTECmqtt
11062–11065PV1, PV2 powerU32 each, WRderivedMTECmqtt
30230–30231Backup (EPS) output powerI32, WRdocumentedM-TEC document; MTECmqtt
30254Battery voltageU16, 0.1 VRdocumentedM-TEC document
30255Battery currentI16, 0.1 ARdocumentedM-TEC document
30256Battery modeU16Rderived; not usedMTECmqtt
30258–30259Battery power, + = dischargingI32, WRdocumented (register), confirmed (sign, one unit)M-TEC document; evcc; #647
31000–31006Today: export, import, backup output (31002), battery charge and discharge, PV, loadU16, 0.1 kWhRderivedMTECmqtt
31102–31113Lifetime: export, import, backup output (31106), battery charge, battery discharge, PVU32, 0.1 kWhRderivedMTECmqtt
33000State of chargeU16, 0.01 %RdocumentedM-TEC document; MTECmqtt
33001State of healthU16, 0.01 %RderivedMTECmqtt

"M-TEC document" is "M-TEC Energy Butler RTU Protocol GEN2 + GEN3 V1.0" (2022-11-19), which an owner posted publicly in the ioBroker forum; facts only, in own words. It describes RS485 (9600 8N1, address 247) and the function codes 03, 06 and 16, but lists every register as read-only.

Behaviour

FactStatusSource
The Wi-Fi/LAN module listens on port 5743 before module firmware V27.52.4.0 and on 502 from then on.derivedcroedel/MTECmqtt; owners' reports (2025–2026)
Unit 252 with RTU frames over TCP (MTECmqtt, port 5743), 247 (RS485 default, also shown on the display), 255 with plain Modbus TCP (evcc); on 502 owners report both framings working.openMTECmqtt; evcc solinteg-gen3; owners' reports
One EKD unit answered on port 502 with RTU frames over TCP on unit 252 (register map mtec_gen3 (rtu)).confirmed (one unit)diagnostics report of an owner, #626
The Wi-Fi/LAN module takes only one Modbus TCP connection: the connection test of the diagnostics got no answer on any extra connection (connection refused) and OpenAmpere's own connection was dropped. While the Modbus integration of Home Assistant read the device, OpenAmpere could not connect; once it was switched off and Home Assistant restarted, OpenAmpere connected.confirmed (one unit)diagnostics report of an owner, #626
In one reading with the battery idle, PV power plus grid import equalled the backup output, with 11000 read as + = export. This supports the sign of 11000; the battery sign stays open.deriveddiagnostics report of an owner, #626
The house load is the inverter's AC power minus the grid power (11016 − 11000).derivedMTECmqtt (32cdf27)
The Energy-Butler GEN3 is a Solinteg inverter; evcc's solinteg-gen3 and the Solinteg plugin of homeassistant-solax-modbus cover it.derivedevcc-io/evcc (MIT); wills106/homeassistant-solax-modbus (Apache-2.0)
The module shows up in the router as "espressif"; the data also goes to M-TEC's cloud at least once a minute.derivedowners' reports; croedel/M-TEC-API README
Writing (operating mode 50000, export limit 25100/25103, SoC floors 52502–52505, EMS setpoints 50202–50210) is used by projects without a documented watchdog: the values are probably stored.derived, openMTECmqtt (LGPL, facts only), evcc, Solinteg plugin
M-TEC is still in business; owners use the "M-TEC Energy Butler" app and the portal energybutler.mtec-portal.com. In 2023 M-TEC removed the grid export settings from the portal for owners; installers still have them.documented (store listings), derived (forum)App Store and Google Play listings; forum.iobroker.net topic 64236
An Energy-Butler GEN3 was detected on its own by the Home Assistant app of OpenAmpere, which reads its data. Whether the signs are right is not recorded.confirmed (detection and reading), open (signs)owner report by e-mail, summarised in #617
The same owner compared grid, battery, house and PV in OpenAmpere with the M-TEC app at the same time and says the signs are right: 11000 is + for export and 30258 + for discharging, as OpenAmpere reads them.confirmed (one unit)owner report by e-mail, summarised in #647
On that system the whole house, the wallbox included, is on the backup (EPS) output. In the diagnostics report of #626 the backup output (30230) was above the inverter's AC power (11016); the owner says a car was charging at full power with little PV then, more than the inverter could supply.derived (one system)owner report by e-mail, summarised in #647; diagnostics report in #626

Decisions in OpenAmpere

DecisionWhyIssue/PR
Display only: every write method refuses, supports_control is off.Nothing confirmed on a device; the writes known have no watchdog.#520
Detected after FoxESS, SAJ and Solarmax on units 252, 255 and 247; plain Modbus TCP first, then RTU frames over TCP, one try each. In the automatic detection (setup scan), if the first unit answers in neither framing, the others are asked in plain Modbus TCP only for 10 minutes; when the owner chooses M-TEC in the setup, every unit gets both framings. A device counts as an M-TEC only with a readable serial number, a known running state and a state of charge within 0–100 %.The sources disagree on unit id and framing; detection must not claim another device, and a silent Modbus device in the network must not hold up the setup scan. An RTU gateway at 247 is found when M-TEC is chosen.#520, #534
The port is not probed: with older module firmware the owner enters 5743 (the setup says so next to the port).Detection stops when nothing listens on the port; a second port would need a second address in the settings.#520, #534
The connection test of the diagnostics is skipped (SINGLE_CONNECTION), and the setup says to switch other Modbus readers off when M-TEC is chosen.The module takes one connection: the test would drop OpenAmpere's own connection, and another reader keeps OpenAmpere out without the owner learning why.#628
Blocks only over the addresses the sources list.A block across an undocumented gap might be refused.#520
Running state 3 (fault) reports the fault flags as a fault; 5 means off-grid.M-TEC document.#520

Open questions

Sources

View and improve this page on GitHub