{ "rtype": 0, // 0 = modbus, 1 = http/json "name": "SMA STP SE battery 1", // as displayed in the config dialog "manufacturer": "SMA", "dev_type": "sma_stp_se_1", // 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, "reserved": [0x7fffffff, 0x80000000, 0xffffffff], // values used to build the model string "type_designation": { "fixed": "STP SE Battery" }, "version": { "fixed": "1.0" }, "firmware_version": { "address": 30059, "type": "int32", "length": 3, }, "serial": { "address": 30005, "type": "int32", }, // instantaneous values "cha_w": { "address": 31393, "type": "int32" }, "discha_w": { "address": 31395, "type": "int32" }, "power_w": { "expr": "cha_w-discha_w" }, "soc": { "address": 30845, "type": "int32" }, "power_val": { "expr": "(exists(discharge_power_w) ? discharge_power_w : 0) - (exists(charge_power_w) ? charge_power_w : 0)" }, "outputs": [ { // Batteriesteuerung aktivieren, Modbusadresse 40151 mit Wert 802 beschreiben, Das Register wird periodisch alle 180sek beschrieben "address": "#180#http://localhost/cnf?cmd=modbus_set&addr=${address}&func=16&id=${id}®=40151&val=${bat_mode ? 802 : 803}&type=d" }, { // (Ent-)Ladeleistung in Watt Modbusadresse 40149 "address": "${if bat_mode > 0`http://localhost/cnf?cmd=modbus_set&addr=${address}&func=16&id=${id}®=40149&val=${power_val}&type=d}" } ] }