Virtual BMS

Hi All,

I’d ideally like to make a virtual BMS and use node red to combine the two physical fogstar bms’s info into one so the cerbo can use this info for control. I could use the battery aggregator from github but ideally I want the figures to change as they do from the fogstar bms’s. It seems the the battery aggregator is fixed values which is no good. Any pointers please?

I worked it out, just use the new virtual device and select battery. Then do the rest of the flow to add multiple bms’s together.

The virtual device has no input?

Are you using dbus?

I think so. Flow below. I just used two versions of my bank of fogstar batteries to emulate when I run two banks of 16 fogstar batteries. Done the sums to add some stats together like ccl and then averaging battery voltage etc.

If anyone sees anything wrong let me know. This has to be 100% reliable as it will be running my whole business in ess.

Edit: I can’t make the flow show properly so I give up :rofl:

```flow
[
    {
        "id": "94147fbcc564dd23",
        "type": "tab",
        "label": "BMS Combine",
        "disabled": false,
        "info": "",
        "env": []
    },
    {
        "id": "78dad5a002063712",
        "type": "victron-input-battery",
        "z": "94147fbcc564dd23",
        "service": "com.victronenergy.battery/512",
        "path": "/Info/MaxChargeCurrent",
        "serviceObj": {
            "service": "com.victronenergy.battery/512",
            "name": "Fogstar"
        },
        "pathObj": {
            "path": "/Info/MaxChargeCurrent",
            "type": "float",
            "name": "CCL - Charge Current Limit (A)"
        },
        "name": "",
        "onlyChanges": false,
        "x": 180,
        "y": 40,
        "wires": [
            [
                "48de2d88c06b8b89"
            ]
        ]
    },
    {
        "id": "31df306df36400ee",
        "type": "victron-input-battery",
        "z": "94147fbcc564dd23",
        "service": "com.victronenergy.battery/512",
        "path": "/Info/MaxChargeCurrent",
        "serviceObj": {
            "service": "com.victronenergy.battery/512",
            "name": "Fogstar"
        },
        "pathObj": {
            "path": "/Info/MaxChargeCurrent",
            "type": "float",
            "name": "CCL - Charge Current Limit (A)"
        },
        "name": "",
        "onlyChanges": false,
        "x": 180,
        "y": 100,
        "wires": [
            [
                "c0272b634e992737"
            ]
        ]
    },
    {
        "id": "3d669fc7ce18f34f",
        "type": "function",
        "z": "94147fbcc564dd23",
        "name": "CCL",
        "func": "msg.payload = msg.bat1ccl + msg.bat2ccl\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 790,
        "y": 60,
        "wires": [
            [
                "7cf2843a3fbc6a50"
            ]
        ]
    },
    {
        "id": "48de2d88c06b8b89",
        "type": "change",
        "z": "94147fbcc564dd23",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "bat1ccl",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 480,
        "y": 40,
        "wires": [
            []
        ]
    },
    {
        "id": "c0272b634e992737",
        "type": "change",
        "z": "94147fbcc564dd23",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "bat2ccl",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 480,
        "y": 100,
        "wires": [
            []
        ]
    },
    {
        "id": "a25fe40d1f0adb3e",
        "type": "inject",
        "z": "94147fbcc564dd23",
        "name": "",
        "props": [
            {
                "p": "bat1ccl",
                "v": "bat1ccl",
                "vt": "flow"
            },
            {
                "p": "bat2ccl",
                "v": "bat2ccl",
                "vt": "flow"
            }
        ],
        "repeat": "2",
        "crontab": "",
        "once": true,
        "onceDelay": "0.5",
        "topic": "",
        "x": 670,
        "y": 60,
        "wires": [
            [
                "3d669fc7ce18f34f"
            ]
        ]
    },
    {
        "id": "b8b14f2d591f1fee",
        "type": "victron-virtual",
        "z": "94147fbcc564dd23",
        "name": "Work",
        "device": "battery",
        "default_values": true,
        "battery_capacity": "20000",
        "include_battery_temperature": true,
        "grid_nrofphases": 1,
        "include_motor_temp": false,
        "include_controller_temp": false,
        "include_coolant_temp": false,
        "include_motor_rpm": true,
        "include_motor_direction": true,
        "position": 0,
        "pvinverter_nrofphases": 1,
        "fluid_type": 0,
        "include_tank_battery": false,
        "include_tank_temperature": false,
        "tank_battery_voltage": 3.3,
        "tank_capacity": 0.2,
        "temperature_type": 2,
        "include_humidity": false,
        "include_pressure": false,
        "include_temp_battery": false,
        "temp_battery_voltage": 3.3,
        "x": 650,
        "y": 160,
        "wires": []
    },
    {
        "id": "7cf2843a3fbc6a50",
        "type": "victron-output-battery",
        "z": "94147fbcc564dd23",
        "service": "com.victronenergy.battery/101",
        "path": "/Info/MaxChargeCurrent",
        "serviceObj": {
            "service": "com.victronenergy.battery/101",
            "name": "Work"
        },
        "pathObj": {
            "path": "/Info/MaxChargeCurrent",
            "type": "float",
            "name": "CCL - Charge Current Limit (A)"
        },
        "name": "",
        "onlyChanges": false,
        "x": 1050,
        "y": 60,
        "wires": []
    },
    {
        "id": "625f86af576a86e7",
        "type": "victron-input-battery",
        "z": "94147fbcc564dd23",
        "service": "com.victronenergy.battery/512",
        "path": "/Info/MaxChargeVoltage",
        "serviceObj": {
            "service": "com.victronenergy.battery/512",
            "name": "Fogstar"
        },
        "pathObj": {
            "path": "/Info/MaxChargeVoltage",
            "type": "float",
            "name": "CVL - Charge Voltage Limit (V)"
        },
        "name": "",
        "onlyChanges": false,
        "x": 180,
        "y": 220,
        "wires": [
            [
                "aa47cda562e84e02"
            ]
        ]
    },
    {
        "id": "546b4a7deb10be34",
        "type": "victron-input-battery",
        "z": "94147fbcc564dd23",
        "service": "com.victronenergy.battery/512",
        "path": "/Info/MaxChargeVoltage",
        "serviceObj": {
            "service": "com.victronenergy.battery/512",
            "name": "Fogstar"
        },
        "pathObj": {
            "path": "/Info/MaxChargeVoltage",
            "type": "float",
            "name": "CVL - Charge Voltage Limit (V)"
        },
        "name": "",
        "onlyChanges": false,
        "x": 180,
        "y": 280,
        "wires": [
            [
                "79ea15411ae95436"
            ]
        ]
    },
    {
        "id": "251157f93bb19d2e",
        "type": "victron-input-battery",
        "z": "94147fbcc564dd23",
        "service": "com.victronenergy.battery/512",
        "path": "/Info/MaxDischargeCurrent",
        "serviceObj": {
            "service": "com.victronenergy.battery/512",
            "name": "Fogstar"
        },
        "pathObj": {
            "path": "/Info/MaxDischargeCurrent",
            "type": "float",
            "name": "DCL - Discharge Current Limit (A)"
        },
        "name": "",
        "onlyChanges": false,
        "x": 180,
        "y": 360,
        "wires": [
            [
                "c75b38d0c5649772"
            ]
        ]
    },
    {
        "id": "a21b2d5268216691",
        "type": "victron-input-battery",
        "z": "94147fbcc564dd23",
        "service": "com.victronenergy.battery/512",
        "path": "/Info/MaxDischargeCurrent",
        "serviceObj": {
            "service": "com.victronenergy.battery/512",
            "name": "Fogstar"
        },
        "pathObj": {
            "path": "/Info/MaxDischargeCurrent",
            "type": "float",
            "name": "DCL - Discharge Current Limit (A)"
        },
        "name": "",
        "onlyChanges": false,
        "x": 180,
        "y": 420,
        "wires": [
            [
                "2f58b1635421b7e3"
            ]
        ]
    },
    {
        "id": "2a2d896a1d225cde",
        "type": "victron-input-battery",
        "z": "94147fbcc564dd23",
        "service": "com.victronenergy.battery/512",
        "path": "/Soc",
        "serviceObj": {
            "service": "com.victronenergy.battery/512",
            "name": "Fogstar"
        },
        "pathObj": {
            "path": "/Soc",
            "type": "float",
            "name": "State of charge (%)"
        },
        "name": "",
        "onlyChanges": false,
        "x": 140,
        "y": 480,
        "wires": [
            [
                "05edb549a3264ddb"
            ]
        ]
    },
    {
        "id": "43c1fa6455d207f1",
        "type": "victron-input-battery",
        "z": "94147fbcc564dd23",
        "service": "com.victronenergy.battery/512",
        "path": "/Soc",
        "serviceObj": {
            "service": "com.victronenergy.battery/512",
            "name": "Fogstar"
        },
        "pathObj": {
            "path": "/Soc",
            "type": "float",
            "name": "State of charge (%)"
        },
        "name": "",
        "onlyChanges": false,
        "x": 140,
        "y": 540,
        "wires": [
            [
                "21ea5e1e19654cc2"
            ]
        ]
    },
    {
        "id": "e6b7708130ccf5df",
        "type": "victron-input-battery",
        "z": "94147fbcc564dd23",
        "service": "com.victronenergy.battery/512",
        "path": "/Dc/0/Voltage",
        "serviceObj": {
            "service": "com.victronenergy.battery/512",
            "name": "Fogstar"
        },
        "pathObj": {
            "path": "/Dc/0/Voltage",
            "type": "float",
            "name": "Battery voltage (V)"
        },
        "name": "",
        "onlyChanges": false,
        "x": 140,
        "y": 620,
        "wires": [
            [
                "42e6e09a40509d74"
            ]
        ]
    },
    {
        "id": "1fc7e92357dc1c0b",
        "type": "victron-input-battery",
        "z": "94147fbcc564dd23",
        "service": "com.victronenergy.battery/512",
        "path": "/Dc/0/Voltage",
        "serviceObj": {
            "service": "com.victronenergy.battery/512",
            "name": "Fogstar"
        },
        "pathObj": {
            "path": "/Dc/0/Voltage",
            "type": "float",
            "name": "Battery voltage (V)"
        },
        "name": "",
        "onlyChanges": false,
        "x": 140,
        "y": 680,
        "wires": [
            [
                "7bd614e927dfb5a0"
            ]
        ]
    },
    {
        "id": "aa47cda562e84e02",
        "type": "change",
        "z": "94147fbcc564dd23",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "bat1cvl",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 480,
        "y": 220,
        "wires": [
            []
        ]
    },
    {
        "id": "79ea15411ae95436",
        "type": "change",
        "z": "94147fbcc564dd23",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "bat2cvl",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 480,
        "y": 280,
        "wires": [
            []
        ]
    },
    {
        "id": "c75b38d0c5649772",
        "type": "change",
        "z": "94147fbcc564dd23",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "bat1dcl",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 480,
        "y": 360,
        "wires": [
            []
        ]
    },
    {
        "id": "2f58b1635421b7e3",
        "type": "change",
        "z": "94147fbcc564dd23",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "bat2dcl",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 480,
        "y": 420,
        "wires": [
            []
        ]
    },
    {
        "id": "05edb549a3264ddb",
        "type": "change",
        "z": "94147fbcc564dd23",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "bat1soc",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 480,
        "y": 480,
        "wires": [
            []
        ]
    },
    {
        "id": "21ea5e1e19654cc2",
        "type": "change",
        "z": "94147fbcc564dd23",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "bat2soc",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 480,
        "y": 540,
        "wires": [
            []
        ]
    },
    {
        "id": "42e6e09a40509d74",
        "type": "change",
        "z": "94147fbcc564dd23",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "bat1volt",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 480,
        "y": 620,
        "wires": [
            []
        ]
    },
    {
        "id": "7bd614e927dfb5a0",
        "type": "change",
        "z": "94147fbcc564dd23",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "bat2volt",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 480,
        "y": 680,
        "wires": [
            []
        ]
    },
    {
        "id": "676ccdb54730c5e3",
        "type": "function",
        "z": "94147fbcc564dd23",
        "name": "CVL",
        "func": "msg.payload = (msg.bat1cvl + msg.bat2cvl)/2\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 790,
        "y": 260,
        "wires": [
            [
                "03d994cddcbda47d",
                "f22f9df39b85c318"
            ]
        ]
    },
    {
        "id": "f1b9c6192c01a367",
        "type": "function",
        "z": "94147fbcc564dd23",
        "name": "DCL",
        "func": "msg.payload = (msg.bat1dcl + msg.bat2dcl)\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 790,
        "y": 380,
        "wires": [
            [
                "27bce3f70eabe887"
            ]
        ]
    },
    {
        "id": "5f0343cfd4e1a677",
        "type": "function",
        "z": "94147fbcc564dd23",
        "name": "SOC",
        "func": "msg.payload = (msg.bat1soc + msg.bat2soc)/2\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 790,
        "y": 500,
        "wires": [
            [
                "0f767b4058018207"
            ]
        ]
    },
    {
        "id": "8971dad44b02ab81",
        "type": "function",
        "z": "94147fbcc564dd23",
        "name": "Bat Volts",
        "func": "msg.payload = (msg.bat1volt + msg.bat2volt)/2\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 800,
        "y": 640,
        "wires": [
            [
                "5376586d1da17c65"
            ]
        ]
    },
    {
        "id": "03d994cddcbda47d",
        "type": "victron-output-battery",
        "z": "94147fbcc564dd23",
        "service": "com.victronenergy.battery/101",
        "path": "/Info/MaxChargeVoltage",
        "serviceObj": {
            "service": "com.victronenergy.battery/101",
            "name": "Work"
        },
        "pathObj": {
            "path": "/Info/MaxChargeVoltage",
            "type": "float",
            "name": "CVL - Charge Voltage Limit (V)"
        },
        "name": "",
        "onlyChanges": false,
        "x": 1070,
        "y": 260,
        "wires": []
    },
    {
        "id": "27bce3f70eabe887",
        "type": "victron-output-battery",
        "z": "94147fbcc564dd23",
        "service": "com.victronenergy.battery/101",
        "path": "/Info/MaxDischargeCurrent",
        "serviceObj": {
            "service": "com.victronenergy.battery/101",
            "name": "Work"
        },
        "pathObj": {
            "path": "/Info/MaxDischargeCurrent",
            "type": "float",
            "name": "DCL - Discharge Current Limit (A)"
        },
        "name": "",
        "onlyChanges": false,
        "x": 1080,
        "y": 380,
        "wires": []
    },
    {
        "id": "0f767b4058018207",
        "type": "victron-output-battery",
        "z": "94147fbcc564dd23",
        "service": "com.victronenergy.battery/101",
        "path": "/Soc",
        "serviceObj": {
            "service": "com.victronenergy.battery/101",
            "name": "Work"
        },
        "pathObj": {
            "path": "/Soc",
            "type": "float",
            "name": "State of charge (%)"
        },
        "name": "",
        "onlyChanges": false,
        "x": 1040,
        "y": 500,
        "wires": []
    },
    {
        "id": "5376586d1da17c65",
        "type": "victron-output-battery",
        "z": "94147fbcc564dd23",
        "service": "com.victronenergy.battery/101",
        "path": "/Dc/0/Voltage",
        "serviceObj": {
            "service": "com.victronenergy.battery/101",
            "name": "Work"
        },
        "pathObj": {
            "path": "/Dc/0/Voltage",
            "type": "float",
            "name": "Battery voltage (V)"
        },
        "name": "",
        "onlyChanges": false,
        "x": 1030,
        "y": 640,
        "wires": []
    },
    {
        "id": "b642725a5636e274",
        "type": "victron-input-battery",
        "z": "94147fbcc564dd23",
        "service": "com.victronenergy.battery/512",
        "path": "/Dc/0/Current",
        "serviceObj": {
            "service": "com.victronenergy.battery/512",
            "name": "Fogstar"
        },
        "pathObj": {
            "path": "/Dc/0/Current",
            "type": "float",
            "name": "Battery current (A)"
        },
        "name": "",
        "onlyChanges": true,
        "x": 140,
        "y": 740,
        "wires": [
            [
                "69ecdde5eb6918a1"
            ]
        ]
    },
    {
        "id": "f5cbb9bf5847f77c",
        "type": "victron-input-battery",
        "z": "94147fbcc564dd23",
        "service": "com.victronenergy.battery/512",
        "path": "/Dc/0/Current",
        "serviceObj": {
            "service": "com.victronenergy.battery/512",
            "name": "Fogstar"
        },
        "pathObj": {
            "path": "/Dc/0/Current",
            "type": "float",
            "name": "Battery current (A)"
        },
        "name": "",
        "onlyChanges": true,
        "x": 140,
        "y": 800,
        "wires": [
            [
                "5830d22e0b01a971"
            ]
        ]
    },
    {
        "id": "44ce1588f1ebea75",
        "type": "victron-input-battery",
        "z": "94147fbcc564dd23",
        "service": "com.victronenergy.battery/512",
        "path": "/Dc/0/Power",
        "serviceObj": {
            "service": "com.victronenergy.battery/512",
            "name": "Fogstar"
        },
        "pathObj": {
            "path": "/Dc/0/Power",
            "type": "float",
            "name": "Battery power (W)"
        },
        "name": "",
        "onlyChanges": false,
        "x": 140,
        "y": 860,
        "wires": [
            [
                "1dcfbabf14d28589"
            ]
        ]
    },
    {
        "id": "d18f857cd6d17468",
        "type": "victron-input-battery",
        "z": "94147fbcc564dd23",
        "service": "com.victronenergy.battery/512",
        "path": "/Dc/0/Power",
        "serviceObj": {
            "service": "com.victronenergy.battery/512",
            "name": "Fogstar"
        },
        "pathObj": {
            "path": "/Dc/0/Power",
            "type": "float",
            "name": "Battery power (W)"
        },
        "name": "",
        "onlyChanges": true,
        "x": 140,
        "y": 920,
        "wires": [
            [
                "c09cb1d2bd95d3a5"
            ]
        ]
    },
    {
        "id": "69ecdde5eb6918a1",
        "type": "change",
        "z": "94147fbcc564dd23",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "bat1current",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 490,
        "y": 740,
        "wires": [
            []
        ]
    },
    {
        "id": "1dcfbabf14d28589",
        "type": "change",
        "z": "94147fbcc564dd23",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "bat1watt",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 490,
        "y": 860,
        "wires": [
            []
        ]
    },
    {
        "id": "5830d22e0b01a971",
        "type": "change",
        "z": "94147fbcc564dd23",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "bat2current",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 490,
        "y": 800,
        "wires": [
            []
        ]
    },
    {
        "id": "c09cb1d2bd95d3a5",
        "type": "change",
        "z": "94147fbcc564dd23",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "bat2watt",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 490,
        "y": 920,
        "wires": [
            []
        ]
    },
    {
        "id": "6348e3386cf77c83",
        "type": "function",
        "z": "94147fbcc564dd23",
        "name": "Bat Current",
        "func": "msg.payload = (msg.bat1current + msg.bat2current)\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 810,
        "y": 760,
        "wires": [
            [
                "d713f62e27253b31"
            ]
        ]
    },
    {
        "id": "7b2478a1cd3d30d7",
        "type": "function",
        "z": "94147fbcc564dd23",
        "name": "Bat Watts",
        "func": "msg.payload = (msg.bat1watt + msg.bat2watt)\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 800,
        "y": 880,
        "wires": [
            [
                "a9689199667e79d8"
            ]
        ]
    },
    {
        "id": "d713f62e27253b31",
        "type": "victron-output-battery",
        "z": "94147fbcc564dd23",
        "service": "com.victronenergy.battery/101",
        "path": "/Dc/0/Current",
        "serviceObj": {
            "service": "com.victronenergy.battery/101",
            "name": "Work"
        },
        "pathObj": {
            "path": "/Dc/0/Current",
            "type": "float",
            "name": "Battery current (A)"
        },
        "name": "",
        "onlyChanges": false,
        "x": 1030,
        "y": 760,
        "wires": []
    },
    {
        "id": "a9689199667e79d8",
        "type": "victron-output-battery",
        "z": "94147fbcc564dd23",
        "service": "com.victronenergy.battery/101",
        "path": "/Dc/0/Power",
        "serviceObj": {
            "service": "com.victronenergy.battery/101",
            "name": "Work"
        },
        "pathObj": {
            "path": "/Dc/0/Power",
            "type": "float",
            "name": "Battery power (W)"
        },
        "name": "",
        "onlyChanges": false,
        "x": 1030,
        "y": 880,
        "wires": []
    },
    {
        "id": "9c8194360f26f0a2",
        "type": "victron-input-battery",
        "z": "94147fbcc564dd23",
        "service": "com.victronenergy.battery/512",
        "path": "/System/MaxCellTemperature",
        "serviceObj": {
            "service": "com.victronenergy.battery/512",
            "name": "Fogstar"
        },
        "pathObj": {
            "path": "/System/MaxCellTemperature",
            "type": "float",
            "name": "Maximum cell temperature (°C)"
        },
        "name": "",
        "onlyChanges": false,
        "x": 180,
        "y": 980,
        "wires": [
            [
                "c93b9d5c8a92bccf"
            ]
        ]
    },
    {
        "id": "f9221ef556cb865d",
        "type": "victron-input-battery",
        "z": "94147fbcc564dd23",
        "service": "com.victronenergy.battery/512",
        "path": "/System/MaxCellTemperature",
        "serviceObj": {
            "service": "com.victronenergy.battery/512",
            "name": "Fogstar"
        },
        "pathObj": {
            "path": "/System/MaxCellTemperature",
            "type": "float",
            "name": "Maximum cell temperature (°C)"
        },
        "name": "",
        "onlyChanges": false,
        "x": 180,
        "y": 1040,
        "wires": [
            [
                "c375d8402490d03e"
            ]
        ]
    },
    {
        "id": "c93b9d5c8a92bccf",
        "type": "change",
        "z": "94147fbcc564dd23",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "bat1temp",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 490,
        "y": 980,
        "wires": [
            []
        ]
    },
    {
        "id": "c375d8402490d03e",
        "type": "change",
        "z": "94147fbcc564dd23",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "bat2temp",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 490,
        "y": 1040,
        "wires": [
            []
        ]
    },
    {
        "id": "352a937be5f4b326",
        "type": "inject",
        "z": "94147fbcc564dd23",
        "name": "",
        "props": [
            {
                "p": "bat1cvl",
                "v": "bat1cvl",
                "vt": "flow"
            },
            {
                "p": "bat2cvl",
                "v": "bat2cvl",
                "vt": "flow"
            }
        ],
        "repeat": "60",
        "crontab": "",
        "once": true,
        "onceDelay": "0.5",
        "topic": "",
        "x": 670,
        "y": 260,
        "wires": [
            [
                "676ccdb54730c5e3"
            ]
        ]
    },
    {
        "id": "0ab96f9d6956123f",
        "type": "inject",
        "z": "94147fbcc564dd23",
        "name": "",
        "props": [
            {
                "p": "bat1dcl",
                "v": "bat1dcl",
                "vt": "flow"
            },
            {
                "p": "bat2dcl",
                "v": "bat2dcl",
                "vt": "flow"
            }
        ],
        "repeat": "2",
        "crontab": "",
        "once": true,
        "onceDelay": "0.5",
        "topic": "",
        "x": 670,
        "y": 380,
        "wires": [
            [
                "f1b9c6192c01a367"
            ]
        ]
    },
    {
        "id": "52e29697a5ffaf1b",
        "type": "inject",
        "z": "94147fbcc564dd23",
        "name": "",
        "props": [
            {
                "p": "bat1soc",
                "v": "bat1soc",
                "vt": "flow"
            },
            {
                "p": "bat2soc",
                "v": "bat2soc",
                "vt": "flow"
            }
        ],
        "repeat": "2",
        "crontab": "",
        "once": true,
        "onceDelay": "0.5",
        "topic": "",
        "x": 670,
        "y": 500,
        "wires": [
            [
                "5f0343cfd4e1a677"
            ]
        ]
    },
    {
        "id": "d5a4c427aa8f41dc",
        "type": "inject",
        "z": "94147fbcc564dd23",
        "name": "",
        "props": [
            {
                "p": "bat1volt",
                "v": "bat1volt",
                "vt": "flow"
            },
            {
                "p": "bat2volt",
                "v": "bat2volt",
                "vt": "flow"
            }
        ],
        "repeat": "1",
        "crontab": "",
        "once": true,
        "onceDelay": "0.5",
        "topic": "",
        "x": 670,
        "y": 640,
        "wires": [
            [
                "8971dad44b02ab81"
            ]
        ]
    },
    {
        "id": "b24c0b6d20434cc4",
        "type": "inject",
        "z": "94147fbcc564dd23",
        "name": "",
        "props": [
            {
                "p": "bat1current",
                "v": "bat1current",
                "vt": "flow"
            },
            {
                "p": "bat2current",
                "v": "bat2current",
                "vt": "flow"
            }
        ],
        "repeat": "1",
        "crontab": "",
        "once": true,
        "onceDelay": "0.5",
        "topic": "",
        "x": 670,
        "y": 760,
        "wires": [
            [
                "6348e3386cf77c83"
            ]
        ]
    },
    {
        "id": "84153cb9d2978218",
        "type": "inject",
        "z": "94147fbcc564dd23",
        "name": "",
        "props": [
            {
                "p": "bat1watt",
                "v": "bat1watt",
                "vt": "flow"
            },
            {
                "p": "bat2watt",
                "v": "bat2watt",
                "vt": "flow"
            }
        ],
        "repeat": "1",
        "crontab": "",
        "once": true,
        "onceDelay": "0.5",
        "topic": "",
        "x": 670,
        "y": 880,
        "wires": [
            [
                "7b2478a1cd3d30d7"
            ]
        ]
    },
    {
        "id": "13ffd87dad00082d",
        "type": "victron-output-battery",
        "z": "94147fbcc564dd23",
        "service": "com.victronenergy.battery/101",
        "path": "/Dc/0/Temperature",
        "serviceObj": {
            "service": "com.victronenergy.battery/101",
            "name": "Work"
        },
        "pathObj": {
            "path": "/Dc/0/Temperature",
            "type": "float",
            "name": "Battery temperature (°C)"
        },
        "name": "",
        "onlyChanges": false,
        "x": 1090,
        "y": 1000,
        "wires": []
    },
    {
        "id": "3668de2447b25783",
        "type": "inject",
        "z": "94147fbcc564dd23",
        "name": "",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "5",
        "crontab": "",
        "once": true,
        "onceDelay": "0.5",
        "topic": "",
        "payload": "bat1temp",
        "payloadType": "flow",
        "x": 700,
        "y": 980,
        "wires": [
            [
                "1011d1458799efa5"
            ]
        ]
    },
    {
        "id": "2c651dc2c2560e1b",
        "type": "victron-input-battery",
        "z": "94147fbcc564dd23",
        "service": "com.victronenergy.battery/512",
        "path": "/Info/BatteryLowVoltage",
        "serviceObj": {
            "service": "com.victronenergy.battery/512",
            "name": "Fogstar"
        },
        "pathObj": {
            "path": "/Info/BatteryLowVoltage",
            "type": "float",
            "name": "Min discharge voltage (V DC)"
        },
        "name": "",
        "onlyChanges": false,
        "x": 170,
        "y": 1100,
        "wires": [
            [
                "4c443b6ac774e673"
            ]
        ]
    },
    {
        "id": "421ce2a2b16daeac",
        "type": "victron-input-battery",
        "z": "94147fbcc564dd23",
        "service": "com.victronenergy.battery/512",
        "path": "/Info/BatteryLowVoltage",
        "serviceObj": {
            "service": "com.victronenergy.battery/512",
            "name": "Fogstar"
        },
        "pathObj": {
            "path": "/Info/BatteryLowVoltage",
            "type": "float",
            "name": "Min discharge voltage (V DC)"
        },
        "name": "",
        "onlyChanges": false,
        "x": 170,
        "y": 1160,
        "wires": [
            [
                "9e9476b7d59757b4"
            ]
        ]
    },
    {
        "id": "4c443b6ac774e673",
        "type": "change",
        "z": "94147fbcc564dd23",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "bat1disvolt",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 490,
        "y": 1100,
        "wires": [
            []
        ]
    },
    {
        "id": "9e9476b7d59757b4",
        "type": "change",
        "z": "94147fbcc564dd23",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "bat2disvolt",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 490,
        "y": 1160,
        "wires": [
            []
        ]
    },
    {
        "id": "2777beb62c84b0a5",
        "type": "function",
        "z": "94147fbcc564dd23",
        "name": "Bat DisChar Volt",
        "func": "msg.payload = (msg.bat1disvolt + msg.bat2disvolt)/2\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 820,
        "y": 1120,
        "wires": [
            [
                "f8ce8a8572d1e448"
            ]
        ]
    },
    {
        "id": "029c4fcfddc34a57",
        "type": "inject",
        "z": "94147fbcc564dd23",
        "name": "",
        "props": [
            {
                "p": "bat1disvolt",
                "v": "bat1disvolt",
                "vt": "flow"
            },
            {
                "p": "bat2disvolt",
                "v": "bat2disvolt",
                "vt": "flow"
            }
        ],
        "repeat": "30",
        "crontab": "",
        "once": true,
        "onceDelay": "0.5",
        "topic": "",
        "x": 670,
        "y": 1120,
        "wires": [
            [
                "2777beb62c84b0a5"
            ]
        ]
    },
    {
        "id": "f8ce8a8572d1e448",
        "type": "victron-output-battery",
        "z": "94147fbcc564dd23",
        "service": "com.victronenergy.battery/101",
        "path": "/Info/BatteryLowVoltage",
        "serviceObj": {
            "service": "com.victronenergy.battery/101",
            "name": "Work"
        },
        "pathObj": {
            "path": "/Info/BatteryLowVoltage",
            "type": "float",
            "name": "Min discharge voltage (V DC)"
        },
        "name": "",
        "onlyChanges": false,
        "x": 1070,
        "y": 1120,
        "wires": []
    },
    {
        "id": "f22f9df39b85c318",
        "type": "debug",
        "z": "94147fbcc564dd23",
        "name": "debug 22",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "true",
        "targetType": "full",
        "statusVal": "",
        "statusType": "auto",
        "x": 1060,
        "y": 180,
        "wires": []
    },
    {
        "id": "1011d1458799efa5",
        "type": "switch",
        "z": "94147fbcc564dd23",
        "name": "",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "gte",
                "v": "bat2temp",
                "vt": "flow"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 1,
        "x": 850,
        "y": 980,
        "wires": [
            [
                "a1b2e95cd6d6896f",
                "13ffd87dad00082d"
            ]
        ]
    },
    {
        "id": "b050d7d1d5829ca3",
        "type": "inject",
        "z": "94147fbcc564dd23",
        "name": "",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "5",
        "crontab": "",
        "once": true,
        "onceDelay": "0.5",
        "topic": "",
        "payload": "bat2temp",
        "payloadType": "flow",
        "x": 700,
        "y": 1040,
        "wires": [
            [
                "f79668be1201a8f5"
            ]
        ]
    },
    {
        "id": "f79668be1201a8f5",
        "type": "switch",
        "z": "94147fbcc564dd23",
        "name": "",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "gt",
                "v": "bat1temp",
                "vt": "flow"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 1,
        "x": 850,
        "y": 1040,
        "wires": [
            [
                "1b7d172a36ecb8d9",
                "13ffd87dad00082d"
            ]
        ]
    },
    {
        "id": "a1b2e95cd6d6896f",
        "type": "debug",
        "z": "94147fbcc564dd23",
        "name": "debug 23",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 1040,
        "y": 940,
        "wires": []
    },
    {
        "id": "1b7d172a36ecb8d9",
        "type": "debug",
        "z": "94147fbcc564dd23",
        "name": "debug 24",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 1040,
        "y": 1060,
        "wires": []
    }
]

I think there is an error in this flow.
You can make the flow render correctly by editing the topic in the simple text editor instead of rich text, but the json seems to be missing something to work.

Tried doing it again but it won’t have it!

[
    {
        "id": "94147fbcc564dd23",
        "type": "tab",
        "label": "BMS Combine",
        "disabled": false,
        "info": "",
        "env": []
    },
    {
        "id": "78dad5a002063712",
        "type": "victron-input-battery",
        "z": "94147fbcc564dd23",
        "service": "com.victronenergy.battery/512",
        "path": "/Info/MaxChargeCurrent",
        "serviceObj": {
            "service": "com.victronenergy.battery/512",
            "name": "Fogstar"
        },
        "pathObj": {
            "path": "/Info/MaxChargeCurrent",
            "type": "float",
            "name": "CCL - Charge Current Limit (A)"
        },
        "name": "",
        "onlyChanges": false,
        "x": 180,
        "y": 40,
        "wires": [
            [
                "48de2d88c06b8b89"
            ]
        ]
    },
    {
        "id": "31df306df36400ee",
        "type": "victron-input-battery",
        "z": "94147fbcc564dd23",
        "service": "com.victronenergy.battery/512",
        "path": "/Info/MaxChargeCurrent",
        "serviceObj": {
            "service": "com.victronenergy.battery/512",
            "name": "Fogstar"
        },
        "pathObj": {
            "path": "/Info/MaxChargeCurrent",
            "type": "float",
            "name": "CCL - Charge Current Limit (A)"
        },
        "name": "",
        "onlyChanges": false,
        "x": 180,
        "y": 100,
        "wires": [
            [
                "c0272b634e992737"
            ]
        ]
    },
    {
        "id": "3d669fc7ce18f34f",
        "type": "function",
        "z": "94147fbcc564dd23",
        "name": "CCL",
        "func": "msg.payload = msg.bat1ccl + msg.bat2ccl\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 790,
        "y": 60,
        "wires": [
            [
                "7cf2843a3fbc6a50"
            ]
        ]
    },
    {
        "id": "48de2d88c06b8b89",
        "type": "change",
        "z": "94147fbcc564dd23",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "bat1ccl",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 480,
        "y": 40,
        "wires": [
            []
        ]
    },
    {
        "id": "c0272b634e992737",
        "type": "change",
        "z": "94147fbcc564dd23",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "bat2ccl",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 480,
        "y": 100,
        "wires": [
            []
        ]
    },
    {
        "id": "a25fe40d1f0adb3e",
        "type": "inject",
        "z": "94147fbcc564dd23",
        "name": "",
        "props": [
            {
                "p": "bat1ccl",
                "v": "bat1ccl",
                "vt": "flow"
            },
            {
                "p": "bat2ccl",
                "v": "bat2ccl",
                "vt": "flow"
            }
        ],
        "repeat": "2",
        "crontab": "",
        "once": true,
        "onceDelay": "0.5",
        "topic": "",
        "x": 670,
        "y": 60,
        "wires": [
            [
                "3d669fc7ce18f34f"
            ]
        ]
    },
    {
        "id": "b8b14f2d591f1fee",
        "type": "victron-virtual",
        "z": "94147fbcc564dd23",
        "name": "Work",
        "device": "battery",
        "default_values": true,
        "battery_capacity": "20000",
        "include_battery_temperature": true,
        "grid_nrofphases": 1,
        "include_motor_temp": false,
        "include_controller_temp": false,
        "include_coolant_temp": false,
        "include_motor_rpm": true,
        "include_motor_direction": true,
        "position": 0,
        "pvinverter_nrofphases": 1,
        "fluid_type": 0,
        "include_tank_battery": false,
        "include_tank_temperature": false,
        "tank_battery_voltage": 3.3,
        "tank_capacity": 0.2,
        "temperature_type": 2,
        "include_humidity": false,
        "include_pressure": false,
        "include_temp_battery": false,
        "temp_battery_voltage": 3.3,
        "x": 650,
        "y": 160,
        "wires": []
    },
    {
        "id": "7cf2843a3fbc6a50",
        "type": "victron-output-battery",
        "z": "94147fbcc564dd23",
        "service": "com.victronenergy.battery/101",
        "path": "/Info/MaxChargeCurrent",
        "serviceObj": {
            "service": "com.victronenergy.battery/101",
            "name": "Work"
        },
        "pathObj": {
            "path": "/Info/MaxChargeCurrent",
            "type": "float",
            "name": "CCL - Charge Current Limit (A)"
        },
        "name": "",
        "onlyChanges": false,
        "x": 1050,
        "y": 60,
        "wires": []
    },
    {
        "id": "625f86af576a86e7",
        "type": "victron-input-battery",
        "z": "94147fbcc564dd23",
        "service": "com.victronenergy.battery/512",
        "path": "/Info/MaxChargeVoltage",
        "serviceObj": {
            "service": "com.victronenergy.battery/512",
            "name": "Fogstar"
        },
        "pathObj": {
            "path": "/Info/MaxChargeVoltage",
            "type": "float",
            "name": "CVL - Charge Voltage Limit (V)"
        },
        "name": "",
        "onlyChanges": false,
        "x": 180,
        "y": 220,
        "wires": [
            [
                "aa47cda562e84e02"
            ]
        ]
    },
    {
        "id": "546b4a7deb10be34",
        "type": "victron-input-battery",
        "z": "94147fbcc564dd23",
        "service": "com.victronenergy.battery/512",
        "path": "/Info/MaxChargeVoltage",
        "serviceObj": {
            "service": "com.victronenergy.battery/512",
            "name": "Fogstar"
        },
        "pathObj": {
            "path": "/Info/MaxChargeVoltage",
            "type": "float",
            "name": "CVL - Charge Voltage Limit (V)"
        },
        "name": "",
        "onlyChanges": false,
        "x": 180,
        "y": 280,
        "wires": [
            [
                "79ea15411ae95436"
            ]
        ]
    },
    {
        "id": "251157f93bb19d2e",
        "type": "victron-input-battery",
        "z": "94147fbcc564dd23",
        "service": "com.victronenergy.battery/512",
        "path": "/Info/MaxDischargeCurrent",
        "serviceObj": {
            "service": "com.victronenergy.battery/512",
            "name": "Fogstar"
        },
        "pathObj": {
            "path": "/Info/MaxDischargeCurrent",
            "type": "float",
            "name": "DCL - Discharge Current Limit (A)"
        },
        "name": "",
        "onlyChanges": false,
        "x": 180,
        "y": 360,
        "wires": [
            [
                "c75b38d0c5649772"
            ]
        ]
    },
    {
        "id": "a21b2d5268216691",
        "type": "victron-input-battery",
        "z": "94147fbcc564dd23",
        "service": "com.victronenergy.battery/512",
        "path": "/Info/MaxDischargeCurrent",
        "serviceObj": {
            "service": "com.victronenergy.battery/512",
            "name": "Fogstar"
        },
        "pathObj": {
            "path": "/Info/MaxDischargeCurrent",
            "type": "float",
            "name": "DCL - Discharge Current Limit (A)"
        },
        "name": "",
        "onlyChanges": false,
        "x": 180,
        "y": 420,
        "wires": [
            [
                "2f58b1635421b7e3"
            ]
        ]
    },
    {
        "id": "2a2d896a1d225cde",
        "type": "victron-input-battery",
        "z": "94147fbcc564dd23",
        "service": "com.victronenergy.battery/512",
        "path": "/Soc",
        "serviceObj": {
            "service": "com.victronenergy.battery/512",
            "name": "Fogstar"
        },
        "pathObj": {
            "path": "/Soc",
            "type": "float",
            "name": "State of charge (%)"
        },
        "name": "",
        "onlyChanges": false,
        "x": 140,
        "y": 480,
        "wires": [
            [
                "05edb549a3264ddb"
            ]
        ]
    },
    {
        "id": "43c1fa6455d207f1",
        "type": "victron-input-battery",
        "z": "94147fbcc564dd23",
        "service": "com.victronenergy.battery/512",
        "path": "/Soc",
        "serviceObj": {
            "service": "com.victronenergy.battery/512",
            "name": "Fogstar"
        },
        "pathObj": {
            "path": "/Soc",
            "type": "float",
            "name": "State of charge (%)"
        },
        "name": "",
        "onlyChanges": false,
        "x": 140,
        "y": 540,
        "wires": [
            [
                "21ea5e1e19654cc2"
            ]
        ]
    },
    {
        "id": "e6b7708130ccf5df",
        "type": "victron-input-battery",
        "z": "94147fbcc564dd23",
        "service": "com.victronenergy.battery/512",
        "path": "/Dc/0/Voltage",
        "serviceObj": {
            "service": "com.victronenergy.battery/512",
            "name": "Fogstar"
        },
        "pathObj": {
            "path": "/Dc/0/Voltage",
            "type": "float",
            "name": "Battery voltage (V)"
        },
        "name": "",
        "onlyChanges": false,
        "x": 140,
        "y": 620,
        "wires": [
            [
                "42e6e09a40509d74"
            ]
        ]
    },
    {
        "id": "1fc7e92357dc1c0b",
        "type": "victron-input-battery",
        "z": "94147fbcc564dd23",
        "service": "com.victronenergy.battery/512",
        "path": "/Dc/0/Voltage",
        "serviceObj": {
            "service": "com.victronenergy.battery/512",
            "name": "Fogstar"
        },
        "pathObj": {
            "path": "/Dc/0/Voltage",
            "type": "float",
            "name": "Battery voltage (V)"
        },
        "name": "",
        "onlyChanges": false,
        "x": 140,
        "y": 680,
        "wires": [
            [
                "7bd614e927dfb5a0"
            ]
        ]
    },
    {
        "id": "aa47cda562e84e02",
        "type": "change",
        "z": "94147fbcc564dd23",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "bat1cvl",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 480,
        "y": 220,
        "wires": [
            []
        ]
    },
    {
        "id": "79ea15411ae95436",
        "type": "change",
        "z": "94147fbcc564dd23",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "bat2cvl",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 480,
        "y": 280,
        "wires": [
            []
        ]
    },
    {
        "id": "c75b38d0c5649772",
        "type": "change",
        "z": "94147fbcc564dd23",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "bat1dcl",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 480,
        "y": 360,
        "wires": [
            []
        ]
    },
    {
        "id": "2f58b1635421b7e3",
        "type": "change",
        "z": "94147fbcc564dd23",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "bat2dcl",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 480,
        "y": 420,
        "wires": [
            []
        ]
    },
    {
        "id": "05edb549a3264ddb",
        "type": "change",
        "z": "94147fbcc564dd23",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "bat1soc",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 480,
        "y": 480,
        "wires": [
            []
        ]
    },
    {
        "id": "21ea5e1e19654cc2",
        "type": "change",
        "z": "94147fbcc564dd23",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "bat2soc",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 480,
        "y": 540,
        "wires": [
            []
        ]
    },
    {
        "id": "42e6e09a40509d74",
        "type": "change",
        "z": "94147fbcc564dd23",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "bat1volt",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 480,
        "y": 620,
        "wires": [
            []
        ]
    },
    {
        "id": "7bd614e927dfb5a0",
        "type": "change",
        "z": "94147fbcc564dd23",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "bat2volt",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 480,
        "y": 680,
        "wires": [
            []
        ]
    },
    {
        "id": "676ccdb54730c5e3",
        "type": "function",
        "z": "94147fbcc564dd23",
        "name": "CVL",
        "func": "msg.payload = (msg.bat1cvl + msg.bat2cvl)/2\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 790,
        "y": 260,
        "wires": [
            [
                "03d994cddcbda47d",
                "f22f9df39b85c318"
            ]
        ]
    },
    {
        "id": "f1b9c6192c01a367",
        "type": "function",
        "z": "94147fbcc564dd23",
        "name": "DCL",
        "func": "msg.payload = (msg.bat1dcl + msg.bat2dcl)\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 790,
        "y": 380,
        "wires": [
            [
                "27bce3f70eabe887"
            ]
        ]
    },
    {
        "id": "5f0343cfd4e1a677",
        "type": "function",
        "z": "94147fbcc564dd23",
        "name": "SOC",
        "func": "msg.payload = (msg.bat1soc + msg.bat2soc)/2\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 790,
        "y": 500,
        "wires": [
            [
                "0f767b4058018207"
            ]
        ]
    },
    {
        "id": "8971dad44b02ab81",
        "type": "function",
        "z": "94147fbcc564dd23",
        "name": "Bat Volts",
        "func": "msg.payload = (msg.bat1volt + msg.bat2volt)/2\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 800,
        "y": 640,
        "wires": [
            [
                "5376586d1da17c65"
            ]
        ]
    },
    {
        "id": "03d994cddcbda47d",
        "type": "victron-output-battery",
        "z": "94147fbcc564dd23",
        "service": "com.victronenergy.battery/101",
        "path": "/Info/MaxChargeVoltage",
        "serviceObj": {
            "service": "com.victronenergy.battery/101",
            "name": "Work"
        },
        "pathObj": {
            "path": "/Info/MaxChargeVoltage",
            "type": "float",
            "name": "CVL - Charge Voltage Limit (V)"
        },
        "name": "",
        "onlyChanges": false,
        "x": 1070,
        "y": 260,
        "wires": []
    },
    {
        "id": "27bce3f70eabe887",
        "type": "victron-output-battery",
        "z": "94147fbcc564dd23",
        "service": "com.victronenergy.battery/101",
        "path": "/Info/MaxDischargeCurrent",
        "serviceObj": {
            "service": "com.victronenergy.battery/101",
            "name": "Work"
        },
        "pathObj": {
            "path": "/Info/MaxDischargeCurrent",
            "type": "float",
            "name": "DCL - Discharge Current Limit (A)"
        },
        "name": "",
        "onlyChanges": false,
        "x": 1080,
        "y": 380,
        "wires": []
    },
    {
        "id": "0f767b4058018207",
        "type": "victron-output-battery",
        "z": "94147fbcc564dd23",
        "service": "com.victronenergy.battery/101",
        "path": "/Soc",
        "serviceObj": {
            "service": "com.victronenergy.battery/101",
            "name": "Work"
        },
        "pathObj": {
            "path": "/Soc",
            "type": "float",
            "name": "State of charge (%)"
        },
        "name": "",
        "onlyChanges": false,
        "x": 1040,
        "y": 500,
        "wires": []
    },
    {
        "id": "5376586d1da17c65",
        "type": "victron-output-battery",
        "z": "94147fbcc564dd23",
        "service": "com.victronenergy.battery/101",
        "path": "/Dc/0/Voltage",
        "serviceObj": {
            "service": "com.victronenergy.battery/101",
            "name": "Work"
        },
        "pathObj": {
            "path": "/Dc/0/Voltage",
            "type": "float",
            "name": "Battery voltage (V)"
        },
        "name": "",
        "onlyChanges": false,
        "x": 1030,
        "y": 640,
        "wires": []
    },
    {
        "id": "b642725a5636e274",
        "type": "victron-input-battery",
        "z": "94147fbcc564dd23",
        "service": "com.victronenergy.battery/512",
        "path": "/Dc/0/Current",
        "serviceObj": {
            "service": "com.victronenergy.battery/512",
            "name": "Fogstar"
        },
        "pathObj": {
            "path": "/Dc/0/Current",
            "type": "float",
            "name": "Battery current (A)"
        },
        "name": "",
        "onlyChanges": true,
        "x": 140,
        "y": 740,
        "wires": [
            [
                "69ecdde5eb6918a1"
            ]
        ]
    },
    {
        "id": "f5cbb9bf5847f77c",
        "type": "victron-input-battery",
        "z": "94147fbcc564dd23",
        "service": "com.victronenergy.battery/512",
        "path": "/Dc/0/Current",
        "serviceObj": {
            "service": "com.victronenergy.battery/512",
            "name": "Fogstar"
        },
        "pathObj": {
            "path": "/Dc/0/Current",
            "type": "float",
            "name": "Battery current (A)"
        },
        "name": "",
        "onlyChanges": true,
        "x": 140,
        "y": 800,
        "wires": [
            [
                "5830d22e0b01a971"
            ]
        ]
    },
    {
        "id": "44ce1588f1ebea75",
        "type": "victron-input-battery",
        "z": "94147fbcc564dd23",
        "service": "com.victronenergy.battery/512",
        "path": "/Dc/0/Power",
        "serviceObj": {
            "service": "com.victronenergy.battery/512",
            "name": "Fogstar"
        },
        "pathObj": {
            "path": "/Dc/0/Power",
            "type": "float",
            "name": "Battery power (W)"
        },
        "name": "",
        "onlyChanges": false,
        "x": 140,
        "y": 860,
        "wires": [
            [
                "1dcfbabf14d28589"
            ]
        ]
    },
    {
        "id": "d18f857cd6d17468",
        "type": "victron-input-battery",
        "z": "94147fbcc564dd23",
        "service": "com.victronenergy.battery/512",
        "path": "/Dc/0/Power",
        "serviceObj": {
            "service": "com.victronenergy.battery/512",
            "name": "Fogstar"
        },
        "pathObj": {
            "path": "/Dc/0/Power",
            "type": "float",
            "name": "Battery power (W)"
        },
        "name": "",
        "onlyChanges": true,
        "x": 140,
        "y": 920,
        "wires": [
            [
                "c09cb1d2bd95d3a5"
            ]
        ]
    },
    {
        "id": "69ecdde5eb6918a1",
        "type": "change",
        "z": "94147fbcc564dd23",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "bat1current",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 490,
        "y": 740,
        "wires": [
            []
        ]
    },
    {
        "id": "1dcfbabf14d28589",
        "type": "change",
        "z": "94147fbcc564dd23",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "bat1watt",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 490,
        "y": 860,
        "wires": [
            []
        ]
    },
    {
        "id": "5830d22e0b01a971",
        "type": "change",
        "z": "94147fbcc564dd23",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "bat2current",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 490,
        "y": 800,
        "wires": [
            []
        ]
    },
    {
        "id": "c09cb1d2bd95d3a5",
        "type": "change",
        "z": "94147fbcc564dd23",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "bat2watt",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 490,
        "y": 920,
        "wires": [
            []
        ]
    },
    {
        "id": "6348e3386cf77c83",
        "type": "function",
        "z": "94147fbcc564dd23",
        "name": "Bat Current",
        "func": "msg.payload = (msg.bat1current + msg.bat2current)\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 810,
        "y": 760,
        "wires": [
            [
                "d713f62e27253b31"
            ]
        ]
    },
    {
        "id": "7b2478a1cd3d30d7",
        "type": "function",
        "z": "94147fbcc564dd23",
        "name": "Bat Watts",
        "func": "msg.payload = (msg.bat1watt + msg.bat2watt)\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 800,
        "y": 880,
        "wires": [
            [
                "a9689199667e79d8"
            ]
        ]
    },
    {
        "id": "d713f62e27253b31",
        "type": "victron-output-battery",
        "z": "94147fbcc564dd23",
        "service": "com.victronenergy.battery/101",
        "path": "/Dc/0/Current",
        "serviceObj": {
            "service": "com.victronenergy.battery/101",
            "name": "Work"
        },
        "pathObj": {
            "path": "/Dc/0/Current",
            "type": "float",
            "name": "Battery current (A)"
        },
        "name": "",
        "onlyChanges": false,
        "x": 1030,
        "y": 760,
        "wires": []
    },
    {
        "id": "a9689199667e79d8",
        "type": "victron-output-battery",
        "z": "94147fbcc564dd23",
        "service": "com.victronenergy.battery/101",
        "path": "/Dc/0/Power",
        "serviceObj": {
            "service": "com.victronenergy.battery/101",
            "name": "Work"
        },
        "pathObj": {
            "path": "/Dc/0/Power",
            "type": "float",
            "name": "Battery power (W)"
        },
        "name": "",
        "onlyChanges": false,
        "x": 1030,
        "y": 880,
        "wires": []
    },
    {
        "id": "9c8194360f26f0a2",
        "type": "victron-input-battery",
        "z": "94147fbcc564dd23",
        "service": "com.victronenergy.battery/512",
        "path": "/System/MaxCellTemperature",
        "serviceObj": {
            "service": "com.victronenergy.battery/512",
            "name": "Fogstar"
        },
        "pathObj": {
            "path": "/System/MaxCellTemperature",
            "type": "float",
            "name": "Maximum cell temperature (°C)"
        },
        "name": "",
        "onlyChanges": false,
        "x": 180,
        "y": 980,
        "wires": [
            [
                "c93b9d5c8a92bccf"
            ]
        ]
    },
    {
        "id": "f9221ef556cb865d",
        "type": "victron-input-battery",
        "z": "94147fbcc564dd23",
        "service": "com.victronenergy.battery/512",
        "path": "/System/MaxCellTemperature",
        "serviceObj": {
            "service": "com.victronenergy.battery/512",
            "name": "Fogstar"
        },
        "pathObj": {
            "path": "/System/MaxCellTemperature",
            "type": "float",
            "name": "Maximum cell temperature (°C)"
        },
        "name": "",
        "onlyChanges": false,
        "x": 180,
        "y": 1040,
        "wires": [
            [
                "c375d8402490d03e"
            ]
        ]
    },
    {
        "id": "c93b9d5c8a92bccf",
        "type": "change",
        "z": "94147fbcc564dd23",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "bat1temp",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 490,
        "y": 980,
        "wires": [
            []
        ]
    },
    {
        "id": "c375d8402490d03e",
        "type": "change",
        "z": "94147fbcc564dd23",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "bat2temp",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 490,
        "y": 1040,
        "wires": [
            []
        ]
    },
    {
        "id": "352a937be5f4b326",
        "type": "inject",
        "z": "94147fbcc564dd23",
        "name": "",
        "props": [
            {
                "p": "bat1cvl",
                "v": "bat1cvl",
                "vt": "flow"
            },
            {
                "p": "bat2cvl",
                "v": "bat2cvl",
                "vt": "flow"
            }
        ],
        "repeat": "60",
        "crontab": "",
        "once": true,
        "onceDelay": "0.5",
        "topic": "",
        "x": 670,
        "y": 260,
        "wires": [
            [
                "676ccdb54730c5e3"
            ]
        ]
    },
    {
        "id": "0ab96f9d6956123f",
        "type": "inject",
        "z": "94147fbcc564dd23",
        "name": "",
        "props": [
            {
                "p": "bat1dcl",
                "v": "bat1dcl",
                "vt": "flow"
            },
            {
                "p": "bat2dcl",
                "v": "bat2dcl",
                "vt": "flow"
            }
        ],
        "repeat": "2",
        "crontab": "",
        "once": true,
        "onceDelay": "0.5",
        "topic": "",
        "x": 670,
        "y": 380,
        "wires": [
            [
                "f1b9c6192c01a367"
            ]
        ]
    },
    {
        "id": "52e29697a5ffaf1b",
        "type": "inject",
        "z": "94147fbcc564dd23",
        "name": "",
        "props": [
            {
                "p": "bat1soc",
                "v": "bat1soc",
                "vt": "flow"
            },
            {
                "p": "bat2soc",
                "v": "bat2soc",
                "vt": "flow"
            }
        ],
        "repeat": "2",
        "crontab": "",
        "once": true,
        "onceDelay": "0.5",
        "topic": "",
        "x": 670,
        "y": 500,
        "wires": [
            [
                "5f0343cfd4e1a677"
            ]
        ]
    },
    {
        "id": "d5a4c427aa8f41dc",
        "type": "inject",
        "z": "94147fbcc564dd23",
        "name": "",
        "props": [
            {
                "p": "bat1volt",
                "v": "bat1volt",
                "vt": "flow"
            },
            {
                "p": "bat2volt",
                "v": "bat2volt",
                "vt": "flow"
            }
        ],
        "repeat": "1",
        "crontab": "",
        "once": true,
        "onceDelay": "0.5",
        "topic": "",
        "x": 670,
        "y": 640,
        "wires": [
            [
                "8971dad44b02ab81"
            ]
        ]
    },
    {
        "id": "b24c0b6d20434cc4",
        "type": "inject",
        "z": "94147fbcc564dd23",
        "name": "",
        "props": [
            {
                "p": "bat1current",
                "v": "bat1current",
                "vt": "flow"
            },
            {
                "p": "bat2current",
                "v": "bat2current",
                "vt": "flow"
            }
        ],
        "repeat": "1",
        "crontab": "",
        "once": true,
        "onceDelay": "0.5",
        "topic": "",
        "x": 670,
        "y": 760,
        "wires": [
            [
                "6348e3386cf77c83"
            ]
        ]
    },
    {
        "id": "84153cb9d2978218",
        "type": "inject",
        "z": "94147fbcc564dd23",
        "name": "",
        "props": [
            {
                "p": "bat1watt",
                "v": "bat1watt",
                "vt": "flow"
            },
            {
                "p": "bat2watt",
                "v": "bat2watt",
                "vt": "flow"
            }
        ],
        "repeat": "1",
        "crontab": "",
        "once": true,
        "onceDelay": "0.5",
        "topic": "",
        "x": 670,
        "y": 880,
        "wires": [
            [
                "7b2478a1cd3d30d7"
            ]
        ]
    },
    {
        "id": "13ffd87dad00082d",
        "type": "victron-output-battery",
        "z": "94147fbcc564dd23",
        "service": "com.victronenergy.battery/101",
        "path": "/Dc/0/Temperature",
        "serviceObj": {
            "service": "com.victronenergy.battery/101",
            "name": "Work"
        },
        "pathObj": {
            "path": "/Dc/0/Temperature",
            "type": "float",
            "name": "Battery temperature (°C)"
        },
        "name": "",
        "onlyChanges": false,
        "x": 1090,
        "y": 1000,
        "wires": []
    },
    {
        "id": "3668de2447b25783",
        "type": "inject",
        "z": "94147fbcc564dd23",
        "name": "",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "5",
        "crontab": "",
        "once": true,
        "onceDelay": "0.5",
        "topic": "",
        "payload": "bat1temp",
        "payloadType": "flow",
        "x": 700,
        "y": 980,
        "wires": [
            [
                "1011d1458799efa5"
            ]
        ]
    },
    {
        "id": "2c651dc2c2560e1b",
        "type": "victron-input-battery",
        "z": "94147fbcc564dd23",
        "service": "com.victronenergy.battery/512",
        "path": "/Info/BatteryLowVoltage",
        "serviceObj": {
            "service": "com.victronenergy.battery/512",
            "name": "Fogstar"
        },
        "pathObj": {
            "path": "/Info/BatteryLowVoltage",
            "type": "float",
            "name": "Min discharge voltage (V DC)"
        },
        "name": "",
        "onlyChanges": false,
        "x": 170,
        "y": 1100,
        "wires": [
            [
                "4c443b6ac774e673"
            ]
        ]
    },
    {
        "id": "421ce2a2b16daeac",
        "type": "victron-input-battery",
        "z": "94147fbcc564dd23",
        "service": "com.victronenergy.battery/512",
        "path": "/Info/BatteryLowVoltage",
        "serviceObj": {
            "service": "com.victronenergy.battery/512",
            "name": "Fogstar"
        },
        "pathObj": {
            "path": "/Info/BatteryLowVoltage",
            "type": "float",
            "name": "Min discharge voltage (V DC)"
        },
        "name": "",
        "onlyChanges": false,
        "x": 170,
        "y": 1160,
        "wires": [
            [
                "9e9476b7d59757b4"
            ]
        ]
    },
    {
        "id": "4c443b6ac774e673",
        "type": "change",
        "z": "94147fbcc564dd23",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "bat1disvolt",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 490,
        "y": 1100,
        "wires": [
            []
        ]
    },
    {
        "id": "9e9476b7d59757b4",
        "type": "change",
        "z": "94147fbcc564dd23",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "bat2disvolt",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 490,
        "y": 1160,
        "wires": [
            []
        ]
    },
    {
        "id": "2777beb62c84b0a5",
        "type": "function",
        "z": "94147fbcc564dd23",
        "name": "Bat DisChar Volt",
        "func": "msg.payload = (msg.bat1disvolt + msg.bat2disvolt)/2\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 820,
        "y": 1120,
        "wires": [
            [
                "f8ce8a8572d1e448"
            ]
        ]
    },
    {
        "id": "029c4fcfddc34a57",
        "type": "inject",
        "z": "94147fbcc564dd23",
        "name": "",
        "props": [
            {
                "p": "bat1disvolt",
                "v": "bat1disvolt",
                "vt": "flow"
            },
            {
                "p": "bat2disvolt",
                "v": "bat2disvolt",
                "vt": "flow"
            }
        ],
        "repeat": "30",
        "crontab": "",
        "once": true,
        "onceDelay": "0.5",
        "topic": "",
        "x": 670,
        "y": 1120,
        "wires": [
            [
                "2777beb62c84b0a5"
            ]
        ]
    },
    {
        "id": "f8ce8a8572d1e448",
        "type": "victron-output-battery",
        "z": "94147fbcc564dd23",
        "service": "com.victronenergy.battery/101",
        "path": "/Info/BatteryLowVoltage",
        "serviceObj": {
            "service": "com.victronenergy.battery/101",
            "name": "Work"
        },
        "pathObj": {
            "path": "/Info/BatteryLowVoltage",
            "type": "float",
            "name": "Min discharge voltage (V DC)"
        },
        "name": "",
        "onlyChanges": false,
        "x": 1070,
        "y": 1120,
        "wires": []
    },
    {
        "id": "f22f9df39b85c318",
        "type": "debug",
        "z": "94147fbcc564dd23",
        "name": "debug 22",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "true",
        "targetType": "full",
        "statusVal": "",
        "statusType": "auto",
        "x": 1060,
        "y": 180,
        "wires": []
    },
    {
        "id": "1011d1458799efa5",
        "type": "switch",
        "z": "94147fbcc564dd23",
        "name": "",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "gte",
                "v": "bat2temp",
                "vt": "flow"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 1,
        "x": 850,
        "y": 980,
        "wires": [
            [
                "a1b2e95cd6d6896f",
                "13ffd87dad00082d"
            ]
        ]
    },
    {
        "id": "b050d7d1d5829ca3",
        "type": "inject",
        "z": "94147fbcc564dd23",
        "name": "",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "5",
        "crontab": "",
        "once": true,
        "onceDelay": "0.5",
        "topic": "",
        "payload": "bat2temp",
        "payloadType": "flow",
        "x": 700,
        "y": 1040,
        "wires": [
            [
                "f79668be1201a8f5"
            ]
        ]
    },
    {
        "id": "f79668be1201a8f5",
        "type": "switch",
        "z": "94147fbcc564dd23",
        "name": "",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "gt",
                "v": "bat1temp",
                "vt": "flow"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 1,
        "x": 850,
        "y": 1040,
        "wires": [
            [
                "1b7d172a36ecb8d9",
                "13ffd87dad00082d"
            ]
        ]
    },
    {
        "id": "a1b2e95cd6d6896f",
        "type": "debug",
        "z": "94147fbcc564dd23",
        "name": "debug 23",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 1040,
        "y": 940,
        "wires": []
    },
    {
        "id": "1b7d172a36ecb8d9",
        "type": "debug",
        "z": "94147fbcc564dd23",
        "name": "debug 24",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 1040,
        "y": 1060,
        "wires": []
    }
]

What did I do wrong?

I suspect you just needed to start from scratch and not edit the original post. I just copied the json into a new post.

That makes sense. Least everyone can see what can be done without using the battery aggregator software and this will use the live data from both banks, I suspect the battery aggregator used fixed data from what I could see for things like the CCL and DCL. Just a waiting game now till the 20kva Quattros are released to be able to get everything on order.

1 Like

Hi Matt, working on something similar. How did you configure the GX-device so it accepts your CCL, CVL and DCL? Since you cannot select the Virtual Battery as the controlling BMS in the DVCC-settings…

for sure you can:

Sometimes it takes some minutes for the virt battery to appear.

1 Like

Strange… I do see my virtual batteries (Batterij01 and Batterij02):

…but I cannot select them in DVCC-settings:

Any ideas?

Solved… I had to actively write the CCL, CVL and DCL for it to show up in the list…

If there is no CCL or CVL present on the device then it can’t be used for the DVCC, It simply won’t show it as you found out. My most updated version attached. I don’t use it anymore as made a external battery combiner which is just more reliable when restarting plus you get all the data, like cell info, bank specific alarms etc. I’ve updated since the photo below as moved bits around and found a terminal board to wire to for the relay board

[
    {
        "id": "d537f36560cb4608",
        "type": "tab",
        "label": "Virtual Battery",
        "disabled": true,
        "info": "",
        "env": []
    },
    {
        "id": "cdfebd83d4e40c05",
        "type": "victron-virtual",
        "z": "d537f36560cb4608",
        "name": "Battery House",
        "device": "battery",
        "default_values": true,
        "battery_capacity": "20096",
        "include_battery_temperature": true,
        "grid_nrofphases": 1,
        "include_motor_temp": false,
        "include_controller_temp": false,
        "include_coolant_temp": false,
        "include_motor_rpm": true,
        "include_motor_direction": true,
        "position": 0,
        "pvinverter_nrofphases": 1,
        "fluid_type": 0,
        "include_tank_battery": false,
        "include_tank_temperature": false,
        "tank_battery_voltage": 3.3,
        "tank_capacity": 0.2,
        "temperature_type": 2,
        "include_humidity": false,
        "include_pressure": false,
        "include_temp_battery": false,
        "temp_battery_voltage": 3.3,
        "x": 690,
        "y": 20,
        "wires": []
    },
    {
        "id": "3d34136754d49676",
        "type": "victron-input-battery",
        "z": "d537f36560cb4608",
        "service": "com.victronenergy.battery/512",
        "path": "/Info/MaxChargeCurrent",
        "serviceObj": {
            "service": "com.victronenergy.battery/512",
            "name": "Red Bank"
        },
        "pathObj": {
            "path": "/Info/MaxChargeCurrent",
            "type": "float",
            "name": "CCL - Charge Current Limit (A)"
        },
        "name": "",
        "onlyChanges": true,
        "x": 180,
        "y": 100,
        "wires": [
            [
                "050a210a3c5be223"
            ]
        ]
    },
    {
        "id": "954734e5ad8f2f14",
        "type": "victron-input-battery",
        "z": "d537f36560cb4608",
        "service": "com.victronenergy.battery/513",
        "path": "/Info/MaxChargeCurrent",
        "serviceObj": {
            "service": "com.victronenergy.battery/513",
            "name": "Purple Bank"
        },
        "pathObj": {
            "path": "/Info/MaxChargeCurrent",
            "type": "float",
            "name": "CCL - Charge Current Limit (A)"
        },
        "name": "",
        "onlyChanges": true,
        "x": 190,
        "y": 160,
        "wires": [
            [
                "aea6f9b98ec45414"
            ]
        ]
    },
    {
        "id": "04fc570a4d517f79",
        "type": "function",
        "z": "d537f36560cb4608",
        "name": "CCL",
        "func": "msg.payload = msg.bat1ccl + msg.bat2ccl\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 830,
        "y": 120,
        "wires": [
            [
                "3a34a6a4cb2407e7"
            ]
        ]
    },
    {
        "id": "050a210a3c5be223",
        "type": "change",
        "z": "d537f36560cb4608",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "bat1ccl",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 480,
        "y": 100,
        "wires": [
            []
        ]
    },
    {
        "id": "aea6f9b98ec45414",
        "type": "change",
        "z": "d537f36560cb4608",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "bat2ccl",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 480,
        "y": 160,
        "wires": [
            []
        ]
    },
    {
        "id": "3a34a6a4cb2407e7",
        "type": "victron-output-battery",
        "z": "d537f36560cb4608",
        "service": "com.victronenergy.battery/100",
        "path": "/Info/MaxChargeCurrent",
        "serviceObj": {
            "service": "com.victronenergy.battery/100",
            "name": "Battery House"
        },
        "pathObj": {
            "path": "/Info/MaxChargeCurrent",
            "type": "float",
            "name": "CCL - Charge Current Limit (A)"
        },
        "name": "",
        "onlyChanges": false,
        "x": 1360,
        "y": 120,
        "wires": []
    },
    {
        "id": "c83b048cf9ab7d2a",
        "type": "victron-input-battery",
        "z": "d537f36560cb4608",
        "service": "com.victronenergy.battery/512",
        "path": "/Info/MaxChargeVoltage",
        "serviceObj": {
            "service": "com.victronenergy.battery/512",
            "name": "Red Bank"
        },
        "pathObj": {
            "path": "/Info/MaxChargeVoltage",
            "type": "float",
            "name": "CVL - Charge Voltage Limit (V)"
        },
        "name": "",
        "onlyChanges": true,
        "x": 180,
        "y": 280,
        "wires": [
            [
                "24d69b55d17bcf0f"
            ]
        ]
    },
    {
        "id": "3c13fc859cae96fe",
        "type": "victron-input-battery",
        "z": "d537f36560cb4608",
        "service": "com.victronenergy.battery/513",
        "path": "/Info/MaxChargeVoltage",
        "serviceObj": {
            "service": "com.victronenergy.battery/513",
            "name": "Purple Bank"
        },
        "pathObj": {
            "path": "/Info/MaxChargeVoltage",
            "type": "float",
            "name": "CVL - Charge Voltage Limit (V)"
        },
        "name": "",
        "onlyChanges": true,
        "x": 190,
        "y": 340,
        "wires": [
            [
                "121f2c964a3710b9"
            ]
        ]
    },
    {
        "id": "1c6be7f2daec57cf",
        "type": "victron-input-battery",
        "z": "d537f36560cb4608",
        "service": "com.victronenergy.battery/512",
        "path": "/Info/MaxDischargeCurrent",
        "serviceObj": {
            "service": "com.victronenergy.battery/512",
            "name": "Red Bank"
        },
        "pathObj": {
            "path": "/Info/MaxDischargeCurrent",
            "type": "float",
            "name": "DCL - Discharge Current Limit (A)"
        },
        "name": "",
        "onlyChanges": true,
        "x": 190,
        "y": 420,
        "wires": [
            [
                "752849734af6b728"
            ]
        ]
    },
    {
        "id": "645056e8abd6e9e2",
        "type": "victron-input-battery",
        "z": "d537f36560cb4608",
        "service": "com.victronenergy.battery/513",
        "path": "/Info/MaxDischargeCurrent",
        "serviceObj": {
            "service": "com.victronenergy.battery/513",
            "name": "Purple Bank"
        },
        "pathObj": {
            "path": "/Info/MaxDischargeCurrent",
            "type": "float",
            "name": "DCL - Discharge Current Limit (A)"
        },
        "name": "",
        "onlyChanges": true,
        "x": 200,
        "y": 480,
        "wires": [
            [
                "d5090974d3907122"
            ]
        ]
    },
    {
        "id": "e1b8284921dabcdd",
        "type": "victron-input-battery",
        "z": "d537f36560cb4608",
        "service": "com.victronenergy.battery/512",
        "path": "/Soc",
        "serviceObj": {
            "service": "com.victronenergy.battery/512",
            "name": "Red Bank"
        },
        "pathObj": {
            "path": "/Soc",
            "type": "float",
            "name": "State of charge (%)"
        },
        "name": "",
        "onlyChanges": true,
        "x": 150,
        "y": 540,
        "wires": [
            [
                "136de4395bcd9a9a"
            ]
        ]
    },
    {
        "id": "2d462f986e2e9bb1",
        "type": "victron-input-battery",
        "z": "d537f36560cb4608",
        "service": "com.victronenergy.battery/513",
        "path": "/Soc",
        "serviceObj": {
            "service": "com.victronenergy.battery/513",
            "name": "Purple Bank"
        },
        "pathObj": {
            "path": "/Soc",
            "type": "float",
            "name": "State of charge (%)"
        },
        "name": "",
        "onlyChanges": true,
        "x": 150,
        "y": 600,
        "wires": [
            [
                "4c383bb702cf5243"
            ]
        ]
    },
    {
        "id": "65cf37d4a3dcc4a7",
        "type": "victron-input-battery",
        "z": "d537f36560cb4608",
        "service": "com.victronenergy.battery/512",
        "path": "/Dc/0/Voltage",
        "serviceObj": {
            "service": "com.victronenergy.battery/512",
            "name": "Red Bank"
        },
        "pathObj": {
            "path": "/Dc/0/Voltage",
            "type": "float",
            "name": "Battery voltage (V)"
        },
        "name": "",
        "onlyChanges": true,
        "x": 140,
        "y": 680,
        "wires": [
            [
                "41840d47952660c2"
            ]
        ]
    },
    {
        "id": "abe263d5c2960664",
        "type": "victron-input-battery",
        "z": "d537f36560cb4608",
        "service": "com.victronenergy.battery/513",
        "path": "/Dc/0/Voltage",
        "serviceObj": {
            "service": "com.victronenergy.battery/513",
            "name": "Purple Bank"
        },
        "pathObj": {
            "path": "/Dc/0/Voltage",
            "type": "float",
            "name": "Battery voltage (V)"
        },
        "name": "",
        "onlyChanges": true,
        "x": 150,
        "y": 740,
        "wires": [
            [
                "bb3a1df5c4a6211b"
            ]
        ]
    },
    {
        "id": "24d69b55d17bcf0f",
        "type": "change",
        "z": "d537f36560cb4608",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "bat1cvl",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 480,
        "y": 280,
        "wires": [
            []
        ]
    },
    {
        "id": "121f2c964a3710b9",
        "type": "change",
        "z": "d537f36560cb4608",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "bat2cvl",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 480,
        "y": 340,
        "wires": [
            []
        ]
    },
    {
        "id": "752849734af6b728",
        "type": "change",
        "z": "d537f36560cb4608",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "bat1dcl",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 480,
        "y": 420,
        "wires": [
            []
        ]
    },
    {
        "id": "d5090974d3907122",
        "type": "change",
        "z": "d537f36560cb4608",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "bat2dcl",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 480,
        "y": 480,
        "wires": [
            []
        ]
    },
    {
        "id": "136de4395bcd9a9a",
        "type": "change",
        "z": "d537f36560cb4608",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "bat1soc",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 480,
        "y": 540,
        "wires": [
            []
        ]
    },
    {
        "id": "4c383bb702cf5243",
        "type": "change",
        "z": "d537f36560cb4608",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "bat2soc",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 480,
        "y": 600,
        "wires": [
            []
        ]
    },
    {
        "id": "41840d47952660c2",
        "type": "change",
        "z": "d537f36560cb4608",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "bat1volt",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 480,
        "y": 680,
        "wires": [
            []
        ]
    },
    {
        "id": "bb3a1df5c4a6211b",
        "type": "change",
        "z": "d537f36560cb4608",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "bat2volt",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 480,
        "y": 740,
        "wires": [
            []
        ]
    },
    {
        "id": "1c72ded48c29c560",
        "type": "function",
        "z": "d537f36560cb4608",
        "name": "CVL",
        "func": "msg.payload = (msg.bat1cvl + msg.bat2cvl)/2\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 790,
        "y": 320,
        "wires": [
            []
        ]
    },
    {
        "id": "b1e3c634da24a37e",
        "type": "function",
        "z": "d537f36560cb4608",
        "name": "DCL",
        "func": "msg.payload = (msg.bat1dcl + msg.bat2dcl)\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 790,
        "y": 460,
        "wires": [
            []
        ]
    },
    {
        "id": "4f497b469f3c8386",
        "type": "function",
        "z": "d537f36560cb4608",
        "name": "SOC",
        "func": "msg.payload = (msg.bat1soc + msg.bat2soc)/2\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 790,
        "y": 560,
        "wires": [
            [
                "120f2e5e589635e5"
            ]
        ]
    },
    {
        "id": "361ccb5062f6d6ea",
        "type": "function",
        "z": "d537f36560cb4608",
        "name": "Bat Volts",
        "func": "msg.payload = (msg.bat1volt + msg.bat2volt)/2\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 800,
        "y": 700,
        "wires": [
            [
                "8c88d09ee41e5b2d"
            ]
        ]
    },
    {
        "id": "477b0188b6791b06",
        "type": "victron-output-battery",
        "z": "d537f36560cb4608",
        "service": "com.victronenergy.battery/100",
        "path": "/Info/MaxChargeVoltage",
        "serviceObj": {
            "service": "com.victronenergy.battery/100",
            "name": "Battery House"
        },
        "pathObj": {
            "path": "/Info/MaxChargeVoltage",
            "type": "float",
            "name": "CVL - Charge Voltage Limit (V)"
        },
        "name": "",
        "onlyChanges": false,
        "x": 1220,
        "y": 320,
        "wires": []
    },
    {
        "id": "cf1a9fa9156b3b4e",
        "type": "victron-output-battery",
        "z": "d537f36560cb4608",
        "service": "com.victronenergy.battery/100",
        "path": "/Info/MaxDischargeCurrent",
        "serviceObj": {
            "service": "com.victronenergy.battery/100",
            "name": "Battery House"
        },
        "pathObj": {
            "path": "/Info/MaxDischargeCurrent",
            "type": "float",
            "name": "DCL - Discharge Current Limit (A)"
        },
        "name": "",
        "onlyChanges": false,
        "x": 1290,
        "y": 460,
        "wires": []
    },
    {
        "id": "120f2e5e589635e5",
        "type": "victron-output-battery",
        "z": "d537f36560cb4608",
        "service": "com.victronenergy.battery/100",
        "path": "/Soc",
        "serviceObj": {
            "service": "com.victronenergy.battery/100",
            "name": "Battery House"
        },
        "pathObj": {
            "path": "/Soc",
            "type": "float",
            "name": "State of charge (%)"
        },
        "name": "",
        "onlyChanges": false,
        "x": 1180,
        "y": 560,
        "wires": []
    },
    {
        "id": "8c88d09ee41e5b2d",
        "type": "victron-output-battery",
        "z": "d537f36560cb4608",
        "service": "com.victronenergy.battery/100",
        "path": "/Dc/0/Voltage",
        "serviceObj": {
            "service": "com.victronenergy.battery/100",
            "name": "Battery House"
        },
        "pathObj": {
            "path": "/Dc/0/Voltage",
            "type": "float",
            "name": "Battery voltage (V)"
        },
        "name": "",
        "onlyChanges": false,
        "x": 1180,
        "y": 700,
        "wires": []
    },
    {
        "id": "19015be14c53f1cc",
        "type": "victron-input-battery",
        "z": "d537f36560cb4608",
        "service": "com.victronenergy.battery/512",
        "path": "/Dc/0/Current",
        "serviceObj": {
            "service": "com.victronenergy.battery/512",
            "name": "Red Bank"
        },
        "pathObj": {
            "path": "/Dc/0/Current",
            "type": "float",
            "name": "Battery current (A)"
        },
        "name": "",
        "onlyChanges": true,
        "x": 140,
        "y": 800,
        "wires": [
            [
                "b260dff070912c24"
            ]
        ]
    },
    {
        "id": "01cafa3ac4deb208",
        "type": "victron-input-battery",
        "z": "d537f36560cb4608",
        "service": "com.victronenergy.battery/513",
        "path": "/Dc/0/Current",
        "serviceObj": {
            "service": "com.victronenergy.battery/513",
            "name": "Purple Bank"
        },
        "pathObj": {
            "path": "/Dc/0/Current",
            "type": "float",
            "name": "Battery current (A)"
        },
        "name": "",
        "onlyChanges": true,
        "x": 150,
        "y": 860,
        "wires": [
            [
                "72fe59e3c38f2374"
            ]
        ]
    },
    {
        "id": "c017245e9375d1ca",
        "type": "victron-input-battery",
        "z": "d537f36560cb4608",
        "service": "com.victronenergy.battery/512",
        "path": "/Dc/0/Power",
        "serviceObj": {
            "service": "com.victronenergy.battery/512",
            "name": "Red Bank"
        },
        "pathObj": {
            "path": "/Dc/0/Power",
            "type": "float",
            "name": "Battery power (W)"
        },
        "name": "",
        "onlyChanges": true,
        "x": 140,
        "y": 920,
        "wires": [
            [
                "6e5b8f13abccb203"
            ]
        ]
    },
    {
        "id": "059adda046ea024a",
        "type": "victron-input-battery",
        "z": "d537f36560cb4608",
        "service": "com.victronenergy.battery/513",
        "path": "/Dc/0/Power",
        "serviceObj": {
            "service": "com.victronenergy.battery/513",
            "name": "Purple Bank"
        },
        "pathObj": {
            "path": "/Dc/0/Power",
            "type": "float",
            "name": "Battery power (W)"
        },
        "name": "",
        "onlyChanges": true,
        "x": 150,
        "y": 980,
        "wires": [
            [
                "4c6dd4f1da32863d"
            ]
        ]
    },
    {
        "id": "b260dff070912c24",
        "type": "change",
        "z": "d537f36560cb4608",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "bat1current",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 490,
        "y": 800,
        "wires": [
            []
        ]
    },
    {
        "id": "6e5b8f13abccb203",
        "type": "change",
        "z": "d537f36560cb4608",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "bat1watt",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 490,
        "y": 920,
        "wires": [
            []
        ]
    },
    {
        "id": "72fe59e3c38f2374",
        "type": "change",
        "z": "d537f36560cb4608",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "bat2current",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 490,
        "y": 860,
        "wires": [
            []
        ]
    },
    {
        "id": "4c6dd4f1da32863d",
        "type": "change",
        "z": "d537f36560cb4608",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "bat2watt",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 490,
        "y": 980,
        "wires": [
            []
        ]
    },
    {
        "id": "238da6c2605aaf67",
        "type": "function",
        "z": "d537f36560cb4608",
        "name": "Bat Current",
        "func": "msg.payload = (msg.bat1current + msg.bat2current)\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 810,
        "y": 820,
        "wires": [
            [
                "89b30dfa8b58adef"
            ]
        ]
    },
    {
        "id": "dfe7ec2f90e7ee00",
        "type": "function",
        "z": "d537f36560cb4608",
        "name": "Bat Watts",
        "func": "msg.payload = (msg.bat1watt + msg.bat2watt)\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 800,
        "y": 940,
        "wires": [
            [
                "32eb603341831492"
            ]
        ]
    },
    {
        "id": "89b30dfa8b58adef",
        "type": "victron-output-battery",
        "z": "d537f36560cb4608",
        "service": "com.victronenergy.battery/100",
        "path": "/Dc/0/Current",
        "serviceObj": {
            "service": "com.victronenergy.battery/100",
            "name": "Battery House"
        },
        "pathObj": {
            "path": "/Dc/0/Current",
            "type": "float",
            "name": "Battery current (A)"
        },
        "name": "",
        "onlyChanges": false,
        "x": 1180,
        "y": 820,
        "wires": []
    },
    {
        "id": "32eb603341831492",
        "type": "victron-output-battery",
        "z": "d537f36560cb4608",
        "service": "com.victronenergy.battery/100",
        "path": "/Dc/0/Power",
        "serviceObj": {
            "service": "com.victronenergy.battery/100",
            "name": "Battery House"
        },
        "pathObj": {
            "path": "/Dc/0/Power",
            "type": "float",
            "name": "Battery power (W)"
        },
        "name": "",
        "onlyChanges": false,
        "x": 1180,
        "y": 940,
        "wires": []
    },
    {
        "id": "deaf753143090aed",
        "type": "victron-input-battery",
        "z": "d537f36560cb4608",
        "service": "com.victronenergy.battery/512",
        "path": "/Dc/0/Temperature",
        "serviceObj": {
            "service": "com.victronenergy.battery/512",
            "name": "Red Bank"
        },
        "pathObj": {
            "path": "/Dc/0/Temperature",
            "type": "float",
            "name": "Battery temperature (°C)"
        },
        "name": "",
        "onlyChanges": true,
        "x": 160,
        "y": 1040,
        "wires": [
            [
                "db6414c6032c34bb"
            ]
        ]
    },
    {
        "id": "62960bf7b6c424f9",
        "type": "victron-input-battery",
        "z": "d537f36560cb4608",
        "service": "com.victronenergy.battery/513",
        "path": "/Dc/0/Temperature",
        "serviceObj": {
            "service": "com.victronenergy.battery/513",
            "name": "Purple Bank"
        },
        "pathObj": {
            "path": "/Dc/0/Temperature",
            "type": "float",
            "name": "Battery temperature (°C)"
        },
        "name": "",
        "onlyChanges": true,
        "x": 170,
        "y": 1100,
        "wires": [
            [
                "bc72c6bbbee2ad9c"
            ]
        ]
    },
    {
        "id": "db6414c6032c34bb",
        "type": "change",
        "z": "d537f36560cb4608",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "bat1temp",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 490,
        "y": 1040,
        "wires": [
            []
        ]
    },
    {
        "id": "bc72c6bbbee2ad9c",
        "type": "change",
        "z": "d537f36560cb4608",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "bat2temp",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 490,
        "y": 1100,
        "wires": [
            []
        ]
    },
    {
        "id": "93c58ab0791361a3",
        "type": "inject",
        "z": "d537f36560cb4608",
        "name": "",
        "props": [
            {
                "p": "bat1cvl",
                "v": "bat1cvl",
                "vt": "flow"
            },
            {
                "p": "bat2cvl",
                "v": "bat2cvl",
                "vt": "flow"
            }
        ],
        "repeat": "60",
        "crontab": "",
        "once": true,
        "onceDelay": "0.5",
        "topic": "",
        "x": 670,
        "y": 320,
        "wires": [
            [
                "1c72ded48c29c560"
            ]
        ]
    },
    {
        "id": "17a2158e5176040a",
        "type": "inject",
        "z": "d537f36560cb4608",
        "name": "",
        "props": [
            {
                "p": "bat1dcl",
                "v": "bat1dcl",
                "vt": "flow"
            },
            {
                "p": "bat2dcl",
                "v": "bat2dcl",
                "vt": "flow"
            }
        ],
        "repeat": "1",
        "crontab": "",
        "once": true,
        "onceDelay": "0.5",
        "topic": "",
        "x": 670,
        "y": 460,
        "wires": [
            [
                "b1e3c634da24a37e"
            ]
        ]
    },
    {
        "id": "f25e6e6356a39e2e",
        "type": "inject",
        "z": "d537f36560cb4608",
        "name": "",
        "props": [
            {
                "p": "bat1soc",
                "v": "bat1soc",
                "vt": "flow"
            },
            {
                "p": "bat2soc",
                "v": "bat2soc",
                "vt": "flow"
            }
        ],
        "repeat": "1",
        "crontab": "",
        "once": true,
        "onceDelay": "0.5",
        "topic": "",
        "x": 670,
        "y": 560,
        "wires": [
            [
                "4f497b469f3c8386"
            ]
        ]
    },
    {
        "id": "c725fa9aa4d31920",
        "type": "inject",
        "z": "d537f36560cb4608",
        "name": "",
        "props": [
            {
                "p": "bat1volt",
                "v": "bat1volt",
                "vt": "flow"
            },
            {
                "p": "bat2volt",
                "v": "bat2volt",
                "vt": "flow"
            }
        ],
        "repeat": "0.5",
        "crontab": "",
        "once": true,
        "onceDelay": "0.5",
        "topic": "",
        "x": 670,
        "y": 700,
        "wires": [
            [
                "361ccb5062f6d6ea"
            ]
        ]
    },
    {
        "id": "5de2adffe6a2dd9a",
        "type": "inject",
        "z": "d537f36560cb4608",
        "name": "",
        "props": [
            {
                "p": "bat1current",
                "v": "bat1current",
                "vt": "flow"
            },
            {
                "p": "bat2current",
                "v": "bat2current",
                "vt": "flow"
            }
        ],
        "repeat": "0.5",
        "crontab": "",
        "once": true,
        "onceDelay": "0.5",
        "topic": "",
        "x": 670,
        "y": 820,
        "wires": [
            [
                "238da6c2605aaf67"
            ]
        ]
    },
    {
        "id": "f353f98630911da7",
        "type": "inject",
        "z": "d537f36560cb4608",
        "name": "",
        "props": [
            {
                "p": "bat1watt",
                "v": "bat1watt",
                "vt": "flow"
            },
            {
                "p": "bat2watt",
                "v": "bat2watt",
                "vt": "flow"
            }
        ],
        "repeat": "0.5",
        "crontab": "",
        "once": true,
        "onceDelay": "0.5",
        "topic": "",
        "x": 670,
        "y": 940,
        "wires": [
            [
                "dfe7ec2f90e7ee00"
            ]
        ]
    },
    {
        "id": "a85c2c1d960d15de",
        "type": "victron-output-battery",
        "z": "d537f36560cb4608",
        "service": "com.victronenergy.battery/100",
        "path": "/Dc/0/Temperature",
        "serviceObj": {
            "service": "com.victronenergy.battery/100",
            "name": "Battery House"
        },
        "pathObj": {
            "path": "/Dc/0/Temperature",
            "type": "float",
            "name": "Battery temperature (°C)"
        },
        "name": "",
        "onlyChanges": false,
        "x": 1200,
        "y": 1060,
        "wires": []
    },
    {
        "id": "feb14ea489121395",
        "type": "inject",
        "z": "d537f36560cb4608",
        "name": "",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "1",
        "crontab": "",
        "once": true,
        "onceDelay": "0.5",
        "topic": "",
        "payload": "bat1temp",
        "payloadType": "flow",
        "x": 700,
        "y": 1020,
        "wires": [
            [
                "d11cb9d4a28e118c"
            ]
        ]
    },
    {
        "id": "7a1d346141fc7d54",
        "type": "victron-input-battery",
        "z": "d537f36560cb4608",
        "service": "com.victronenergy.battery/512",
        "path": "/Info/BatteryLowVoltage",
        "serviceObj": {
            "service": "com.victronenergy.battery/512",
            "name": "Red Bank"
        },
        "pathObj": {
            "path": "/Info/BatteryLowVoltage",
            "type": "float",
            "name": "Min discharge voltage (V DC)"
        },
        "name": "",
        "onlyChanges": true,
        "x": 180,
        "y": 1160,
        "wires": [
            [
                "9ea462d89c6bbe38"
            ]
        ]
    },
    {
        "id": "010881889b505854",
        "type": "victron-input-battery",
        "z": "d537f36560cb4608",
        "service": "com.victronenergy.battery/513",
        "path": "/Info/BatteryLowVoltage",
        "serviceObj": {
            "service": "com.victronenergy.battery/513",
            "name": "Purple Bank"
        },
        "pathObj": {
            "path": "/Info/BatteryLowVoltage",
            "type": "float",
            "name": "Min discharge voltage (V DC)"
        },
        "name": "",
        "onlyChanges": true,
        "x": 190,
        "y": 1220,
        "wires": [
            [
                "48bfafa4dca88b36"
            ]
        ]
    },
    {
        "id": "9ea462d89c6bbe38",
        "type": "change",
        "z": "d537f36560cb4608",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "bat1disvolt",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 490,
        "y": 1160,
        "wires": [
            []
        ]
    },
    {
        "id": "48bfafa4dca88b36",
        "type": "change",
        "z": "d537f36560cb4608",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "bat2disvolt",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 490,
        "y": 1220,
        "wires": [
            []
        ]
    },
    {
        "id": "c9ea4ae9ea662135",
        "type": "function",
        "z": "d537f36560cb4608",
        "name": "Bat DisChar Volt",
        "func": "msg.payload = (msg.bat1disvolt + msg.bat2disvolt)/2\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 820,
        "y": 1180,
        "wires": [
            []
        ]
    },
    {
        "id": "ef2f99c77cf9a9cb",
        "type": "inject",
        "z": "d537f36560cb4608",
        "name": "",
        "props": [
            {
                "p": "bat1disvolt",
                "v": "bat1disvolt",
                "vt": "flow"
            },
            {
                "p": "bat2disvolt",
                "v": "bat2disvolt",
                "vt": "flow"
            }
        ],
        "repeat": "1",
        "crontab": "",
        "once": true,
        "onceDelay": "0.5",
        "topic": "",
        "x": 670,
        "y": 1180,
        "wires": [
            [
                "c9ea4ae9ea662135"
            ]
        ]
    },
    {
        "id": "228d8045234554c3",
        "type": "victron-output-battery",
        "z": "d537f36560cb4608",
        "service": "com.victronenergy.battery/100",
        "path": "/Info/BatteryLowVoltage",
        "serviceObj": {
            "service": "com.victronenergy.battery/100",
            "name": "Battery House"
        },
        "pathObj": {
            "path": "/Info/BatteryLowVoltage",
            "type": "float",
            "name": "Min discharge voltage (V DC)"
        },
        "name": "",
        "onlyChanges": false,
        "x": 1210,
        "y": 1180,
        "wires": []
    },
    {
        "id": "d11cb9d4a28e118c",
        "type": "switch",
        "z": "d537f36560cb4608",
        "name": "",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "gte",
                "v": "bat2temp",
                "vt": "flow"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 1,
        "x": 850,
        "y": 1020,
        "wires": [
            []
        ]
    },
    {
        "id": "7b56dabbdcba7de0",
        "type": "inject",
        "z": "d537f36560cb4608",
        "name": "",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "1",
        "crontab": "",
        "once": true,
        "onceDelay": "0.5",
        "topic": "",
        "payload": "bat2temp",
        "payloadType": "flow",
        "x": 700,
        "y": 1100,
        "wires": [
            [
                "ea4d13169307f72c"
            ]
        ]
    },
    {
        "id": "ea4d13169307f72c",
        "type": "switch",
        "z": "d537f36560cb4608",
        "name": "",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "gt",
                "v": "bat1temp",
                "vt": "flow"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 1,
        "x": 850,
        "y": 1100,
        "wires": [
            []
        ]
    },
    {
        "id": "ad1f51543071ad0d",
        "type": "victron-input-battery",
        "z": "d537f36560cb4608",
        "service": "com.victronenergy.battery/512",
        "path": "/System/MinCellVoltage",
        "serviceObj": {
            "service": "com.victronenergy.battery/512",
            "name": "Red Bank"
        },
        "pathObj": {
            "path": "/System/MinCellVoltage",
            "type": "float",
            "name": "System; minimum cell voltage (V DC)"
        },
        "name": "",
        "onlyChanges": true,
        "x": 200,
        "y": 1300,
        "wires": [
            [
                "1559804c68fbe227"
            ]
        ]
    },
    {
        "id": "5b96c414fc47da4d",
        "type": "victron-input-battery",
        "z": "d537f36560cb4608",
        "service": "com.victronenergy.battery/513",
        "path": "/System/MinCellVoltage",
        "serviceObj": {
            "service": "com.victronenergy.battery/513",
            "name": "Purple Bank"
        },
        "pathObj": {
            "path": "/System/MinCellVoltage",
            "type": "float",
            "name": "System; minimum cell voltage (V DC)"
        },
        "name": "",
        "onlyChanges": true,
        "x": 210,
        "y": 1360,
        "wires": [
            [
                "b5173e3c87b2bd73"
            ]
        ]
    },
    {
        "id": "4a5fb23c0f1ab5c1",
        "type": "switch",
        "z": "d537f36560cb4608",
        "name": "",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "lt",
                "v": "bat2cvl",
                "vt": "flow"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 1,
        "x": 830,
        "y": 280,
        "wires": [
            [
                "477b0188b6791b06"
            ]
        ]
    },
    {
        "id": "e7b9e3928159bc1a",
        "type": "switch",
        "z": "d537f36560cb4608",
        "name": "",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "lte",
                "v": "bat1cvl",
                "vt": "flow"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 1,
        "x": 830,
        "y": 360,
        "wires": [
            [
                "477b0188b6791b06"
            ]
        ]
    },
    {
        "id": "78572e75a7956139",
        "type": "inject",
        "z": "d537f36560cb4608",
        "name": "",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "1",
        "crontab": "",
        "once": true,
        "onceDelay": "0.5",
        "topic": "",
        "payload": "bat2cvl",
        "payloadType": "flow",
        "x": 690,
        "y": 360,
        "wires": [
            [
                "e7b9e3928159bc1a"
            ]
        ]
    },
    {
        "id": "bdd64539918610ef",
        "type": "inject",
        "z": "d537f36560cb4608",
        "name": "",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "1",
        "crontab": "",
        "once": true,
        "onceDelay": "0.5",
        "topic": "",
        "payload": "bat1cvl",
        "payloadType": "flow",
        "x": 690,
        "y": 280,
        "wires": [
            [
                "4a5fb23c0f1ab5c1"
            ]
        ]
    },
    {
        "id": "402a563d9f21e7fc",
        "type": "victron-input-battery",
        "z": "d537f36560cb4608",
        "service": "com.victronenergy.battery/513",
        "path": "/System/MaxCellVoltage",
        "serviceObj": {
            "service": "com.victronenergy.battery/513",
            "name": "Purple Bank"
        },
        "pathObj": {
            "path": "/System/MaxCellVoltage",
            "type": "float",
            "name": "System; maximum cell voltage (V DC)"
        },
        "name": "",
        "onlyChanges": true,
        "x": 210,
        "y": 1500,
        "wires": [
            [
                "db74094d59421a60"
            ]
        ]
    },
    {
        "id": "9f17414adb5bc846",
        "type": "victron-input-battery",
        "z": "d537f36560cb4608",
        "service": "com.victronenergy.battery/512",
        "path": "/System/MaxCellVoltage",
        "serviceObj": {
            "service": "com.victronenergy.battery/512",
            "name": "Red Bank"
        },
        "pathObj": {
            "path": "/System/MaxCellVoltage",
            "type": "float",
            "name": "System; maximum cell voltage (V DC)"
        },
        "name": "",
        "onlyChanges": true,
        "x": 200,
        "y": 1440,
        "wires": [
            [
                "77cd5f8e46100a76"
            ]
        ]
    },
    {
        "id": "1559804c68fbe227",
        "type": "change",
        "z": "d537f36560cb4608",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "bat1mincl",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 530,
        "y": 1300,
        "wires": [
            []
        ]
    },
    {
        "id": "b5173e3c87b2bd73",
        "type": "change",
        "z": "d537f36560cb4608",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "bat2mincl",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 530,
        "y": 1360,
        "wires": [
            []
        ]
    },
    {
        "id": "77cd5f8e46100a76",
        "type": "change",
        "z": "d537f36560cb4608",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "bat1maxcl",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 530,
        "y": 1440,
        "wires": [
            []
        ]
    },
    {
        "id": "db74094d59421a60",
        "type": "change",
        "z": "d537f36560cb4608",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "bat2maxcl",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 530,
        "y": 1500,
        "wires": [
            []
        ]
    },
    {
        "id": "f7181904dee26dbb",
        "type": "inject",
        "z": "d537f36560cb4608",
        "name": "",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "1",
        "crontab": "",
        "once": true,
        "onceDelay": "0.5",
        "topic": "",
        "payload": "bat1mincl",
        "payloadType": "flow",
        "x": 760,
        "y": 1300,
        "wires": [
            [
                "9ea21b91c9167113"
            ]
        ]
    },
    {
        "id": "9ea21b91c9167113",
        "type": "switch",
        "z": "d537f36560cb4608",
        "name": "",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "lte",
                "v": "bat2mincl",
                "vt": "flow"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 1,
        "x": 910,
        "y": 1300,
        "wires": [
            [
                "df22b4625f31e1e6"
            ]
        ]
    },
    {
        "id": "e5ae6a519bcbd3be",
        "type": "inject",
        "z": "d537f36560cb4608",
        "name": "",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "1",
        "crontab": "",
        "once": true,
        "onceDelay": "0.5",
        "topic": "",
        "payload": "bat2mincl",
        "payloadType": "flow",
        "x": 760,
        "y": 1360,
        "wires": [
            [
                "81eacb4f10223125"
            ]
        ]
    },
    {
        "id": "81eacb4f10223125",
        "type": "switch",
        "z": "d537f36560cb4608",
        "name": "",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "lt",
                "v": "bat1mncl",
                "vt": "flow"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 1,
        "x": 910,
        "y": 1360,
        "wires": [
            [
                "df22b4625f31e1e6"
            ]
        ]
    },
    {
        "id": "d40b2512c5be03d5",
        "type": "inject",
        "z": "d537f36560cb4608",
        "name": "",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "30",
        "crontab": "",
        "once": true,
        "onceDelay": "0.5",
        "topic": "",
        "payload": "bat1maxcl",
        "payloadType": "flow",
        "x": 760,
        "y": 1440,
        "wires": [
            [
                "41289496d6c86cff"
            ]
        ]
    },
    {
        "id": "41289496d6c86cff",
        "type": "switch",
        "z": "d537f36560cb4608",
        "name": "",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "gte",
                "v": "bat2temp",
                "vt": "flow"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 1,
        "x": 910,
        "y": 1440,
        "wires": [
            []
        ]
    },
    {
        "id": "66e56ed56fc13f61",
        "type": "inject",
        "z": "d537f36560cb4608",
        "name": "",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "30",
        "crontab": "",
        "once": true,
        "onceDelay": "0.5",
        "topic": "",
        "payload": "bat2maxcl",
        "payloadType": "flow",
        "x": 760,
        "y": 1500,
        "wires": [
            [
                "f317a00325f6f803"
            ]
        ]
    },
    {
        "id": "f317a00325f6f803",
        "type": "switch",
        "z": "d537f36560cb4608",
        "name": "",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "gt",
                "v": "bat1temp",
                "vt": "flow"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 1,
        "x": 910,
        "y": 1500,
        "wires": [
            []
        ]
    },
    {
        "id": "df22b4625f31e1e6",
        "type": "victron-output-battery",
        "z": "d537f36560cb4608",
        "service": "com.victronenergy.battery/100",
        "path": "/System/MinCellVoltage",
        "serviceObj": {
            "service": "com.victronenergy.battery/100",
            "name": "Battery House"
        },
        "pathObj": {
            "path": "/System/MinCellVoltage",
            "type": "float",
            "name": "System; minimum cell voltage (V DC)"
        },
        "name": "",
        "onlyChanges": false,
        "x": 1240,
        "y": 1320,
        "wires": []
    },
    {
        "id": "477c839f3d57219a",
        "type": "inject",
        "z": "d537f36560cb4608",
        "name": "",
        "props": [
            {
                "p": "bat1ccl",
                "v": "bat1ccl",
                "vt": "flow"
            },
            {
                "p": "bat2ccl",
                "v": "bat2ccl",
                "vt": "flow"
            }
        ],
        "repeat": "1",
        "crontab": "",
        "once": true,
        "onceDelay": "0.5",
        "topic": "",
        "x": 670,
        "y": 120,
        "wires": [
            [
                "04fc570a4d517f79"
            ]
        ]
    },
    {
        "id": "d6491ea8af304936",
        "type": "victron-input-battery",
        "z": "d537f36560cb4608",
        "service": "com.victronenergy.battery/512",
        "path": "/System/MaxVoltageCellId",
        "serviceObj": {
            "service": "com.victronenergy.battery/512",
            "name": "Red Bank"
        },
        "pathObj": {
            "path": "/System/MaxVoltageCellId",
            "type": "string",
            "name": "System; ID of module with highest cell voltage"
        },
        "name": "",
        "onlyChanges": false,
        "x": 230,
        "y": 1580,
        "wires": [
            []
        ]
    },
    {
        "id": "c6df44460c6c6903",
        "type": "switch",
        "z": "d537f36560cb4608",
        "name": "",
        "property": "bat1dcl",
        "propertyType": "flow",
        "rules": [
            {
                "t": "eq",
                "v": "bat2dcl",
                "vt": "flow"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 1,
        "x": 1030,
        "y": 400,
        "wires": [
            []
        ]
    },
    {
        "id": "0feac37bb8f9c424",
        "type": "switch",
        "z": "d537f36560cb4608",
        "name": "",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "gt",
                "v": "bat2dcl",
                "vt": "flow"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 1,
        "x": 850,
        "y": 420,
        "wires": [
            [
                "cf1a9fa9156b3b4e"
            ]
        ]
    },
    {
        "id": "b296d01af0e31c95",
        "type": "inject",
        "z": "d537f36560cb4608",
        "name": "",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "1",
        "crontab": "",
        "once": true,
        "onceDelay": "0.5",
        "topic": "",
        "payload": "bat1dcl",
        "payloadType": "flow",
        "x": 690,
        "y": 420,
        "wires": [
            [
                "0feac37bb8f9c424"
            ]
        ]
    },
    {
        "id": "9274386014dfc3f4",
        "type": "inject",
        "z": "d537f36560cb4608",
        "name": "",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "1",
        "crontab": "",
        "once": true,
        "onceDelay": "0.5",
        "topic": "",
        "payload": "bat2dcl",
        "payloadType": "flow",
        "x": 690,
        "y": 500,
        "wires": [
            [
                "d26792eb31b480b6"
            ]
        ]
    },
    {
        "id": "d26792eb31b480b6",
        "type": "switch",
        "z": "d537f36560cb4608",
        "name": "",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "lt",
                "v": "bat1dcl",
                "vt": "flow"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 1,
        "x": 830,
        "y": 500,
        "wires": [
            [
                "cf1a9fa9156b3b4e"
            ]
        ]
    },
    {
        "id": "1a3d0aa7f3ef9ba2",
        "type": "inject",
        "z": "d537f36560cb4608",
        "name": "",
        "props": [
            {
                "p": "bat1temp",
                "v": "bat1temp",
                "vt": "flow"
            },
            {
                "p": "bat2temp",
                "v": "bat2temp",
                "vt": "flow"
            }
        ],
        "repeat": "1",
        "crontab": "",
        "once": true,
        "onceDelay": "0.5",
        "topic": "",
        "x": 670,
        "y": 1060,
        "wires": [
            [
                "fb4975871e1b39aa"
            ]
        ]
    },
    {
        "id": "fb4975871e1b39aa",
        "type": "function",
        "z": "d537f36560cb4608",
        "name": "Bat DisChar Volt",
        "func": "msg.payload = (msg.bat1temp + msg.bat2temp)/2\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 840,
        "y": 1060,
        "wires": [
            [
                "a85c2c1d960d15de"
            ]
        ]
    },
    {
        "id": "02a92edf22e9edcd",
        "type": "inject",
        "z": "d537f36560cb4608",
        "name": "",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "1",
        "crontab": "",
        "once": true,
        "onceDelay": "0.5",
        "topic": "",
        "payload": "bat1disvolt",
        "payloadType": "flow",
        "x": 700,
        "y": 1140,
        "wires": [
            [
                "abca8e0492b6034c"
            ]
        ]
    },
    {
        "id": "abca8e0492b6034c",
        "type": "switch",
        "z": "d537f36560cb4608",
        "name": "",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "lt",
                "v": "bat2disvolt",
                "vt": "flow"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 1,
        "x": 890,
        "y": 1140,
        "wires": [
            [
                "228d8045234554c3"
            ]
        ]
    },
    {
        "id": "b8a3599e46ebb486",
        "type": "switch",
        "z": "d537f36560cb4608",
        "name": "",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "lte",
                "v": "bat1disvolt",
                "vt": "flow"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 1,
        "x": 890,
        "y": 1220,
        "wires": [
            [
                "228d8045234554c3"
            ]
        ]
    },
    {
        "id": "a33bccc0ed432eea",
        "type": "inject",
        "z": "d537f36560cb4608",
        "name": "",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "1",
        "crontab": "",
        "once": true,
        "onceDelay": "0.5",
        "topic": "",
        "payload": "bat2disvolt",
        "payloadType": "flow",
        "x": 700,
        "y": 1220,
        "wires": [
            [
                "b8a3599e46ebb486"
            ]
        ]
    }
]
1 Like