{ "rtype": 0, // 0 = modbus, 1 = http/json "name": "SMA STP battery Test1", // as displayed in the config dialog "manufacturer": "SMA", "dev_type": "sma_stp_test1", // 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 Test" }, "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" }, "discharge_power_w_inv": { "expr": "discharge_power_w*-1" }, "batt_steuer_akt": { "expr": "exists(charge_power_w) || exists(discharge_power_w)" }, "outputs": [ { // Batteriesteuerung aktivieren, Modbusadresse 40151 mit Wert 802 beschreiben, Das Register wird periodisch alle 500sek beschrieben "address": "#500#${if batt_steuer_akt == 1)`http://localhost/cnf?cmd=modbus_set&addr=${address}&func=6&id=${id}®=40151&val=802&type=d`}" }, { // Batteriesteuerung deaktiviren, Modbusadresse 40151 mit Wert 803 beschreiben "address": "${if batt_steuer_akt == 0)`http://localhost/cnf?cmd=modbus_set&addr=${address}&func=6&id=${id}®=40151&val=803&type=d`}" }, { // Ladeleistung in Watt Modbusadresse 40149 "address": "${if exists(charge_power_w)`http://localhost/cnf?cmd=modbus_set&addr=${address}&func=6&id=${id}®=40149&val=${charge_power_w}&type=d`}" }, { // Entladeleistung in Watt Modbusadresse 40149 "address": "${if exists(discharge_power_w_inv)`http://localhost/cnf?cmd=modbus_set&addr=${address}&func=6&id=${id}®=40149&val=${discharge_power_w_inv}&type=d`}" } ] }