{ "rtype": 0, // 0 = modbus, 1 = http/json "mtype": 4, // 0 = other, 1 = meter, 2 = inverter, 4 = battery "name": "FoxESS H3 Hybrid Battery", // as displayed in the config dialog "manufacturer": "FoxESS", "dev_type": "foxess_h3_bat", // 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": 60, "modbus_allow_gaps": false, "modbus_write": 16, // function code to write register(s) "modbus_write_max_registers": 48, // values used to build the model string "type_designation": { "address": 30000, "type": "string", "length": 16 }, "version": { "fixed": "1.0" }, "firmware_version": { "address": 30016, "type": "int16" }, "serial": { "fixed": "0" }, // instantaneous values "maxcharge_initial": { "address": "41007", "type": "int16", "once": true }, "maxdischarge_initial": { "address": "41008", "type": "int16", "once": true }, "power_w": { "address": 31036, "type": "int16", "resolution": -1.0 }, "soc": { "address": 31038, "type": "int16" }, "voltage": { "address": 31034, "type": "int16", "resolution": 0.1 }, "maxcharge_cur": { "expr": "round(10*charge_power_w/173)" }, "maxdischarge_cur": { "expr": "round(10*discharge_power_w/173)" }, "*volt": { "expr": "voltage" }, "*temp": { "address": 31037, "type": "int16", "resolution": 0.1 }, "*maxch_ini": { "expr": "maxcharge_initial" }, "*maxdis_ini": { "expr": "maxdischarge_initial" }, "*maxch_cur": { "expr": "maxcharge_cur" }, "*maxdis_cur": { "expr": "maxdischarge_cur" }, "outputs": [ { "address": "http://localhost/cnf?cmd=modbus_set&addr=${address}&func=6&id=${id}®=41007&val=${maxcharge_cur&type=w" }, { "address": "http://localhost/cnf?cmd=modbus_set&addr=${address}&func=6&id=${id}®=41008&val=${maxdischarge_cur}&type=w" } ], "resets": [ { "address": "http://localhost/cnf?cmd=modbus_set&addr=${address}&func=6&id=${id}®=41007&val=${maxcharge_initial}&type=w" }, { "address": "http://localhost/cnf?cmd=modbus_set&addr=${address}&func=6&id=${id}®=41008&val=${maxdischarge_initial&type=w" } ] }