{
		//
		// ----------------------------------------------------------------------------------------
		// Meter definition for Wago 879-30xx
		// ----------------------------------------------------------------------------------------
		//
		// Created:	BCo
		// Datum:		06.11.2022
		//
		// Change log:
		// ----------
		// 06.11.2022     - BCo		- Initial working version.
		// ----------
		//
		// Hint:
		// ----------
		// Should work with all Wago 879-30 xx meters (e.g. 3000 4PU, 3020 4 PS, 3040 2PU CT)
		// ----------
		//
		// ----------------------------------------------------------------------------------------
		//
		
		// Type of API / access:
		// 0 = modbus, 1 = http/json
    "rtype": 0,
    "mtype": 1,  // 0 = other, 1 = meter, 2 = inverter, 4 = battery    
    
		// As displayed in the config dialog
    "name": 				"Wago 879-30xx",
    "manufacturer":	"Wago",
    
		// Will be prefixed by "meter_"
		"dev_type": 		"wago_879-30xx",

    // 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":	16384,
        "type":			"string",
        "fixed":		"879-30xx"
    },
    "version": {
        "address":	16393,
        "type":			"string",
        "fixed":		"1.0"
    },
    "firmware_version": {
        "address":	16391,
        "type":			"string",
        "fixed":		"1.26"
    },
    "serial": {
        "address":	16384,
        "type":			"string",
        "fixed":		"0"
    },
    
    // Instantaneous values
		
		// Voltage per phase
    "voltage_l1": {
        "address":		20482,
        "type":				"float"
    },
    "voltage_l2": {
        "address":		20484,
        "type":				"float"

    },
    "voltage_l3": {
        "address":		20486,
        "type":				"float"
    },
		
		// Current per phase
    "current_l1": {
        "address":		20492,
        "type":				"float",
        "resolution":	1000.0
    },
    "current_l2": {
        "address": 		20494,
        "type": 			"float",
        "resolution":	1000.0
    },
    "current_l3": {
        "address":		20496,
        "type":				"float",
        "resolution":	1000.0
    },
		
		// Power per phase
    "power_w_l1": {
        "address":		20500,
        "type": 			"float",
        "resolution":	1000.0
    },
    "power_w_l2": {
        "address": 		20502,
        "type": 			"float",
        "resolution":	1000.0
    },
    "power_w_l3": {
        "address":		20504,
        "type":				"float",
        "resolution":	1000.0
    },
		
		// Actual apparent power (Import)
    "power_va": {
        "address":		20514,
        "type":				"float",
				"resolution":	1000.0
    },

    // Accumulated values for watt hours (im- and export)
    "import_wh": {
        "address":		24588,
        "type":				"float",
				"resolution":	1000.0		// Result in Wh
    },
    "export_wh": {
        "address":		24600,
        "type":				"float",
				"resolution":	1000.0		// Result in Wh
    },

    // Inputs, modbus only
    "inputs": [
     ]
 }
 