User Tools

Site Tools


deyecodes

SUN-6K-SG04LP1-EU-SM2 is using V2/Low Address Protocol

Connection requirements: 9600 8N1 Slave 1 Read Function 3

Note: every return value is 16bit (signed or unsigned)

Available Addresses:

PV (Solar) Input Data

108	PV Daily Production	kWh	0.1
109	PV1 Voltage		V 	0.1
110	PV1 Current		A	0.1
111	PV2 Voltage		V	0.1
112	PV2 Current		A	0.1
114	Gross Daily PV		
186	PV1 Power		W	1
187	PV2 Power		W	1
96	PV Total Production 	kWh	(Combined with 97)
	(Lifetime High)
97	PV Total Production 	kWh	0.1
	(Lifetime Low)

Battery Data

70      Battery Charge (Daily)		kWh	0.1
71      Battery Discharge (Daily)	kWh	0.1
182	Battery Temperature		°C	0.1 (Offset 1000)
183	Battery Voltage			V	0.01
184	Battery SOC			%	1
189     Battery Status                          0=charge 1=standby 2=discharge
190	Battery Power			W	1 (Signed)
191	Battery Current			A	0.1 (Signed)
105	Battery Daily Charge		kWh	0.1
106	Battery Daily Discharge		kWh	0.1
102	Battery Total Charge		kWh	0.1
	(Lifetime)	
103	Battery Total Discharge		kWh	0.1
	(Lifetime)	
586	BMS Maximum Charge Voltage	V	0.01
587	BMS Maximum Charge Current	A	1
588	BMS Maximum Discharge Current	A	1

Grid and AC Data

79      Grid Frequency                  Hz	0.01
150     Grid Voltage L1                 V       0.1
151     Grid Voltage L2                 V       0.1
157     Load Voltage                    V       0.1
160	Grid Current L1			A	0.1
161	Grid Current L2			A	0.1
166	GRID Power (Total)		W	1 (Signed)
167	Grid L1 Power (Internal CT)	W	1 (Signed)
168     Grid L2 Power (Internal CT)     W       1 (Signed)
169	External CT / Check Meter Power	W	1 (Signed)  <- Grid Import
170     Grid L1 Power (External CT)     W       1 (Signed)
171     Grid L2 Power (External CT)     W       1 (Signed)
175	Inverter Power (AC Output)	W	1 (Signed)
176     Load L1 Power                   W       1 (Signed)
177     Load L2 Power                   W       1 (Signed)
178	Load Power (Essential)		W	1
84	Total Load Power		kWh	0.1
192	Inverter L1 Current		A	0.1
76	Total Grid Daily Buy		kWh	0.1
77	Total Grid Daily Sell		kWh	0.1
78	Grid Total Buy (Lifetime)	kWh	0.1
79	Grid Total Sell (Lifetime)	kWh	0.1

System Status and Health Data

90	Inverter Temperature	°C	0.1 (Offset 1000)
91	DC Transformer Temp	°C	0.1 (Offset 1000)
200	Radiator Temperature	°C	0.1 (Offset 1000)
500	Inverter Mode		Code	(0: Standby, 1: Self-Check, 2: Normal, 3: Fault)
233	Fault Code 1		-	(Bitmapped)
234	Fault Code 2		-	(Bitmapped)

Misc Data

0	Modbus Protocol Version			Decimal	
1	Control Software Version (Firmware)	Decimal	
2	Communication Board Version		Decimal	
13	Rated Power (e.g., 6000 for 6kW)	Watts	

Note: To compute for the temperature, subtract value by 1000 then divide by 10

https://community.home-assistant.io/t/connecting-to-the-new-deye-logger-to-home-assistant-using-esphome/997672

Production

Sensor	Unit	Register
Total Production	kWh	0x0060
Daily Production	kWh	0x006C
PV

Sensor	Unit	Register
PV1 Voltage	V	0x006D
PV1 Current	A	0x006E
PV1 Power	W	computed (V × I)
PV2 Voltage	V	0x006F
PV2 Current	A	0x0070
PV2 Power	W	computed (V × I)
Total PV Power	W	computed (PV1 + PV2)
Max Solar Power	W	0x0035
Grid

Sensor	Unit	Register
Grid Voltage 1	V	0x0096
Grid Voltage 2	V	0x0097
Grid Power	W	0x00A9
Load

Sensor	Unit	Register
Daily Load Consumption	kWh	0x0054
Total Load Consumption	kWh	0x0055
Load L1 Voltage	V	0x009D
Load L1 Current	A	0x00A4
Load L1 Power	W	0x00B2
Total Load Power	W	0x00B0
Inverter

Sensor	Unit	Register
Total Power	W	0x00AD
Inverter L1 Power	W	0x00AF
DC Temperature	°C	0x005A
AC Temperature	°C	0x005B
Battery

Sensor	Unit	Register
Battery Voltage	V	0x00B7
Battery Current	A	0x00BF
Battery Power	W	0x00BE
Battery SOC	%	0x00B8
Battery Settings (diagnostic)

Sensor	Unit	Register
Battery Capacity	Ah	0x00CC
Battery Empty Voltage	V	0x00CD
Max Charge Current	A	0x00D2
Max Discharge Current	A	0x00D3
Battery Shutdown %	%	0x00D9
Battery Restart %	%	0x00DA
Battery Low %	%	0x00DB
Selling Mode (diagnostic)

Sensor	Unit	Register
Selling Mode Time 1–6	HH:MM	0x00FA–0x00FF
Selling Mode Power 1–6	W	0x0100–0x0105
Selling Mode SOC 1–6	%	0x010C–0x0111
Selling Mode Charge Flag 1–6	—	0x0112–0x0117

Deye Code Definition (from Solarman)

deyecodes.txt · Last modified: by jwan

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki