{
    "rtype": 0,   // 0 = modbus, 1 = http/json
    "mtype": 1,   // 0 = other, 1 = meter, 2 = inverter, 4 = battery

    "name": "Eastron SDM120CT",   // as displayed in the config dialog
    "manufacturer": "Eastron",
    "dev_type": "sdm120ct",   // will be prefixed by "meter_"

    // modbus parameters
    "rtu": {
        "silence_period": 50,    // msec
        "silence_same_slave": false,
        "retries": 4,
        "rcv_timeout": 120       // msec
    },
    "modbus_read": 4,            // function code to read registers
    "modbus_read_max_registers": 60, 
    "modbus_write": 16,          // function code to write register(s)
    "modbus_write_max_registers": 48,

    // values used to build the model string
    "type_designation": {
        "address": 0,
        "type": "string",
        "fixed": "SDM120CT"
    },
    "version": {
        "address": 0,
        "type": "string",
        "fixed": "1.0"
    },
    "firmware_version": {
        "address": 0,
        "type": "string",
        "fixed": "1.0"
    },
    "serial": {
        "address": 0,
        "type": "string",
        "fixed": "0"
    },
    
    // instantaneous values
    "voltage_l1": {
        "address": 0,
        "type": "float"
    },
    "voltage_l2": {
        "fixed": "230"
    },
    "voltage_l3": {
        "fixed": "230"
    },
    "current_l1": {
        "address": 0x6,
        "type": "float",
        "resolution": "1000.0"
    },
    "current_l2": {
        "fixed": "0"
    },
    "current_l3": {
        "fixed": "0"
    },
    "power_w": {
       "address": 0x0c,
       "type": "float"
    },

    // accumulated values
    "import_wh": {
        "address": 0x48,
        "type": "float",
        "resolution": 1000.0   // result in Wh
    },
    "export_wh": {
        "address": 0x4a,
        "type": "float",
        "resolution": 1000.0   // result in Wh
    },

    // inputs
    "inputs": [
     ]
 }
 