{
  "spec_version": 1,
  "slug": "deye-micro-inverters",
  "manufacturer": "Deye",
  "model": "SUN-800-G3 / SUN-M80-G3 micro-inverters",
  "category": "Solar inverter",
  "supplier_url": "https://www.deyeinverter.com/",
  "default_configuration": {
    "protocol": "modbus_rtu",
    "unit_id": 1,
    "addressing": "zero_based",
    "byte_order": "BigEndian",
    "word_order": "LowFirst",
    "native_interface": "rs485",
    "serial": {
      "baud_rate": 9600,
      "parity": "None",
      "data_bits": 8,
      "stop_bits": 1
    }
  },
  "coils": [],
  "discrete_inputs": [],
  "input_registers": [],
  "holding_registers": [
    {
      "address": 0,
      "count": 1,
      "name": "Device",
      "data_type": "UInt16",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "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."
    },
    {
      "address": 1,
      "count": 1,
      "name": "Device Modbus Address",
      "data_type": "UInt16",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 8,
      "count": 1,
      "name": "Device Flags",
      "data_type": "UInt16",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Bit 0: 0 = number of channels taken from the rated power, 1 = from the MPPT number. Other bits are not described by the source."
    },
    {
      "address": 9,
      "count": 1,
      "name": "Device Chip Type",
      "data_type": "UInt16",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "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."
    },
    {
      "address": 16,
      "count": 2,
      "name": "Device Rated Power",
      "data_type": "Int32",
      "units": "W",
      "scale_factor": 0.1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 21,
      "count": 1,
      "name": "Self-check time",
      "data_type": "UInt16",
      "units": "s",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 27,
      "count": 1,
      "name": "Grid Voltage Upper Limit",
      "data_type": "UInt16",
      "units": "V",
      "scale_factor": 0.1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 28,
      "count": 1,
      "name": "Grid Voltage Lower Limit",
      "data_type": "UInt16",
      "units": "V",
      "scale_factor": 0.1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 29,
      "count": 1,
      "name": "Grid Frequency Upper Limit",
      "data_type": "UInt16",
      "units": "Hz",
      "scale_factor": 0.01,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 30,
      "count": 1,
      "name": "Grid Frequency Lower Limit",
      "data_type": "UInt16",
      "units": "Hz",
      "scale_factor": 0.01,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 34,
      "count": 1,
      "name": "Over-Frequency Load Reduction Start",
      "data_type": "UInt16",
      "units": "Hz",
      "scale_factor": 0.01,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 35,
      "count": 1,
      "name": "Over-Frequency Load Reduction",
      "data_type": "UInt16",
      "units": "%",
      "scale_factor": 1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 39,
      "count": 1,
      "name": "Power Factor Regulation",
      "data_type": "UInt16",
      "units": "",
      "scale_factor": 0.001,
      "offset": -1,
      "access": "R"
    },
    {
      "address": 40,
      "count": 1,
      "name": "Active Power Regulation",
      "data_type": "UInt16",
      "units": "%",
      "scale_factor": 0.1,
      "offset": 0,
      "access": "R",
      "description": "Active power limit in 0.1 % steps; the vendor table notes that a raw 800 means 80.0 % and the definition's configurable range is 0-120 %."
    },
    {
      "address": 43,
      "count": 1,
      "name": "On/off switch enable",
      "data_type": "UInt16",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "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."
    },
    {
      "address": 46,
      "count": 1,
      "name": "Island Protection",
      "data_type": "UInt16",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "0 = disable, 1 = enable."
    },
    {
      "address": 47,
      "count": 1,
      "name": "Soft Start",
      "data_type": "UInt16",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Soft-start (ramp) enable: 0 = disable, 1 = enable."
    },
    {
      "address": 48,
      "count": 1,
      "name": "GFDI",
      "data_type": "UInt16",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "0 = disable, 1 = enable. The vendor table names it GFDI enable on older units and meter enable on newer ones."
    },
    {
      "address": 49,
      "count": 1,
      "name": "Over-Frequency Load Reduction",
      "data_type": "UInt16",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Over-frequency load-reduction enable: 0 = disable, 1 = enable."
    },
    {
      "address": 50,
      "count": 1,
      "name": "RISO",
      "data_type": "UInt16",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Insulation-resistance monitoring enable: 0 = disable, 1 = enable."
    },
    {
      "address": 54,
      "count": 1,
      "name": "EEPROM",
      "data_type": "UInt16",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Values: 0 = Normal; 1 = Initialize the control board EEPROM; 2 = Initialize the communication board EEPROM."
    },
    {
      "address": 59,
      "count": 1,
      "name": "Device State",
      "data_type": "UInt16",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Values: 0x0000 = Standby; 0x0001 = Self-test; 0x0002 = Normal; 0x0003 = Alarm; 0x0004 = Fault."
    },
    {
      "address": 60,
      "count": 1,
      "name": "Today Production",
      "data_type": "UInt16",
      "units": "kWh",
      "scale_factor": 0.1,
      "offset": 0,
      "access": "R",
      "description": "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."
    },
    {
      "address": 63,
      "count": 2,
      "name": "Total Production",
      "data_type": "UInt32",
      "units": "kWh",
      "scale_factor": 0.1,
      "offset": 0,
      "access": "R",
      "description": "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."
    },
    {
      "address": 65,
      "count": 1,
      "name": "Today Production 1",
      "data_type": "UInt16",
      "units": "kWh",
      "scale_factor": 0.1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 66,
      "count": 1,
      "name": "Today Production 2",
      "data_type": "UInt16",
      "units": "kWh",
      "scale_factor": 0.1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 67,
      "count": 1,
      "name": "Today Production 3",
      "data_type": "UInt16",
      "units": "kWh",
      "scale_factor": 0.1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 68,
      "count": 1,
      "name": "Today Production 4",
      "data_type": "UInt16",
      "units": "kWh",
      "scale_factor": 0.1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 69,
      "count": 2,
      "name": "Total Production 1",
      "data_type": "UInt32",
      "units": "kWh",
      "scale_factor": 0.1,
      "offset": 0,
      "access": "R",
      "description": "Cumulative production of channel 1, 32 bits with the high word at 69 and the low word at 70; the vendor table prints the two words as separate rows at 0.1 kWh, the definition reads the low word alone."
    },
    {
      "address": 71,
      "count": 2,
      "name": "Total Production 2",
      "data_type": "UInt32",
      "units": "kWh",
      "scale_factor": 0.1,
      "offset": 0,
      "access": "R",
      "description": "Cumulative production of channel 2, 32 bits with the high word at 71 and the low word at 72."
    },
    {
      "address": 73,
      "count": 1,
      "name": "Grid Voltage",
      "data_type": "UInt16",
      "units": "V",
      "scale_factor": 0.1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 74,
      "count": 2,
      "name": "Total Production 3",
      "data_type": "UInt32",
      "units": "kWh",
      "scale_factor": 0.1,
      "offset": 0,
      "access": "R",
      "description": "Cumulative production of channel 3, 32 bits with the high word at 74 and the low word at 75."
    },
    {
      "address": 76,
      "count": 1,
      "name": "Grid Current",
      "data_type": "Int16",
      "units": "A",
      "scale_factor": 0.1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 77,
      "count": 2,
      "name": "Total Production 4",
      "data_type": "UInt32",
      "units": "kWh",
      "scale_factor": 0.1,
      "offset": 0,
      "access": "R",
      "description": "Cumulative production of channel 4, 32 bits with the high word at 77 and the low word at 78."
    },
    {
      "address": 79,
      "count": 1,
      "name": "Grid Frequency",
      "data_type": "UInt16",
      "units": "Hz",
      "scale_factor": 0.01,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 86,
      "count": 2,
      "name": "Output active power",
      "data_type": "UInt32",
      "units": "W",
      "scale_factor": 0.1,
      "offset": 0,
      "access": "R",
      "description": "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."
    },
    {
      "address": 90,
      "count": 1,
      "name": "Temperature",
      "data_type": "UInt16",
      "units": "°C",
      "scale_factor": 0.1,
      "offset": -100,
      "access": "R",
      "description": "Radiator temperature. The vendor table prints 0.1 °C with a 0-3000 range and its worked examples state that 0 °C is raw 1000 (-56.2 °C = 438, 50.5 °C = 1505), hence scale 0.1 with offset -100.0; the definition states the same 1000 offset but a 0.01 scale, which would read 1250 as 2.5 °C, so the vendor scale is used."
    },
    {
      "address": 101,
      "count": 2,
      "name": "Device Alarm",
      "data_type": "UInt32",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "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."
    },
    {
      "address": 109,
      "count": 1,
      "name": "PV1 Voltage",
      "data_type": "UInt16",
      "units": "V",
      "scale_factor": 0.1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 110,
      "count": 1,
      "name": "PV1 Current",
      "data_type": "UInt16",
      "units": "A",
      "scale_factor": 0.1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 111,
      "count": 1,
      "name": "PV2 Voltage",
      "data_type": "UInt16",
      "units": "V",
      "scale_factor": 0.1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 112,
      "count": 1,
      "name": "PV2 Current",
      "data_type": "UInt16",
      "units": "A",
      "scale_factor": 0.1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 113,
      "count": 1,
      "name": "PV3 Voltage",
      "data_type": "UInt16",
      "units": "V",
      "scale_factor": 0.1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 114,
      "count": 1,
      "name": "PV3 Current",
      "data_type": "UInt16",
      "units": "A",
      "scale_factor": 0.1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 115,
      "count": 1,
      "name": "PV4 Voltage",
      "data_type": "UInt16",
      "units": "V",
      "scale_factor": 0.1,
      "offset": 0,
      "access": "R"
    },
    {
      "address": 116,
      "count": 1,
      "name": "PV4 Current",
      "data_type": "UInt16",
      "units": "A",
      "scale_factor": 0.1,
      "offset": 0,
      "access": "R"
    }
  ],
  "combined_registers": [],
  "notes": "Deye micro-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, and the names and scales its table pairs; (2) the Solarman definition deye_micro.yaml (ha-solarman commit 84982c5be1cda2c9642d87dd37e2bffd4aef6b83, SHA-256 18d11190205f0af5c9b99dde05a0e57173743563a47e819ed52d156a8c84d816), 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). The vendor table shares one address column across micro, string and hybrid units, so an address can mean different things per family (065 is channel 1 day production on a micro and monthly PV generation on a hybrid); these rows are the micro meanings. The four channel cumulative counters are 32-bit pairs in the vendor table (69/70, 71/72, 74/75, 77/78) while the definition reads only each low word. 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 and the string-only blocks. No write row; no hardware test claimed."
}
