{
   "rtype": 0,  // 0 = modbus, 1 = http/json
   "mtype": 1,  // 0 = other, 1 = meter, 2 = inverter, 4 = battery
 
   "name": "IEM3255",   // as displayed in the config dialog
    "manufacturer": "Schneider",
    "dev_type": "Schneider_IEM3255",   // 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": 48,
    
    // values used to build the model string
    "type_designation": {
        "address": 0,
        "type": "string",
        "fixed": "IEM3255"
    },
    "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": 3027,
        "type": "float",
        "resolution": 1000.0   // result in V
    },
    "voltage_l2": {
        "address": 3029,
        "type": "float",
        "resolution": 1000.0   // result in V
    },
    "voltage_l3": {
        "address": 3031,
        "type": "float",
        "resolution": 1000.0   // result in V
    },
    "current_l1": {
        "address": 2999,
        "type": "float",
        "resolution": 1000.0   // result in A
    },
    "current_l2": {
        "address": 3001,
        "type": "float",
        "resolution": 1000.0   // result in A
    },
    "current_l3": {
        "address": 3003,
        "type": "float",
        "resolution": 1000.0   // result in A
    },
    "power_w": {
        "address": 3059,
        "type": "float",
        "resolution": 1000.0   // result in VA
    },

    // accumulated values
    "import_wh": {
        "address": 3203,
        "type": "int64",
        "resolution": 1.0   // result in kWh
    },
    "export_wh": {
        "address": 3207,
        "type": "int64",
        "resolution": 1.0   // result in kWh
    },


    // inputs, modbus only
    "inputs": [
     ]
 }
 