{
    "rtype": 0,  // 0 = modbus, 1 = http/json
    "mtype": 4,  // 0 = other, 1 = meter, 2 = inverter, 4 = battery

    "name": "Marstek Venus Test 4-3",   // as displayed in the config dialog
    "manufacturer": "Marstek",
    "dev_type": "marstek_e30_test4-3",   // please change! must be a unique name 

    // 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": 60, 
    "modbus_write": 6,          // 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": "Marstek Venus E"
    },
    "version": {
        "address": 0,
        "type": "string",
        "fixed": "3.0"
    },
    "firmware_version": {
        "address": 0,
        "type": "string",
        "fixed": "V148"
    },
    "serial": {
        "address": 0,
        "type": "string",
        "fixed": "0"
    },
    
    // instantaneous values
    
    "power_w": {
        "address": 30006,
        "type": "int16",
        "order": "hl",
        "resolution": -1.0
    },
    "voltage_l1": {
        "address": 32200,
        "type": "uint16",
        "order": "hl",
        "resolution": 0.1
    }, 
    "current_l1": {
        "address": 37004,
        "type": "int16",
        "order": "hl",
        "resolution": -4.0
    }, 
	"soc": {
		"address": 34002,
		"type": "uint16",
		"order": "hl",
		"resolution": 0.1
	},
    "import_wh": {
        "address": 33000,
        "type": "uint32",
        "order": "hl",
        "resolution": 10
    }, 
    "export_wh": {
        "address": 33002,
        "type": "uint32",
        "order": "hl",
        "resolution": 10
    },
    
    
"outputs": [
    {
        // Batteriesteuerung aktivieren/deaktivieren
        // alle 7 Sekunden erneuern
        "address": "#7#http://localhost/cnf?cmd=modbus_set&addr=${address}&func=6&id=${id}&reg=42000&val=21930&type=w"
		//API: /cnf?cmd=modbus_set&func=6&id=1&addr=192.xxx.xxx.102%3A502&dlyac=0&reg=42000&cnt=1&val=21930&type=w&order=hl
    },
    {
        // Entlademodus: 2 = Entladen
        // alle 7 Sekunden erneuern
        "address": "#7#http://localhost/cnf?cmd=modbus_set&addr=${address}&func=6&id=${id}&reg=42010&val=2&type=w"
		//API: /cnf?cmd=modbus_set&func=6&id=1&addr=192.xxx.xxx.102%3A502&dlyac=0&reg=42010&cnt=1&val=2&type=w&order=hl
    },
    {
        // Entladeleistung in Watt
        "address": "#15#http://localhost/cnf?cmd=modbus_set&addr=${address}&func=6&id=${id}&reg=42021&val=400&type=w"
		//API: /cnf?cmd=modbus_set&func=6&id=1&addr=192.xxx.xxx.102%3A502&dlyac=0&reg=42021&cnt=1&val=400&type=w&order=hl
    }
]
    
    
    
    
}
 
