[ { "id": "89f2cf526168aea6", "type": "tab", "label": "Tank - Pump Control", "disabled": false, "info": "", "env": [] }, { "id": "82a0ae39179ee6a2", "type": "junction", "z": "89f2cf526168aea6", "x": 1380, "y": 1080, "wires": [ [ "1bc7109f94a760fd" ] ] }, { "id": "1bc7109f94a760fd", "type": "junction", "z": "89f2cf526168aea6", "x": 1620, "y": 1080, "wires": [ [ "6a2f950c2170dc71" ] ] }, { "id": "110dc4f1d5ea44fc", "type": "junction", "z": "89f2cf526168aea6", "x": 920, "y": 1160, "wires": [ [ "b87eb2f4503490e2" ] ] }, { "id": "b87eb2f4503490e2", "type": "junction", "z": "89f2cf526168aea6", "x": 1140, "y": 1160, "wires": [ [ "feb4f77508b22c75" ] ] }, { "id": "feb4f77508b22c75", "type": "junction", "z": "89f2cf526168aea6", "x": 1620, "y": 1160, "wires": [ [ "6a2f950c2170dc71" ] ] }, { "id": "4838f8f822b7f6ea", "type": "junction", "z": "89f2cf526168aea6", "x": 600, "y": 520, "wires": [ [ "7492a18766da8c1f" ] ] }, { "id": "c19e1dd0b37edbcd", "type": "junction", "z": "89f2cf526168aea6", "x": 600, "y": 620, "wires": [ [ "e5e7b730df03766b" ] ] }, { "id": "a4b7e16b946eb984", "type": "victron-input-tank", "z": "89f2cf526168aea6", "service": "com.victronenergy.tank/20", "path": "/Level", "serviceObj": { "service": "com.victronenergy.tank/20", "name": "Black Water" }, "pathObj": { "path": "/Level", "type": "float", "name": "Tank level (%)" }, "name": "", "onlyChanges": false, "x": 460, "y": 760, "wires": [ [ "cb69d0e591e418cb" ] ] }, { "id": "399f9749d4575fd6", "type": "victron-input-tank", "z": "89f2cf526168aea6", "service": "com.victronenergy.tank/21", "path": "/Level", "serviceObj": { "service": "com.victronenergy.tank/21", "name": "Grey Water" }, "pathObj": { "path": "/Level", "type": "float", "name": "Tank level (%)" }, "name": "", "onlyChanges": false, "x": 450, "y": 820, "wires": [ [ "e700b9d64894e987" ] ] }, { "id": "ea7821c3f4273744", "type": "victron-input-tank", "z": "89f2cf526168aea6", "service": "com.victronenergy.tank/22", "path": "/Level", "serviceObj": { "service": "com.victronenergy.tank/22", "name": "Fresh Water Left" }, "pathObj": { "path": "/Level", "type": "float", "name": "Tank level (%)" }, "name": "", "onlyChanges": false, "x": 470, "y": 880, "wires": [ [ "7492a18766da8c1f" ] ] }, { "id": "7be66de4a80f9922", "type": "victron-input-tank", "z": "89f2cf526168aea6", "service": "com.victronenergy.tank/23", "path": "/Level", "serviceObj": { "service": "com.victronenergy.tank/23", "name": "Fresh Water Right" }, "pathObj": { "path": "/Level", "type": "float", "name": "Tank level (%)" }, "name": "", "onlyChanges": false, "x": 480, "y": 940, "wires": [ [ "e5e7b730df03766b" ] ] }, { "id": "f6330b251c0cc890", "type": "change", "z": "89f2cf526168aea6", "name": "Set GC Tank.Black", "rules": [ { "t": "set", "p": "Tank.Black", "pt": "global", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1070, "y": 760, "wires": [ [] ] }, { "id": "cb69d0e591e418cb", "type": "switch", "z": "89f2cf526168aea6", "name": "", "property": "payload", "propertyType": "msg", "rules": [ { "t": "nnull" }, { "t": "null" } ], "checkall": "true", "repair": false, "outputs": 2, "x": 750, "y": 760, "wires": [ [ "f6330b251c0cc890" ], [] ], "outputLabels": [ "Black Water Level", "Black Water Fault" ] }, { "id": "a3507b14c7618c71", "type": "comment", "z": "89f2cf526168aea6", "name": "Requirements", "info": "\nWhen one or both of the waste water tanks reach 90% or more I want to switch the cerbo relay 1 on. When one or both of the freshwater tanks reach 5% or less I want to switch the cerbo relay 1 on. So the waterpump doesn't overfill the tanks or is running dry.\n\nWhen all of the tanksensor are within the limits, waste water 0-90% and freshwater 5-100%, the relay should be off and the pump should be able to run.", "x": 410, "y": 700, "wires": [] }, { "id": "6a8711e07df0d4d7", "type": "change", "z": "89f2cf526168aea6", "name": "Set GC Tank.Grey", "rules": [ { "t": "set", "p": "Tank.Grey", "pt": "global", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1070, "y": 820, "wires": [ [] ] }, { "id": "e700b9d64894e987", "type": "switch", "z": "89f2cf526168aea6", "name": "", "property": "payload", "propertyType": "msg", "rules": [ { "t": "nnull" }, { "t": "null" } ], "checkall": "true", "repair": false, "outputs": 2, "x": 750, "y": 820, "wires": [ [ "6a8711e07df0d4d7" ], [] ], "outputLabels": [ "Black Water Level", "Black Water Fault" ] }, { "id": "ddebd6ecaee71c31", "type": "change", "z": "89f2cf526168aea6", "name": "Set GC Tank.Fresh_L", "rules": [ { "t": "set", "p": "Tank.Fresh_L", "pt": "global", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1080, "y": 880, "wires": [ [] ] }, { "id": "7492a18766da8c1f", "type": "switch", "z": "89f2cf526168aea6", "name": "", "property": "payload", "propertyType": "msg", "rules": [ { "t": "nnull" }, { "t": "null" } ], "checkall": "true", "repair": false, "outputs": 2, "x": 750, "y": 880, "wires": [ [ "ddebd6ecaee71c31" ], [] ], "outputLabels": [ "Black Water Level", "Black Water Fault" ] }, { "id": "53b4a30eab80c4c8", "type": "change", "z": "89f2cf526168aea6", "name": "Set GC Tank.Fresh_R", "rules": [ { "t": "set", "p": "Tank.Fresh_R", "pt": "global", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1080, "y": 940, "wires": [ [] ] }, { "id": "e5e7b730df03766b", "type": "switch", "z": "89f2cf526168aea6", "name": "", "property": "payload", "propertyType": "msg", "rules": [ { "t": "nnull" }, { "t": "null" } ], "checkall": "true", "repair": false, "outputs": 2, "x": 750, "y": 940, "wires": [ [ "53b4a30eab80c4c8" ], [] ], "outputLabels": [ "Black Water Level", "Black Water Fault" ] }, { "id": "2d8555ea5aba042d", "type": "inject", "z": "89f2cf526168aea6", "name": "", "props": [ { "p": "payload" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "50", "payloadType": "num", "x": 510, "y": 340, "wires": [ [ "cb69d0e591e418cb", "e700b9d64894e987", "7492a18766da8c1f", "e5e7b730df03766b" ] ] }, { "id": "ff2a28178227af91", "type": "inject", "z": "89f2cf526168aea6", "name": "", "props": [ { "p": "payload" }, { "p": "topic", "vt": "str" } ], "repeat": "2", "crontab": "", "once": true, "onceDelay": "5", "topic": "Trigger", "payload": "", "payloadType": "date", "x": 430, "y": 1120, "wires": [ [ "e2e4694be0870e2a" ] ] }, { "id": "e2e4694be0870e2a", "type": "switch", "z": "89f2cf526168aea6", "name": "Check Tank.Black", "property": "Tank.Black", "propertyType": "global", "rules": [ { "t": "lt", "v": "90", "vt": "str" }, { "t": "else" } ], "checkall": "false", "repair": false, "outputs": 2, "x": 790, "y": 1120, "wires": [ [ "209ebff3e46e1e15" ], [ "110dc4f1d5ea44fc", "b3a6f4b02d577834" ] ], "outputLabels": [ "Tank OK", "Tank Out of limits" ] }, { "id": "209ebff3e46e1e15", "type": "switch", "z": "89f2cf526168aea6", "name": "Check Tank.Grey", "property": "Tank.Grey", "propertyType": "global", "rules": [ { "t": "lt", "v": "90", "vt": "str" }, { "t": "else" } ], "checkall": "false", "repair": false, "outputs": 2, "x": 1010, "y": 1120, "wires": [ [ "74d22ffa3567f223" ], [ "b87eb2f4503490e2", "bddd6e9442267995" ] ], "outputLabels": [ "Tank OK", "Tank Out of limits" ] }, { "id": "74d22ffa3567f223", "type": "switch", "z": "89f2cf526168aea6", "name": "Check Tank.Fresh_L", "property": "Tank.Fresh_L", "propertyType": "global", "rules": [ { "t": "gte", "v": "90", "vt": "num" }, { "t": "lte", "v": "5", "vt": "num" }, { "t": "else" } ], "checkall": "false", "repair": false, "outputs": 3, "x": 1240, "y": 1120, "wires": [ [ "82a0ae39179ee6a2" ], [ "82a0ae39179ee6a2" ], [ "00dde239c372d633" ] ], "outputLabels": [ "Tank High", "Tank Low", "Tank OK" ] }, { "id": "00dde239c372d633", "type": "switch", "z": "89f2cf526168aea6", "name": "Check Tank.Fresh_R", "property": "Tank.Fresh_R", "propertyType": "global", "rules": [ { "t": "gte", "v": "90", "vt": "num" }, { "t": "lte", "v": "5", "vt": "num" }, { "t": "else" } ], "checkall": "false", "repair": false, "outputs": 3, "x": 1480, "y": 1120, "wires": [ [ "1bc7109f94a760fd" ], [ "1bc7109f94a760fd" ], [ "0e8501a73408e693" ] ], "outputLabels": [ "Tank High", "Tank Low", "Tank OK" ] }, { "id": "0e8501a73408e693", "type": "change", "z": "89f2cf526168aea6", "name": "Set Pump Off", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "0", "tot": "num" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1740, "y": 1140, "wires": [ [ "7ca384baca447be3" ] ] }, { "id": "7ca384baca447be3", "type": "victron-output-relay", "z": "89f2cf526168aea6", "service": "com.victronenergy.system/0", "path": "/Relay/1/State", "serviceObj": { "service": "com.victronenergy.system/0", "name": "Venus device" }, "pathObj": { "path": "/Relay/1/State", "type": "enum", "name": "Venus relay 2 state", "enum": { "0": "Open", "1": "Closed" }, "writable": true }, "initial": "0", "name": "Tank Punp Relay", "onlyChanges": false, "x": 1950, "y": 1120, "wires": [] }, { "id": "29825b3edb9da362", "type": "inject", "z": "89f2cf526168aea6", "name": "", "props": [ { "p": "payload" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "5", "payloadType": "num", "x": 510, "y": 540, "wires": [ [ "4838f8f822b7f6ea" ] ] }, { "id": "9a1b9e5b0819a427", "type": "inject", "z": "89f2cf526168aea6", "name": "", "props": [ { "p": "payload" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "90", "payloadType": "num", "x": 510, "y": 400, "wires": [ [ "cb69d0e591e418cb" ] ] }, { "id": "e4243a0c24323de9", "type": "inject", "z": "89f2cf526168aea6", "name": "", "props": [ { "p": "payload" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "90", "payloadType": "num", "x": 510, "y": 500, "wires": [ [ "4838f8f822b7f6ea" ] ] }, { "id": "8aee4fb98ef8440a", "type": "victron-input-relay", "z": "89f2cf526168aea6", "service": "com.victronenergy.system/0", "path": "/Relay/1/State", "serviceObj": { "service": "com.victronenergy.system/0", "name": "Venus system" }, "pathObj": { "path": "/Relay/1/State", "type": "enum", "name": "Venus relay 2 state", "enum": { "0": "Open", "1": "Closed" } }, "initial": "", "name": "", "onlyChanges": false, "x": 460, "y": 1260, "wires": [ [ "4ae46cf40c05520e" ] ] }, { "id": "4ae46cf40c05520e", "type": "debug", "z": "89f2cf526168aea6", "name": "debug 82", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "x": 760, "y": 1260, "wires": [] }, { "id": "6a2f950c2170dc71", "type": "change", "z": "89f2cf526168aea6", "name": "Set Pump On", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "1", "tot": "num" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1740, "y": 1100, "wires": [ [ "7ca384baca447be3" ] ] }, { "id": "1fe4aab41ff4f903", "type": "inject", "z": "89f2cf526168aea6", "name": "", "props": [ { "p": "payload" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "90", "payloadType": "num", "x": 510, "y": 440, "wires": [ [ "e700b9d64894e987" ] ] }, { "id": "4a32695f1737413c", "type": "inject", "z": "89f2cf526168aea6", "name": "", "props": [ { "p": "payload" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "5", "payloadType": "num", "x": 510, "y": 640, "wires": [ [ "c19e1dd0b37edbcd" ] ] }, { "id": "1b27117043547287", "type": "inject", "z": "89f2cf526168aea6", "name": "", "props": [ { "p": "payload" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "90", "payloadType": "num", "x": 510, "y": 600, "wires": [ [ "c19e1dd0b37edbcd" ] ] }, { "id": "2b1fadd75dd643c3", "type": "comment", "z": "89f2cf526168aea6", "name": "Just for testing / debugging", "info": "", "x": 430, "y": 1220, "wires": [] }, { "id": "d241d4b0c3c540c0", "type": "comment", "z": "89f2cf526168aea6", "name": "Remove these injects when done testing", "info": "", "x": 420, "y": 280, "wires": [] }, { "id": "0727d63dd8a398a1", "type": "comment", "z": "89f2cf526168aea6", "name": "All", "info": "", "x": 310, "y": 340, "wires": [] }, { "id": "afc64293d328c1bd", "type": "comment", "z": "89f2cf526168aea6", "name": "Black", "info": "", "x": 310, "y": 400, "wires": [] }, { "id": "6569e9e7f1e9b599", "type": "comment", "z": "89f2cf526168aea6", "name": "Grey", "info": "", "x": 310, "y": 440, "wires": [] }, { "id": "4d0e7d1d87d134e7", "type": "comment", "z": "89f2cf526168aea6", "name": "Fresh Left", "info": "", "x": 320, "y": 520, "wires": [] }, { "id": "27f530f562f4ddf1", "type": "comment", "z": "89f2cf526168aea6", "name": "Fresh Right", "info": "", "x": 330, "y": 620, "wires": [] }, { "id": "3d2309bc0ce6fbf6", "type": "comment", "z": "89f2cf526168aea6", "name": "Disconnected sensor detect", "info": "", "x": 820, "y": 700, "wires": [] }, { "id": "0f5a79a4e45b3be0", "type": "comment", "z": "89f2cf526168aea6", "name": "Create/Set Global Context Vars", "info": "", "x": 1110, "y": 700, "wires": [] }, { "id": "d532c91ee44c3aa3", "type": "comment", "z": "89f2cf526168aea6", "name": "Trigger a message every few seconds", "info": "", "x": 470, "y": 1040, "wires": [] }, { "id": "69be0972bfdab509", "type": "comment", "z": "89f2cf526168aea6", "name": "Use it to check levels and rout the message accordingly", "info": "", "x": 900, "y": 1040, "wires": [] }, { "id": "ef427f9c5cfd106a", "type": "comment", "z": "89f2cf526168aea6", "name": "Set the relay state based on where the message originated", "info": "", "x": 1830, "y": 1040, "wires": [] }, { "id": "b3a6f4b02d577834", "type": "debug", "z": "89f2cf526168aea6", "name": "debug 83", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "x": 980, "y": 1260, "wires": [] }, { "id": "bddd6e9442267995", "type": "debug", "z": "89f2cf526168aea6", "name": "debug 84", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "x": 1200, "y": 1260, "wires": [] } ]