{
    "rtype": 0,   // 0 = modbus, 1 = http/json
    "mtype": 1,  // 0 = other, 1 = meter, 2 = inverter, 4 = battery

    "name": "Pilot SPM9513",   // as displayed in the config dialog
    "manufacturer": "Pilot",
    "dev_type": "pilot_spm9513",   // 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": {
        "address": 0,
        "type": "string",
        "fixed": "SPM9513"
    },
    "version": {
        "address": 49005,
        "type": "int16"
    },
    "firmware_version": {
        "address": 49006,
        "type": "int16"
    },
    "serial": {
        "address": 49003,
        "type": "int32",
        "order": "hl"
    },
    
    // instantaneous values
    "voltage_l1": {
        "address": 40101,
        "type": "int16",
        "order": "hl",
        "resolution": 0.1   // result in V, 1 = Volt, 0.1 = 0.1V, 0.01 = 0.01V, ...
    },
    "voltage_l2": {
        "address": 40102,
        "type": "int16",
        "order": "hl",
        "resolution": 0.1
    },
    "voltage_l3": {
        "address": 40103,
        "type": "int16",
        "order": "hl",
        "resolution": 0.1
    },
    "current_l1": {
        "address": 40107,
        "type": "int32",
        "order": "hl",
        "resolution": 1.0   // result in mA
    },
    "current_l2": {
        "address": 40109,
        "type": "int32",
        "order": "hl",
        "resolution": 1.0   // result in mA
    },
    "current_l3": {
        "address": 40111,
        "type": "int32",
        "order": "hl",
        "resolution": 1.0   // result in mA
    },
    "power_w": {
        "address": 40004,
        "type": "int32",
        "order": "hl",
        "resolution": 0.01  // result in W
    },
    "power_var": {
        "address": 40006,
        "type": "int32",
        "order": "hl",
        "resolution": 0.01   // result in VAR
    },
    "power_va": {
        "address": 40008,
        "type": "int32",
        "order": "hl",
        "resolution": 0.01   // result in VA
    },
    "power_w_l1": {
        "address": 40115,
        "type": "int32",
        "order": "hl",
        "resolution": 0.01   // result in VA
    },
    "power_w_l2": {
        "address": 40117,
        "type": "int32",
        "order": "hl",
        "resolution": 0.01   // result in VA
    },
    "power_w_l3": {
        "address": 40119,
        "type": "int32",
        "order": "hl",
        "resolution": 0.01   // result in VA
    },

    // accumulated values
    "import_wh": {
        "address": 40012,
        "type": "int32",
        "order": "hl",
        "resolution": 100   // 100 Wh, result in Wh
    },

    // inputs
    "inputs": [
     ]
 }
 