{
    "rtype": 0,  // 0 = modbus, 1 = http/json
    "mtype": 1,  // 0 = other, 1 = meter, 2 = inverter, 4 = battery
    
    "name": "Siemens Pac2200 CLP",   // as displayed in the config dialog
    "manufacturer": "Siemens",
    "dev_type": "siemens_pac2200_clp",   // 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": 6,           // function code to write register(s)
    "modbus_write_max_registers": 64,

    // values used to build the model string: type_designation,version,firmware_version,serial
    "type_designation": {
        "address": 6,
        "type": "string",
        "fixed": "Pac2200"
    },
    "version": {
        "address": 36,
        "type": "string",
        "fixed": "1.0"
    },
    "firmware_version": {
        "address": 38,
        "type": "string",
        "fixed": "1.0"
    },
    "serial": {
        "address": 14,
        "type": "string",
        "fixed": "0"
    },
    
    // instantaneous values
    "voltage_l1": {
        "address": 1,
        "type": "float"
    },
    "voltage_l2": {
        "address": 3,
        "type": "float"

    },
    "voltage_l3": {
        "address": 5,
        "type": "float"
    },
    "current_l1": {
        "address": 13,
        "type": "float",
        "resolution": 1000.0
    },
    "current_l2": {
        "address": 15,
        "type": "float",
        "resolution": 1000.0
    },
    "current_l3": {
        "address": 17,
        "type": "float",
        "resolution": 1000.0
    },
    "power_w_l1": {
        "address": 25,
        "type": "float",
		"resolution": 1.0
    },
    "power_w_l2": {
        "address": 27,
        "type": "float",
		"resolution": 1.0
    },
    "power_w_l3": {
        "address": 29,
        "type": "float",
		"resolution": 1.0
    },
    "power_w": {
        "address": 65,
        "type": "float",
		"resolution": 1.0
    },
    "power_va": {
        "address": 63,
        "type": "float",
		"resolution": 1.0
    },
    "import_wh": {
        "address": 2801,
        "type": "float",
		"resolution": 1.0		
    },
    "export_wh": {
        "address": 2805,
        "type": "float",
		"resolution": 1.0
    },


    // inputs, modbus only
    "inputs": [
        {
           "address": 209,
           "count": 1     // number of input bits in this register
        },
        {
           "address": 210,
           "count": 1     // number of input bits in this register
        }
    ]
 }
 