{
    "rtype": 0,   // 0 = modbus, 1 = http/json
    "mtype": 1,   // 0 = other, 1 = meter, 2 = inverter, 4 = battery

    "name": "Elgris Smartmeter LAN",   // as displayed in the config dialog
    "manufacturer": "Elgris",
    "dev_type": "elgris_sm_lan",   // will be prefixed by "meter_"

    "delay_accumulated": false,   // false: always read accumulated value, like import_wh / export_wh when reading instantaneous values

    // 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": 80, 
    "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": "Smartmeter"
    },
    "version": {
        "address": 0,
        "type": "string",
        "fixed": "1.0"
    },
    "firmware_version": {
        "address": 0,
        "type": "string",
        "fixed": "1.0"
    },
    "serial": {
        "address": 0,
        "type": "string",
        "fixed": "1"
    },
    
    // instantaneous values
    "voltage_l1": {
        "address": 0,
        "type": "float"
    },
    "voltage_l2": {
        "address": 2,
        "type": "float"
    },
    "voltage_l3": {
        "address": 4,
        "type": "float"
    },
    "current_l1": {
        "address": 6,
        "type": "float",
        "resolution": 1000.0   // result in mA
    },
    "current_l2": {
        "address": 8,
        "type": "float",
        "resolution": 1000.0   // result in mA
    },
    "current_l3": {
        "address": 0xa,
        "type": "float",
        "resolution": 1000.0   // result in mA
    },
    "power_w": {
        "address": 0x34,
        "type": "float",
        "resolution": 1.0   // result in W
    },
    "power_var": {
        "address": 0x3c,
        "type": "float",
        "resolution": 1.0   // result in VAR
    },
    "power_va": {
        "address": 0x38,
        "type": "float",
        "resolution": 1.0   // result in VA
    },
    "power_w_l1": {
        "address": 0xc,
        "type": "float",
        "resolution": 1.0   // result in VA
    },
    "power_w_l2": {
        "address": 0xe,
        "type": "float",
        "resolution": 1.0   // result in VA
    },
    "power_w_l3": {
        "address": 0x10,
        "type": "float",
        "resolution": 1.0   // result in VA
    },

    // 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": [
     ]
 }
 