[ { "id": "89f7750d71a9177b", "type": "tab", "label": "Victron Prevent BMS High Voltage Alarms", "disabled": false, "info": "", "env": [] }, { "id": "a17ee2848f265687", "type": "switch", "z": "89f7750d71a9177b", "name": "gte zero", "property": "payload", "propertyType": "msg", "rules": [ { "t": "gte", "v": "0", "vt": "num" }, { "t": "else" } ], "checkall": "false", "repair": false, "outputs": 2, "x": 460, "y": 260, "wires": [ [ "a20e349e39bf63a9" ], [ "cd12be7cbc01298f" ] ] }, { "id": "a20e349e39bf63a9", "type": "change", "z": "89f7750d71a9177b", "name": "open Gate", "rules": [ { "t": "set", "p": "topic", "pt": "msg", "to": "control", "tot": "str" }, { "t": "set", "p": "payload", "pt": "msg", "to": "open", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 670, "y": 220, "wires": [ [ "ca243c6fc2337004" ] ] }, { "id": "cd12be7cbc01298f", "type": "change", "z": "89f7750d71a9177b", "name": "close Gate", "rules": [ { "t": "set", "p": "topic", "pt": "msg", "to": "control", "tot": "str" }, { "t": "set", "p": "payload", "pt": "msg", "to": "close", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 670, "y": 300, "wires": [ [ "ca243c6fc2337004", "9e0a357adbf886c6", "a6d35e08f1cfbdf7" ] ] }, { "id": "ee51cfa66adf50f1", "type": "debug", "z": "89f7750d71a9177b", "name": "Charger max. Current", "active": true, "tosidebar": false, "console": false, "tostatus": true, "complete": "true", "targetType": "full", "statusVal": "payload", "statusType": "auto", "x": 680, "y": 580, "wires": [] }, { "id": "e5a1a9c7b6848fbd", "type": "change", "z": "89f7750d71a9177b", "name": "V to mV", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "$number($.payload * 1000)", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1240, "y": 100, "wires": [ [ "17fb93fc46ec7b51" ] ] }, { "id": "e57269c53d0baeb6", "type": "debug", "z": "89f7750d71a9177b", "name": "max Cell_Diff (mV)", "active": true, "tosidebar": false, "console": false, "tostatus": true, "complete": "true", "targetType": "full", "statusVal": "payload", "statusType": "auto", "x": 1790, "y": 100, "wires": [] }, { "id": "8dfea953302fd34b", "type": "change", "z": "89f7750d71a9177b", "name": "set max Charge-Current 8A", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "8", "tot": "num" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1820, "y": 360, "wires": [ [ "0440040bc7acb15e" ] ] }, { "id": "75b9278a07996a74", "type": "change", "z": "89f7750d71a9177b", "name": "set max Charge-Current 100A", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "100", "tot": "num" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1830, "y": 480, "wires": [ [ "0440040bc7acb15e" ] ] }, { "id": "a6d35e08f1cfbdf7", "type": "change", "z": "89f7750d71a9177b", "name": "disable max Charge-Current", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "-1", "tot": "num" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1820, "y": 180, "wires": [ [ "0440040bc7acb15e" ] ] }, { "id": "254b63c227764789", "type": "change", "z": "89f7750d71a9177b", "name": "set max Charge-Current 25A", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "25", "tot": "num" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1820, "y": 420, "wires": [ [ "0440040bc7acb15e" ] ] }, { "id": "3b672b66a86668cd", "type": "switch", "z": "89f7750d71a9177b", "name": "switch", "property": "payload", "propertyType": "msg", "rules": [ { "t": "lte", "v": "21", "vt": "num" }, { "t": "btwn", "v": "22", "vt": "num", "v2": "48", "v2t": "num" }, { "t": "btwn", "v": "49", "vt": "num", "v2": "99", "v2t": "num" }, { "t": "gt", "v": "100", "vt": "num" }, { "t": "else" } ], "checkall": "true", "repair": false, "outputs": 5, "x": 1530, "y": 320, "wires": [ [ "a6d35e08f1cfbdf7" ], [ "75b9278a07996a74" ], [ "8dfea953302fd34b" ], [ "f907f0a692ea56ac" ], [ "254b63c227764789" ] ] }, { "id": "9d3e1ebe170f752a", "type": "debug", "z": "89f7750d71a9177b", "name": "BMS Current (A)", "active": true, "tosidebar": false, "console": false, "tostatus": true, "complete": "true", "targetType": "full", "statusVal": "payload", "statusType": "auto", "x": 480, "y": 320, "wires": [] }, { "id": "0440040bc7acb15e", "type": "rbe", "z": "89f7750d71a9177b", "name": "", "func": "rbe", "gap": "", "start": "", "inout": "out", "septopics": false, "property": "payload", "topi": "topic", "x": 2070, "y": 320, "wires": [ [ "11d63f595b6fdbe8", "298de82b2390e03b" ] ] }, { "id": "f907f0a692ea56ac", "type": "change", "z": "89f7750d71a9177b", "name": "set max Charge-Current 1A", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "1", "tot": "num" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1820, "y": 300, "wires": [ [ "0440040bc7acb15e" ] ] }, { "id": "c9578d5c3468f8ad", "type": "debug", "z": "89f7750d71a9177b", "name": "BMS MaxCellV", "active": true, "tosidebar": false, "console": false, "tostatus": true, "complete": "true", "targetType": "full", "statusVal": "payload", "statusType": "auto", "x": 660, "y": 160, "wires": [] }, { "id": "282f9250cb697ec4", "type": "switch", "z": "89f7750d71a9177b", "name": "gt 3.55V", "property": "payload", "propertyType": "msg", "rules": [ { "t": "gt", "v": "3.55", "vt": "num" }, { "t": "else" } ], "checkall": "true", "repair": false, "outputs": 2, "x": 640, "y": 100, "wires": [ [ "155fdbeb0bb2bf3e" ], [ "ac88bf77e5eb9f1f" ] ] }, { "id": "a322585c77d164a3", "type": "change", "z": "89f7750d71a9177b", "name": "set max Charge-Current 0A", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "0", "tot": "num" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1820, "y": 240, "wires": [ [ "0440040bc7acb15e" ] ] }, { "id": "ac88bf77e5eb9f1f", "type": "change", "z": "89f7750d71a9177b", "name": "open Gate", "rules": [ { "t": "set", "p": "topic", "pt": "msg", "to": "control", "tot": "str" }, { "t": "set", "p": "payload", "pt": "msg", "to": "open", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 850, "y": 140, "wires": [ [ "baeff2f0c2f6f28f" ] ] }, { "id": "155fdbeb0bb2bf3e", "type": "change", "z": "89f7750d71a9177b", "name": "close Gate", "rules": [ { "t": "set", "p": "topic", "pt": "msg", "to": "control", "tot": "str" }, { "t": "set", "p": "payload", "pt": "msg", "to": "close", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 850, "y": 60, "wires": [ [ "baeff2f0c2f6f28f", "9e0a357adbf886c6", "a322585c77d164a3" ] ] }, { "id": "9e0a357adbf886c6", "type": "change", "z": "89f7750d71a9177b", "name": "reset", "rules": [ { "t": "set", "p": "reset", "pt": "msg", "to": "true", "tot": "bool" }, { "t": "delete", "p": "payload", "pt": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1050, "y": 40, "wires": [ [ "17fb93fc46ec7b51" ] ] }, { "id": "68f9edfacebde5d3", "type": "inject", "z": "89f7750d71a9177b", "name": "set -1 (disable max. charge current)", "props": [ { "p": "payload" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "-1", "payloadType": "num", "x": 2340, "y": 240, "wires": [ [ "298de82b2390e03b" ] ] }, { "id": "11d63f595b6fdbe8", "type": "debug", "z": "89f7750d71a9177b", "name": "Charger max. Current", "active": true, "tosidebar": false, "console": false, "tostatus": true, "complete": "true", "targetType": "full", "statusVal": "payload", "statusType": "auto", "x": 2300, "y": 400, "wires": [] }, { "id": "cb85f637700a199b", "type": "victron-input-battery", "z": "89f7750d71a9177b", "service": "com.victronenergy.battery/512", "path": "/System/MaxCellVoltage", "serviceObj": { "service": "com.victronenergy.battery/512", "name": "Pylontech battery" }, "pathObj": { "path": "/System/MaxCellVoltage", "type": "float", "name": "System; maximum cell voltage (V DC)" }, "name": "", "onlyChanges": true, "roundValues": "2", "x": 290, "y": 100, "wires": [ [ "282f9250cb697ec4", "c9578d5c3468f8ad" ] ] }, { "id": "7edaacbab8c084b6", "type": "victron-input-battery", "z": "89f7750d71a9177b", "service": "com.victronenergy.battery/512", "path": "/Dc/0/Current", "serviceObj": { "service": "com.victronenergy.battery/512", "name": "Pylontech battery" }, "pathObj": { "path": "/Dc/0/Current", "type": "float", "name": "Current (A)" }, "name": "", "onlyChanges": true, "roundValues": "0", "x": 200, "y": 260, "wires": [ [ "a17ee2848f265687", "9d3e1ebe170f752a" ] ] }, { "id": "f7f74c9bc28a5bf8", "type": "victron-input-ess", "z": "89f7750d71a9177b", "service": "com.victronenergy.settings", "path": "/Settings/SystemSetup/MaxChargeCurrent", "serviceObj": { "service": "com.victronenergy.settings", "name": "Venus settings" }, "pathObj": { "path": "/Settings/SystemSetup/MaxChargeCurrent", "type": "float", "name": "DVCC Charge current limit (A)" }, "name": "", "onlyChanges": true, "x": 260, "y": 580, "wires": [ [ "ee51cfa66adf50f1" ] ] }, { "id": "298de82b2390e03b", "type": "victron-output-ess", "z": "89f7750d71a9177b", "service": "com.victronenergy.settings", "path": "/Settings/SystemSetup/MaxChargeCurrent", "serviceObj": { "service": "com.victronenergy.settings", "name": "Venus settings" }, "pathObj": { "path": "/Settings/SystemSetup/MaxChargeCurrent", "type": "float", "name": "Charge current limit (A)", "writable": true }, "name": "", "onlyChanges": false, "x": 2360, "y": 320, "wires": [] }, { "id": "ca243c6fc2337004", "type": "gate", "z": "89f7750d71a9177b", "name": "", "controlTopic": "control", "defaultState": "closed", "openCmd": "open", "closeCmd": "close", "toggleCmd": "toggle", "defaultCmd": "default", "statusCmd": "status", "persist": false, "storeName": "memory", "x": 1050, "y": 220, "wires": [ [ "baeff2f0c2f6f28f" ] ] }, { "id": "baeff2f0c2f6f28f", "type": "gate", "z": "89f7750d71a9177b", "name": "", "controlTopic": "control", "defaultState": "closed", "openCmd": "open", "closeCmd": "close", "toggleCmd": "toggle", "defaultCmd": "default", "statusCmd": "status", "persist": false, "storeName": "memory", "x": 1050, "y": 100, "wires": [ [ "e5a1a9c7b6848fbd" ] ] }, { "id": "17fb93fc46ec7b51", "type": "smooth", "z": "89f7750d71a9177b", "name": "max out of next 10 samples", "property": "payload", "action": "max", "count": "10", "round": "", "mult": "single", "reduce": true, "x": 1500, "y": 100, "wires": [ [ "3b672b66a86668cd", "e57269c53d0baeb6" ] ] }, { "id": "471feabb2625f4c2", "type": "change", "z": "89f7750d71a9177b", "name": "", "rules": [ { "t": "set", "p": "BMSMaxCellV", "pt": "flow", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 690, "y": 420, "wires": [ [ "51f030e4c87ae060" ] ] }, { "id": "98e890f55f4b2013", "type": "change", "z": "89f7750d71a9177b", "name": "", "rules": [ { "t": "set", "p": "BMSMinCellV", "pt": "flow", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 690, "y": 500, "wires": [ [ "51f030e4c87ae060" ] ] }, { "id": "51f030e4c87ae060", "type": "change", "z": "89f7750d71a9177b", "name": "", "rules": [ { "t": "set", "p": "Vmin", "pt": "msg", "to": "BMSMinCellV", "tot": "flow" }, { "t": "set", "p": "Vmax", "pt": "msg", "to": "BMSMaxCellV", "tot": "flow" }, { "t": "set", "p": "payload", "pt": "msg", "to": "$round(($.Vmax - $.Vmin), 3)", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 930, "y": 460, "wires": [ [ "ad2cdcf0a04b7ba2", "ca243c6fc2337004" ] ] }, { "id": "ad2cdcf0a04b7ba2", "type": "debug", "z": "89f7750d71a9177b", "name": "BMS VdiffCells", "active": true, "tosidebar": false, "console": false, "tostatus": true, "complete": "true", "targetType": "full", "statusVal": "payload", "statusType": "auto", "x": 1200, "y": 460, "wires": [] }, { "id": "408ec88949c8afd9", "type": "victron-input-battery", "z": "89f7750d71a9177b", "service": "com.victronenergy.battery/512", "path": "/System/MaxCellVoltage", "serviceObj": { "service": "com.victronenergy.battery/512", "name": "Pylontech battery" }, "pathObj": { "path": "/System/MaxCellVoltage", "type": "float", "name": "System; maximum cell voltage (V DC)" }, "name": "", "onlyChanges": true, "roundValues": "3", "x": 290, "y": 420, "wires": [ [ "471feabb2625f4c2" ] ] }, { "id": "f066dc100b503aae", "type": "victron-input-battery", "z": "89f7750d71a9177b", "service": "com.victronenergy.battery/512", "path": "/System/MinCellVoltage", "serviceObj": { "service": "com.victronenergy.battery/512", "name": "Pylontech battery" }, "pathObj": { "path": "/System/MinCellVoltage", "type": "float", "name": "System; minimum cell voltage (V DC)" }, "name": "", "onlyChanges": true, "roundValues": "3", "x": 290, "y": 500, "wires": [ [ "98e890f55f4b2013" ] ] } ]