{ "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" }, "*maxch_ini": { "expr": "maxcharge_initial" }, "*maxdis_ini": { "expr": "maxdischarge_initial" }, "outputs": [ { "address": "http://localhost/cnf?cmd=modbus_set&addr=${address}&func=6&id=${id}®=41007&val=${charge_power_w}&type=d" }, { "address": "http://localhost/cnf?cmd=modbus_set&addr=${address}&func=6&id=${id}®=41008&val=${discharge_power_w}&type=d" } ], "resets": [ { "address": "http://localhost/cnf?cmd=modbus_set&addr=${address}&func=6&id=${id}®=41007&val=${maxcharge_initial}&type=d" }, { "address": "http://localhost/cnf?cmd=modbus_set&addr=${address}&func=6&id=${id}®=41008&val=${maxdischarge_initial&type=d" } ] }