Here's flow that I believe causes the error:
[{"id":"3641ab29.985114","type":"tab","label":"Inverter GUI","disabled":false,"info":""},{"id":"f523c82e.de4cf8","type":"ui_chart","z":"3641ab29.985114","name":"","group":"61d8c7f4.833fe8","order":0,"width":0,"height":0,"label":"Voltage","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":"3","removeOlderPoints":"","removeOlderUnit":"86400","cutout":0,"useOneColor":false,"useUTC":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":false,"outputs":1,"x":820,"y":300,"wires":[[]]},{"id":"4c2c817e.3de9b","type":"ui_chart","z":"3641ab29.985114","name":"","group":"61d8c7f4.833fe8","order":0,"width":0,"height":0,"label":"State of Charge","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":"3","removeOlderPoints":"","removeOlderUnit":"86400","cutout":0,"useOneColor":false,"useUTC":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":false,"outputs":1,"x":840,"y":360,"wires":[[]]},{"id":"949328e8.3caed8","type":"ui_chart","z":"3641ab29.985114","name":"","group":"61d8c7f4.833fe8","order":0,"width":0,"height":0,"label":"Battery Temperature","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":"3","removeOlderPoints":"","removeOlderUnit":"86400","cutout":0,"useOneColor":false,"useUTC":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":false,"outputs":1,"x":860,"y":420,"wires":[[]]},{"id":"83c45074.65f9a","type":"ui_chart","z":"3641ab29.985114","name":"","group":"61d8c7f4.833fe8","order":0,"width":0,"height":0,"label":"Wattage","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":"3","removeOlderPoints":"","removeOlderUnit":"86400","cutout":0,"useOneColor":false,"useUTC":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":false,"outputs":1,"x":820,"y":480,"wires":[[]]},{"id":"cc4a38e3.d2b3e8","type":"rbe","z":"3641ab29.985114","name":"","func":"rbe","gap":"","start":"","inout":"out","property":"payload","x":480,"y":320,"wires":[["f523c82e.de4cf8"]]},{"id":"395f055e.546bda","type":"rbe","z":"3641ab29.985114","name":"","func":"rbe","gap":"","start":"","inout":"out","property":"payload","x":480,"y":380,"wires":[["4c2c817e.3de9b"]]},{"id":"dee506d2.14cde8","type":"rbe","z":"3641ab29.985114","name":"","func":"rbe","gap":"","start":"","inout":"out","property":"payload","x":480,"y":440,"wires":[["949328e8.3caed8"]]},{"id":"769bb4c8.25cbbc","type":"rbe","z":"3641ab29.985114","name":"","func":"rbe","gap":"","start":"","inout":"out","property":"payload","x":480,"y":500,"wires":[["83c45074.65f9a"]]},{"id":"e5b8081f.e3a3e8","type":"mqtt in","z":"3641ab29.985114","name":"MQTT Inverter/#","topic":"Inverter/#","qos":"2","datatype":"auto","broker":"60346d2e.382554","x":140,"y":140,"wires":[["83046f3e.2f173"]]},{"id":"83046f3e.2f173","type":"function","z":"3641ab29.985114","name":"true/false on/off Conversion\\n to Boolean","func":"if (msg.topic.includes(\"/relay\"))\n{\n cmd = msg.payload.toLowerCase();\n if (cmd === \"on\")\n {\n msg.payload = true;\n return msg;\n }\n if (cmd === \"true\")\n {\n msg.payload = true;\n return msg;\n }\n if (cmd === \"false\")\n {\n msg.payload = false;\n return msg;\n }\n if (cmd === \"off\")\n {\n msg.payload = false;\n return msg;\n }\n}\nreturn null;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":420,"y":140,"wires":[["902c9abd.029cd8"]]},{"id":"3ca5eeb4.f6cfe2","type":"switch","z":"3641ab29.985114","name":"Switch router","property":"topic","propertyType":"msg","rules":[{"t":"cont","v":"Power/relay","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":990,"y":140,"wires":[["b3f8b14f.f3b0e"]],"info":"Switch node to router MQQT messages to the appropiate relay pin\n"},{"id":"288e812f.36306e","type":"link in","z":"3641ab29.985114","name":"","links":["6a899de4.953684"],"x":1075,"y":180,"wires":[["b3f8b14f.f3b0e"]]},{"id":"b3f8b14f.f3b0e","type":"ui_switch","z":"3641ab29.985114","name":"","label":"Inverter Power Relay","tooltip":"Inverter Power control relay","group":"f8656422.5ed208","order":6,"width":0,"height":0,"passthru":false,"decouple":"true","topic":"Inverter/Power/relay","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":1200,"y":140,"wires":[["6a899de4.953684","6ed59ef8.be6d8"]]},{"id":"6a899de4.953684","type":"link out","z":"3641ab29.985114","name":"","links":["288e812f.36306e"],"x":1295,"y":180,"wires":[]},{"id":"a4ec04fb.959dd8","type":"comment","z":"3641ab29.985114","name":"Gui Control Switch","info":"","x":150,"y":80,"wires":[]},{"id":"902c9abd.029cd8","type":"function","z":"3641ab29.985114","name":"Save inverterState\\n to global memory","func":"global.set('inverterState', msg.payload.toString());\nif (msg.payload === false)\n{\n global.set('power0', \"0\");\n global.set('power1', \"0\");\n}\nif (msg.payload === true)\n{\n global.set('inverterCountdown', \"10\");\n}\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":730,"y":140,"wires":[["3ca5eeb4.f6cfe2"]]},{"id":"6ed59ef8.be6d8","type":"mqtt out","z":"3641ab29.985114","name":"MQTT Inverter stuff ","topic":"","qos":"2","retain":"true","broker":"6311a09c.95026","x":1490,"y":140,"wires":[]},{"id":"4679e2dd.7e358c","type":"victron-input-battery","z":"3641ab29.985114","service":"com.victronenergy.battery.socketcan_can0","path":"/Dc/0/Voltage","serviceObj":{"service":"com.victronenergy.battery.socketcan_can0","name":"SIMP BMS","paths":[{"path":"/Dc/0/Voltage","type":"float","name":"Battery voltage (V)"},{"path":"/Dc/0/Current","type":"float","name":"Current (A)"},{"path":"/Soc","type":"float","name":"State of charge (%)"},{"path":"/Dc/0/Temperature","type":"float","name":"Battery temperature (C)"},{"path":"/Alarms/LowVoltage","type":"enum","name":"Low voltage alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/HighVoltage","type":"enum","name":"High voltage alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/LowTemperature","type":"enum","name":"Low battery temperature alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/HighTemperature","type":"enum","name":"High battery temperature alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Soh","type":"float","name":"State of health (%)"},{"path":"/Info/MaxChargeVoltage","type":"float","name":"CVL - Charge Voltage Limit (V)"},{"path":"/Info/MaxChargeCurrent","type":"float","name":"CCL - Charge Current Limit (A)"},{"path":"/Info/MaxDischargeCurrent","type":"float","name":"DCL - Discharge Current Limit (A)"},{"path":"/Alarms/CellImbalance","type":"enum","name":"Cell Imbalance alarm","enum":{"0":"No alarm","1":"Warning","2":"Alarm"}},{"path":"/Alarms/HighChargeCurrent","type":"enum","name":"High charge current alarm","enum":{"0":"No alarm","1":"Warning","2":"Alarm"}},{"path":"/Alarms/HighDischargeCurrent","type":"enum","name":"High discharge current alarm","enum":{"0":"No alarm","1":"Warning","2":"Alarm"}},{"path":"/Alarms/InternalFailure","type":"enum","name":"Internal error alarm","enum":{"0":"No alarm","1":"Warning","2":"Alarm"}},{"path":"/Alarms/HighChargeTemperature","type":"enum","name":"High charge temperature alarm","enum":{"0":"No alarm","1":"Warning","2":"Alarm"}},{"path":"/Alarms/LowChargeTemperature","type":"enum","name":"Low charge temperature alarm","enum":{"0":"No alarm","1":"Warning","2":"Alarm"}},{"path":"/Dc/0/Power","type":"float","name":"Battery power (W)"}]},"pathObj":{"path":"/Dc/0/Voltage","type":"float","name":"Battery voltage (V)"},"name":"","x":190,"y":300,"wires":[["cc4a38e3.d2b3e8"]]},{"id":"7ca3b39.8f0f44c","type":"victron-input-battery","z":"3641ab29.985114","service":"com.victronenergy.battery.socketcan_can0","path":"/Soc","serviceObj":{"service":"com.victronenergy.battery.socketcan_can0","name":"SIMP BMS","paths":[{"path":"/Dc/0/Voltage","type":"float","name":"Battery voltage (V)"},{"path":"/Dc/0/Current","type":"float","name":"Current (A)"},{"path":"/Soc","type":"float","name":"State of charge (%)"},{"path":"/Dc/0/Temperature","type":"float","name":"Battery temperature (C)"},{"path":"/Alarms/LowVoltage","type":"enum","name":"Low voltage alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/HighVoltage","type":"enum","name":"High voltage alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/LowTemperature","type":"enum","name":"Low battery temperature alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/HighTemperature","type":"enum","name":"High battery temperature alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Soh","type":"float","name":"State of health (%)"},{"path":"/Info/MaxChargeVoltage","type":"float","name":"CVL - Charge Voltage Limit (V)"},{"path":"/Info/MaxChargeCurrent","type":"float","name":"CCL - Charge Current Limit (A)"},{"path":"/Info/MaxDischargeCurrent","type":"float","name":"DCL - Discharge Current Limit (A)"},{"path":"/Alarms/CellImbalance","type":"enum","name":"Cell Imbalance alarm","enum":{"0":"No alarm","1":"Warning","2":"Alarm"}},{"path":"/Alarms/HighChargeCurrent","type":"enum","name":"High charge current alarm","enum":{"0":"No alarm","1":"Warning","2":"Alarm"}},{"path":"/Alarms/HighDischargeCurrent","type":"enum","name":"High discharge current alarm","enum":{"0":"No alarm","1":"Warning","2":"Alarm"}},{"path":"/Alarms/InternalFailure","type":"enum","name":"Internal error alarm","enum":{"0":"No alarm","1":"Warning","2":"Alarm"}},{"path":"/Alarms/HighChargeTemperature","type":"enum","name":"High charge temperature alarm","enum":{"0":"No alarm","1":"Warning","2":"Alarm"}},{"path":"/Alarms/LowChargeTemperature","type":"enum","name":"Low charge temperature alarm","enum":{"0":"No alarm","1":"Warning","2":"Alarm"}},{"path":"/Dc/0/Power","type":"float","name":"Battery power (W)"}]},"pathObj":{"path":"/Soc","type":"float","name":"State of charge (%)"},"name":"","x":190,"y":360,"wires":[["395f055e.546bda"]]},{"id":"c9d80104.b3654","type":"victron-input-battery","z":"3641ab29.985114","service":"com.victronenergy.battery.socketcan_can0","path":"/Dc/0/Temperature","serviceObj":{"service":"com.victronenergy.battery.socketcan_can0","name":"SIMP BMS","paths":[{"path":"/Dc/0/Voltage","type":"float","name":"Battery voltage (V)"},{"path":"/Dc/0/Current","type":"float","name":"Current (A)"},{"path":"/Soc","type":"float","name":"State of charge (%)"},{"path":"/Dc/0/Temperature","type":"float","name":"Battery temperature (C)"},{"path":"/Alarms/LowVoltage","type":"enum","name":"Low voltage alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/HighVoltage","type":"enum","name":"High voltage alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/LowTemperature","type":"enum","name":"Low battery temperature alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/HighTemperature","type":"enum","name":"High battery temperature alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Soh","type":"float","name":"State of health (%)"},{"path":"/Info/MaxChargeVoltage","type":"float","name":"CVL - Charge Voltage Limit (V)"},{"path":"/Info/MaxChargeCurrent","type":"float","name":"CCL - Charge Current Limit (A)"},{"path":"/Info/MaxDischargeCurrent","type":"float","name":"DCL - Discharge Current Limit (A)"},{"path":"/Alarms/CellImbalance","type":"enum","name":"Cell Imbalance alarm","enum":{"0":"No alarm","1":"Warning","2":"Alarm"}},{"path":"/Alarms/HighChargeCurrent","type":"enum","name":"High charge current alarm","enum":{"0":"No alarm","1":"Warning","2":"Alarm"}},{"path":"/Alarms/HighDischargeCurrent","type":"enum","name":"High discharge current alarm","enum":{"0":"No alarm","1":"Warning","2":"Alarm"}},{"path":"/Alarms/InternalFailure","type":"enum","name":"Internal error alarm","enum":{"0":"No alarm","1":"Warning","2":"Alarm"}},{"path":"/Alarms/HighChargeTemperature","type":"enum","name":"High charge temperature alarm","enum":{"0":"No alarm","1":"Warning","2":"Alarm"}},{"path":"/Alarms/LowChargeTemperature","type":"enum","name":"Low charge temperature alarm","enum":{"0":"No alarm","1":"Warning","2":"Alarm"}},{"path":"/Dc/0/Power","type":"float","name":"Battery power (W)"}]},"pathObj":{"path":"/Dc/0/Temperature","type":"float","name":"Battery temperature (C)"},"name":"","x":200,"y":420,"wires":[["dee506d2.14cde8"]]},{"id":"2ea3fb57.7fcfc4","type":"victron-input-battery","z":"3641ab29.985114","service":"com.victronenergy.battery.socketcan_can0","path":"/Dc/0/Power","serviceObj":{"service":"com.victronenergy.battery.socketcan_can0","name":"SIMP BMS","paths":[{"path":"/Dc/0/Voltage","type":"float","name":"Battery voltage (V)"},{"path":"/Dc/0/Current","type":"float","name":"Current (A)"},{"path":"/Soc","type":"float","name":"State of charge (%)"},{"path":"/Dc/0/Temperature","type":"float","name":"Battery temperature (C)"},{"path":"/Alarms/LowVoltage","type":"enum","name":"Low voltage alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/HighVoltage","type":"enum","name":"High voltage alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/LowTemperature","type":"enum","name":"Low battery temperature alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/HighTemperature","type":"enum","name":"High battery temperature alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Soh","type":"float","name":"State of health (%)"},{"path":"/Info/MaxChargeVoltage","type":"float","name":"CVL - Charge Voltage Limit (V)"},{"path":"/Info/MaxChargeCurrent","type":"float","name":"CCL - Charge Current Limit (A)"},{"path":"/Info/MaxDischargeCurrent","type":"float","name":"DCL - Discharge Current Limit (A)"},{"path":"/Alarms/CellImbalance","type":"enum","name":"Cell Imbalance alarm","enum":{"0":"No alarm","1":"Warning","2":"Alarm"}},{"path":"/Alarms/HighChargeCurrent","type":"enum","name":"High charge current alarm","enum":{"0":"No alarm","1":"Warning","2":"Alarm"}},{"path":"/Alarms/HighDischargeCurrent","type":"enum","name":"High discharge current alarm","enum":{"0":"No alarm","1":"Warning","2":"Alarm"}},{"path":"/Alarms/InternalFailure","type":"enum","name":"Internal error alarm","enum":{"0":"No alarm","1":"Warning","2":"Alarm"}},{"path":"/Alarms/HighChargeTemperature","type":"enum","name":"High charge temperature alarm","enum":{"0":"No alarm","1":"Warning","2":"Alarm"}},{"path":"/Alarms/LowChargeTemperature","type":"enum","name":"Low charge temperature alarm","enum":{"0":"No alarm","1":"Warning","2":"Alarm"}},{"path":"/Dc/0/Power","type":"float","name":"Battery power (W)"}]},"pathObj":{"path":"/Dc/0/Power","type":"float","name":"Battery power (W)"},"name":"","x":190,"y":480,"wires":[["769bb4c8.25cbbc"]]},{"id":"61d8c7f4.833fe8","type":"ui_group","name":"BMS Data","tab":"efc2e19b.ce45a","order":1,"disp":true,"width":"6","collapse":false},{"id":"60346d2e.382554","type":"mqtt-broker","name":"DrBus","broker":"172.16.14.10","port":"1883","clientid":"","usetls":false,"compatmode":false,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""},{"id":"f8656422.5ed208","type":"ui_group","name":"Manual Control","tab":"efc2e19b.ce45a","order":2,"disp":true,"width":"6","collapse":false},{"id":"6311a09c.95026","type":"mqtt-broker","name":"Mosquitto","broker":"127.0.0.1","port":"1883","clientid":"NodeRed On Pi","usetls":false,"compatmode":false,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""},{"id":"efc2e19b.ce45a","type":"ui_tab","name":"Inverter BMS ","icon":"dashboard","order":2,"disabled":false,"hidden":false}]