{
    "rtype":  0,   // 0 = modbus, 1 = http/json

    "name": "Deye LP3 Grid v02",   // as displayed in the config dialog
    "manufacturer": "Deye",
    "dev_type": "deye_lp3_grid_v02",   // will be prefixed by "meter_"

    // modbus parameters
    "rtu": {
        "silence_period": 50,    // msec
        "silence_same_slave": false,
        "retries": 4,
        "rcv_timeout": 120       // msec
    },
    "modbus_read": 3,            // function code to read registers
    "modbus_read_max_registers": 96, 
    "modbus_write": 16,          // function code to write register(s)
    "modbus_write_max_registers": 64,

    // values used to build the model string
    "type_designation": {
        "fixed": "LP3 Grid"
    },
    "version": {
        "fixed": "1.0"
    },
    "firmware_version": {
        "fixed": "1.0"
    },
    "serial": {
        "address": 3,
        "type": "string",
        "length": 5
    },
    
    "voltage_l1": {
        "address": 598,
        "type": "int16",
        "resolution": 0.1
    },
    "voltage_l2": {
        "address": 599,
        "type": "int16",
        "resolution": 0.1
    },
    "voltage_l3": {
        "address": 600,
        "type": "int16",
        "resolution": 0.1
    },

// 610,611,612 are grid inner side current on phase A,B,C
// 613,614,615 are out of grid current on phase A,B,C

    "current_l1": {
//        "address": 610,
        "address": 613,  
        "type": "int16",
        "resolution": 10
    },
    "current_l2": {
//        "address": 611,
        "address": 614,
        "type": "int16",
        "resolution": 10
    },
    "current_l3": {
//        "address": 612,
        "address": 615,
        "type": "int16",
        "resolution": 10
    },
    // instantaneous values
    "power_w": {
// 619 is out of grid total power
// 625 is grid side total power
//        "address": 619,
        "address": 625,
        "type": "int16"
    },

    // accumulated values
    "import_wh": {
        "address": 522,
        "type": "int32",
        "order": "lh",
        "resolution": 100.0   // result in Wh
    },
    "export_wh": {
        "address": 524,
        "type": "int32",
        "order": "lh",
        "resolution": 100.0   // result in Wh
    }
 }
 