Deye · Solar inverter
SUN string inverters (G0* / SUN-...-G3 string models) Modbus register map
Serial device: in Modbus Connect, choose “Add to existing device” and pick the serial (RTU) device you created on your COM port.
Default configuration
- Protocol
- Modbus RTU over RS-485
- Unit ID
- 1
- Addressing
- 0-based
- Byte order
- Big endian
- Word order
- Low word first
- Baud rate
- 9600
- Parity
- None
- Data bits
- 8
- Stop bits
- 1
To read this device over Modbus RTU in Modbus Connect:
- In Modbus Connect, add a serial (RTU) device on your COM port with the serial settings and unit ID shown above.
- Click Add to Modbus Connect (or open the downloaded JSON), choose “Add to existing device” and pick that serial device. Its registers, byte order and word order are added; the serial device keeps its own line settings.
The “Add device” tab creates a Modbus TCP device (IP address and port), so use it only when you reach this device through a Modbus RTU-to-TCP gateway set to the serial settings above.
Register map
| Address | Count | Name | Type | Unit | Scale | Access |
|---|---|---|---|---|---|---|
| 0 | 1 | Device Values: 0x0000 = Unknown; [0x0002, 0x0200] = String Inverter; [0x0003, 0x0300] = Single-Phase Hybrid Inverter; [0x0004, 0x0400] = Microinverter; [0x0005, 0x0500] = LV 3-Phase Hybrid Inverter; 0x0006 = HV 3-Phase Hybrid Inverter; [0x0007, 0x0600] = HV 3-Phase Inverter 6-15kw; [0x0008, 0x0601] = HV 3-Phase Inverter 20-50kw; 0x0103 = Off-Grid Inverter; 0x0104 = Energy Storage System. | UInt16 | - | 1 | R |
| 1 | 1 | Device Modbus Address | UInt16 | - | 1 | R |
| 8 | 1 | Device Rated Phase Values: [0, 1, 2] = Single-Phase; 3 = Three-Phase; 8 = Single-Phase Storage. | UInt16 | - | 1 | R |
| 9 | 1 | Device Chip Type Low 4 bits: 1 = AT32F403A; 2 = SXX32F103; 3 = GD32F103; 4 = GD32F303, as the vendor table prints them; the community definition numbers the same four chips 0-3. | UInt16 | - | 1 | R |
| 16 | 2 | Device Rated Power | Int32 | W | 0.1 | R |
| 21 | 1 | Self-check time | UInt16 | s | 1 | R |
| 43 | 1 | On/off switch enable The vendor table lists it as R/W with range [0,1]: 0 = power off, 1 = power on (its micro-inverter note adds 2 = power off); the community definition's switch maps on to 1 but off to 2. Because the two sources disagree on the off value, the row is read-only here. | UInt16 | - | 1 | R |
| 59 | 1 | Device State Values: 0x0000 = Standby; 0x0001 = Self-test; 0x0002 = Normal; 0x0003 = Alarm; 0x0004 = Fault. | UInt16 | - | 1 | R |
| 60 | 1 | Today Production The vendor table notes it as "signed int" with a printed range of -32768 to 32767, while the definition reads it unsigned; a day's production cannot be negative, so the row stays unsigned. | UInt16 | kWh | 0.1 | R |
| 63 | 2 | Total Production Total active production energy, two registers with the low word at 63. The vendor row prints range 0-0xFFFFFFFF but notes the type as "signed int"; its range, evcc's uint32s decode and the fact that the counter cannot go negative all say unsigned, so UInt32 is used. | UInt32 | kWh | 0.1 | R |
| 70 | 1 | Grid L12 Voltage | UInt16 | V | 0.1 | R |
| 71 | 1 | Grid L23 Voltage | UInt16 | V | 0.1 | R |
| 72 | 1 | Grid L31 Voltage | UInt16 | V | 0.1 | R |
| 73 | 1 | Grid L1 Voltage | UInt16 | V | 0.1 | R |
| 74 | 1 | Grid L2 Voltage | UInt16 | V | 0.1 | R |
| 75 | 1 | Grid L3 Voltage | UInt16 | V | 0.1 | R |
| 76 | 1 | Grid L1 Current Signed: the vendor table prints an unsigned range [0,65535] but the definition reads the three grid currents as signed (rule 2), which is what a current that reverses on export needs. The same applies to 77 and 78. | Int16 | A | 0.1 | R |
| 77 | 1 | Grid L2 Current | Int16 | A | 0.1 | R |
| 78 | 1 | Grid L3 Current | Int16 | A | 0.1 | R |
| 79 | 1 | Grid Frequency | UInt16 | Hz | 0.01 | R |
| 80 | 2 | Output AC Power | UInt32 | W | 0.1 | R |
| 82 | 2 | Input Power | UInt32 | W | 0.1 | R |
| 84 | 2 | Output Apparent Power | UInt32 | VA | 0.1 | R |
| 86 | 2 | Output active power Output active power, two registers with the low word at 86. The vendor table prints 0.1 W and evcc decodes register 86 as uint32s at 0.1; the definition's 1.1 scale on this address is an outlier and is not used. | UInt32 | W | 0.1 | R |
| 88 | 2 | Output Reactive Power | UInt32 | var | 0.1 | R |
| 90 | 1 | DC Temperature Radiator temperature. The vendor table prints 0.1 °C with a 0-3000 range and its worked examples on the adjacent temperature row state that 0 °C is raw 1000 (-56.2 °C = 438, 50.5 °C = 1505), which is why the row carries an offset of -100.0; the definition states the same 1000 offset. | Int16 | °C | 0.1 (offset -100) | R |
| 91 | 1 | Temperature IGBT module temperature. The vendor table prints the convention with worked examples: 0 °C = raw 1000, -56.2 °C = 438, 50.5 °C = 1505, hence the -100.0 offset. | Int16 | °C | 0.1 (offset -100) | R |
| 101 | 2 | Device Alarm Two warning words, low word at 101. Bits the definition decodes: 1 = fan failure, 2 = grid phase failure, 3 = meter communication failure, 30 = battery loss, 31 = parallel communication quality. Word values are listed in the vendor document's alarm code table, which this map does not transcribe. | UInt32 | - | 1 | R |
| 109 | 1 | PV1 Voltage | UInt16 | V | 0.1 | R |
| 110 | 1 | PV1 Current | UInt16 | A | 0.1 | R |
| 111 | 1 | PV2 Voltage | UInt16 | V | 0.1 | R |
| 112 | 1 | PV2 Current | UInt16 | A | 0.1 | R |
| 113 | 1 | PV3 Voltage | UInt16 | V | 0.1 | R |
| 114 | 1 | PV3 Current | UInt16 | A | 0.1 | R |
| 115 | 1 | PV4 Voltage | UInt16 | V | 0.1 | R |
| 116 | 1 | PV4 Current | UInt16 | A | 0.1 | R |
| 198 | 2 | Load Power | Int32 | W | 1 | R |
| 200 | 1 | Today Load Consumption | UInt16 | kWh | 0.01 | R |
| 201 | 2 | Total Load Consumption | UInt32 | kWh | 0.1 | R |
| 203 | 2 | Grid Power | Int32 | W | 1 | R |
| 205 | 1 | Today Energy Export | UInt16 | kWh | 0.01 | R |
| 206 | 2 | Total Energy Export | UInt32 | kWh | 0.1 | R |
| 208 | 1 | Today Energy Import | UInt16 | kWh | 0.01 | R |
| 209 | 2 | Total Energy Import | UInt32 | kWh | 0.1 | R |
Read this device live with Modbus Connect, free for Windows, macOS and Linux
Related guides
Notes
Deye string inverter map. Sources: (1) vendor document 'Deye Modbus protocol V1.18' (mirror https://github.com/user-attachments/files/16597960/Deye.Modbus.protocol.V118.pdf, SHA-256 7444d2ef7dee282d5dbc734e73d6792788bc8a323ca532c8202d8d5f976b3717, 2026-11-23) for the baud line, rows 86, 63 and 90/91, and the names and scales its table pairs; (2) the Solarman definition deye_string.yaml (ha-solarman commit 84982c5be1cda2c9642d87dd37e2bffd4aef6b83, SHA-256 b9d37f508e0457e5f80855cfa84b446323104d5812788af0824520d0c75725ce), SECONDARY, for the address scope; (3) evcc deye-string.yaml and deye-mi.yaml (evcc commit c95e43506df075706ad3de0e994d1da4820dca49), which read 86 and 63 as holding at 0.1. Types and widths follow the definition's rule codes as ha-solarman's parser implements them (1/3 unsigned, 2/4 signed; registers-list length is the width; first listed register is the low word), so every 32-bit row is two registers listed low word first. The vendor table shares one address column across micro, string and hybrid units, so an address can mean different things per family (086 is output active power for string/micro, load-energy high word for hybrid); these rows are the string/micro meanings. Rows 109-116 are tagged MI there while the definition reads them as PV inputs, so their use on string models is unconfirmed. Area: holding registers, as ha-solarman's default read code is 0x03 (const.py REGISTERS_CODE) and evcc reads 86/63 as holding; the vendor table prints no per-row function code. Frame: it prints only 'Baud rate: 9600bps RS232 or RS485', so the frame is cited from Developer089/deye-modbus-ha at 591a24a09d01cc58e553ca02e6f49a72181ae984 (9600, 8 data bits, parity N, 1 stop bit) plus evcc's 8N1. Left out: ASCII, version and time rows, 64-bit blocks, mask/bit rows, the composite PV-power sensors (voltage times current, definition scale 0.1 against the 0.01 its operands imply), and the string-only blocks 150-197. No write row; no hardware test claimed.