{ "rtype": 0, // 0 = modbus, 1 = http/json "mtype": 4, // 0 = other, 1 = meter, 2 = inverter, 4 = battery "name": "Huawei Sun2000 Battery", // as displayed in the config dialog "manufacturer": "Huawei", "dev_type": "sun2000_battery", // will be prefixed by "meter_" "upd_delay": 8000, // minimum interval between updates in msec // modbus parameters "rtu": { "silence_period": 50, // msec "silence_same_slave": false, "retries": 4, "rcv_timeout": 120 // msec }, "tcp": { "delay_after_connect": 700 }, "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": "Sun2000 Battery" }, "version": { "address": 0, "type": "string", "fixed": "2.0" }, "firmware_version": { "address": 0, "type": "string", "fixed": "1.0" }, "serial": { "address": 0, "type": "string", "fixed": "0" }, // instantaneous values "power_w": { "address": 37001, "type": "int32", // "reserved": [0x7fffffff, 0x80000000, 0xffffffff], // "order": "hl", "resolution": -1.0 // result in W }, "soc": { "address": 37760, "type": "int16", "resolution": 1.0 }, // accumulated values "import_wh": { "address": 37015, "type": "int32", "reserved": [0x7fffffff, 0x80000000, 0xffffffff], "order": "hl", "resolution": 10.0 // result in kWh }, "export_wh": { "address": 37017, "type": "int32", "reserved": [0x7fffffff, 0x80000000, 0xffffffff], "order": "hl", "resolution": 10.0 // result in kWh }, // inputs "inputs": [ ], //Steuerung Batterieladung "charge_initial": { "address": 47075, "type": "int32", "order": "hl", "once": true }, "discharge_initial": { "address": 47077, "type": "int32", "order": "hl", "once": true }, "outputs": [ { "address": "${if exists(charge_power_w)`http://localhost/cnf?cmd=modbus_set&addr=${address}&func=16&id=${id}®=47075&dlyac=1500&val=${charge_power_w}&type=d&order=hl}" }, { "address": "${if exists(discharge_power_w)`http://localhost/cnf?cmd=modbus_set&addr=${address}&func=16&id=${id}®=47077&dlyac=1500&val=${discharge_power_w}&type=d&order=hl}" } ], "resets": [ { "address": "http://localhost/cnf?cmd=modbus_set&addr=${address}&func=16&id=${id}®=47075&dlyac=700&val=${charge_initial}&type=d&order=hl" }, { "address": "http://localhost/cnf?cmd=modbus_set&addr=${address}&func=16&id=${id}®=47077&dlyac=700&val=${discharge_initial}&type=d&order=hl" } ], "CM._Luna_discharge_power_w": { "expr": "discharge_power_w" }, "CM._Luna_charge_power_w": { "expr": "charge_power_w" }, "CM._Luna_charge_initial": { "expr": "charge_initial" }, "CM._Luna_discharge_initial": { "expr": "discharge_initial" }, "CM._bat_power": { "expr": "bat_power_w" }, // End BATTERY // inputs "inputs": [ ], }