All devices

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:

  1. In Modbus Connect, add a serial (RTU) device on your COM port with the serial settings and unit ID shown above.
  2. 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

AddressCountNameTypeUnitScaleAccess
01
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-1R
11
Device Modbus Address
UInt16-1R
81
Device Rated Phase
Values: [0, 1, 2] = Single-Phase; 3 = Three-Phase; 8 = Single-Phase Storage.
UInt16-1R
91
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-1R
162
Device Rated Power
Int32W0.1R
211
Self-check time
UInt16s1R
431
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-1R
591
Device State
Values: 0x0000 = Standby; 0x0001 = Self-test; 0x0002 = Normal; 0x0003 = Alarm; 0x0004 = Fault.
UInt16-1R
601
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.
UInt16kWh0.1R
632
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.
UInt32kWh0.1R
701
Grid L12 Voltage
UInt16V0.1R
711
Grid L23 Voltage
UInt16V0.1R
721
Grid L31 Voltage
UInt16V0.1R
731
Grid L1 Voltage
UInt16V0.1R
741
Grid L2 Voltage
UInt16V0.1R
751
Grid L3 Voltage
UInt16V0.1R
761
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.
Int16A0.1R
771
Grid L2 Current
Int16A0.1R
781
Grid L3 Current
Int16A0.1R
791
Grid Frequency
UInt16Hz0.01R
802
Output AC Power
UInt32W0.1R
822
Input Power
UInt32W0.1R
842
Output Apparent Power
UInt32VA0.1R
862
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.
UInt32W0.1R
882
Output Reactive Power
UInt32var0.1R
901
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°C0.1 (offset -100)R
911
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°C0.1 (offset -100)R
1012
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-1R
1091
PV1 Voltage
UInt16V0.1R
1101
PV1 Current
UInt16A0.1R
1111
PV2 Voltage
UInt16V0.1R
1121
PV2 Current
UInt16A0.1R
1131
PV3 Voltage
UInt16V0.1R
1141
PV3 Current
UInt16A0.1R
1151
PV4 Voltage
UInt16V0.1R
1161
PV4 Current
UInt16A0.1R
1982
Load Power
Int32W1R
2001
Today Load Consumption
UInt16kWh0.01R
2012
Total Load Consumption
UInt32kWh0.1R
2032
Grid Power
Int32W1R
2051
Today Energy Export
UInt16kWh0.01R
2062
Total Energy Export
UInt32kWh0.1R
2081
Today Energy Import
UInt16kWh0.01R
2092
Total Energy Import
UInt32kWh0.1R

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.

Related devices