{
  "device_type": "deye_sg05lp1_eu_sm2",
  "group": "g-inverters",
  "device": {
    "name": "Deye SUN-3.6/5/6/7.6/8K-SG05LP1-EU-SM2",
    "id": "deye_sg05lp1_eu_sm2",
    "max_read_registers": 32,
    "response_timeout_ms": 1000,
    "guard_interval_us": 4010
  },
  "protocol": "modbus",
  "channels": [
    { "name": "Battery SOC", "reg_type": "holding", "address": 184, "type": "value", "format": "u16", "scale": 1, "units": "%", "readonly": true, "precision": 1 },
    { "name": "Battery Voltage", "reg_type": "holding", "address": 183, "type": "value", "format": "u16", "scale": 0.01, "units": "V", "readonly": true, "precision": 0.01 },
    { "name": "Battery Current", "reg_type": "holding", "address": 191, "type": "value", "format": "s16", "scale": 0.01, "units": "A", "readonly": true, "precision": 0.01 },
    { "name": "Battery Power", "reg_type": "holding", "address": 190, "type": "value", "format": "s16", "scale": 1, "units": "W", "readonly": true, "precision": 1 },

    { "name": "PV1 Power", "reg_type": "holding", "address": 186, "type": "value", "format": "s16", "scale": 1, "units": "W", "readonly": true, "precision": 1 },
    { "name": "PV1 Voltage", "reg_type": "holding", "address": 109, "type": "value", "format": "u16", "scale": 0.1, "units": "V", "readonly": true, "precision": 0.1 },
    { "name": "PV1 Current", "reg_type": "holding", "address": 110, "type": "value", "format": "u16", "scale": 0.1, "units": "A", "readonly": true, "precision": 0.1 },
    { "name": "PV2 Power", "reg_type": "holding", "address": 187, "type": "value", "format": "s16", "scale": 1, "units": "W", "readonly": true, "precision": 1 },
    { "name": "PV2 Voltage", "reg_type": "holding", "address": 111, "type": "value", "format": "u16", "scale": 0.1, "units": "V", "readonly": true, "precision": 0.1 },
    { "name": "PV2 Current", "reg_type": "holding", "address": 112, "type": "value", "format": "u16", "scale": 0.1, "units": "A", "readonly": true, "precision": 0.1 },

    { "name": "Grid Power", "reg_type": "holding", "address": 169, "type": "value", "format": "s16", "scale": 1, "units": "W", "readonly": true, "precision": 1 },
    { "name": "Grid CT Power", "reg_type": "holding", "address": 172, "type": "value", "format": "s16", "scale": 1, "units": "W", "readonly": true, "precision": 1 },
    { "name": "Grid Voltage", "reg_type": "holding", "address": 150, "type": "value", "format": "u16", "scale": 0.1, "units": "V", "readonly": true, "precision": 0.1 },
    { "name": "Grid Current L1", "reg_type": "holding", "address": 160, "type": "value", "format": "s16", "scale": 0.01, "units": "A", "readonly": true, "precision": 0.01 },
    { "name": "Grid Current L2", "reg_type": "holding", "address": 161, "type": "value", "format": "s16", "scale": 0.01, "units": "A", "readonly": true, "precision": 0.01 },
    { "name": "Grid Frequency", "reg_type": "holding", "address": 79, "type": "value", "format": "u16", "scale": 0.01, "units": "Hz", "readonly": true, "precision": 0.01 },

    { "name": "Load Power", "reg_type": "holding", "address": 178, "type": "value", "format": "s16", "scale": 1, "units": "W", "readonly": true, "precision": 1 },
    { "name": "Load L1 Power", "reg_type": "holding", "address": 176, "type": "value", "format": "s16", "scale": 1, "units": "W", "readonly": true, "precision": 1 },
    { "name": "Load L2 Power", "reg_type": "holding", "address": 177, "type": "value", "format": "s16", "scale": 1, "units": "W", "readonly": true, "precision": 1 },
    { "name": "Load Frequency", "reg_type": "holding", "address": 192, "type": "value", "format": "u16", "scale": 0.01, "units": "Hz", "readonly": true, "precision": 0.01 },

    { "name": "Inverter Power", "reg_type": "holding", "address": 175, "type": "value", "format": "s16", "scale": 1, "units": "W", "readonly": true, "precision": 1 },
    { "name": "Inverter Voltage", "reg_type": "holding", "address": 154, "type": "value", "format": "u16", "scale": 0.1, "units": "V", "readonly": true, "precision": 0.1 },
    { "name": "Inverter Current", "reg_type": "holding", "address": 164, "type": "value", "format": "s16", "scale": 0.01, "units": "A", "readonly": true, "precision": 0.01 },
    { "name": "Inverter Frequency", "reg_type": "holding", "address": 193, "type": "value", "format": "u16", "scale": 0.01, "units": "Hz", "readonly": true, "precision": 0.01 },

    { "name": "Day PV Energy", "reg_type": "holding", "address": 108, "type": "value", "format": "u16", "scale": 0.1, "units": "kWh", "readonly": true, "precision": 0.1 },
    { "name": "Day Load Energy", "reg_type": "holding", "address": 84, "type": "value", "format": "u16", "scale": 0.1, "units": "kWh", "readonly": true, "precision": 0.1 },
    { "name": "Day Grid Import", "reg_type": "holding", "address": 76, "type": "value", "format": "u16", "scale": 0.1, "units": "kWh", "readonly": true, "precision": 0.1 },
    { "name": "Day Grid Export", "reg_type": "holding", "address": 77, "type": "value", "format": "u16", "scale": 0.1, "units": "kWh", "readonly": true, "precision": 0.1 },
    { "name": "Total PV Energy", "reg_type": "holding", "address": 96, "type": "value", "format": "u32", "scale": 0.1, "units": "kWh", "readonly": true, "precision": 0.1 },
    { "name": "Total Battery Charge", "reg_type": "holding", "address": 72, "type": "value", "format": "u32", "scale": 0.1, "units": "kWh", "readonly": true, "precision": 0.1 },
    { "name": "Total Battery Discharge", "reg_type": "holding", "address": 74, "type": "value", "format": "u32", "scale": 0.1, "units": "kWh", "readonly": true, "precision": 0.1 },
    { "name": "Total Grid Import", "reg_type": "holding", "address": 78, "type": "value", "format": "u32", "scale": 0.1, "units": "kWh", "readonly": true, "precision": 0.1 },
    { "name": "Total Grid Export", "reg_type": "holding", "address": 81, "type": "value", "format": "u32", "scale": 0.1, "units": "kWh", "readonly": true, "precision": 0.1 },
    { "name": "Total Load Energy", "reg_type": "holding", "address": 85, "type": "value", "format": "u32", "scale": 0.1, "units": "kWh", "readonly": true, "precision": 0.1 },

    { "name": "DC Temperature", "reg_type": "holding", "address": 90, "type": "temperature", "format": "s16", "scale": 0.1, "offset": -100, "units": "deg C", "readonly": true, "precision": 0.1 },
    { "name": "AC Temperature", "reg_type": "holding", "address": 91, "type": "temperature", "format": "s16", "scale": 0.1, "offset": -100, "units": "deg C", "readonly": true, "precision": 0.1 },
    { "name": "Battery Temperature", "reg_type": "holding", "address": 182, "type": "temperature", "format": "s16", "scale": 0.1, "offset": -100, "units": "deg C", "readonly": true, "precision": 0.1 },

    { "name": "Overall State", "reg_type": "holding", "address": 59, "type": "value", "format": "u16", "readonly": true },
    { "name": "Grid Connected", "reg_type": "holding", "address": 194, "type": "switch", "format": "u16", "readonly": true }
  ]
}
