[ { "id": "e49a35fb53bc54a7", "type": "tab", "label": "Injection ou pas", "disabled": false, "info": "", "env": [] }, { "id": "6850ff4dbf53201f", "type": "victron-input-vebus", "z": "e49a35fb53bc54a7", "service": "com.victronenergy.vebus/276", "path": "/Mode", "serviceObj": { "service": "com.victronenergy.vebus/276", "name": "MultiPlus" }, "pathObj": { "path": "/Mode", "type": "enum", "name": "Switch Position", "enum": { "1": "Charger Only", "2": "Inverter Only", "3": "On", "4": "Off" } }, "initial": "", "name": "", "onlyChanges": true, "x": 150, "y": 60, "wires": [ [ "a0cff02f3efc06a1" ] ] }, { "id": "a0cff02f3efc06a1", "type": "function", "z": "e49a35fb53bc54a7", "name": "Conversion", "func": "var input = msg.payload;\nvar output = '';\n\nswitch (input) {\n case 1:\n output = 'Charger Only';\n break;\n case 2:\n output = 'Inverter Only';\n break;\n case 3:\n output = 'On';\n break;\n case 4:\n output = 'Off';\n break;\n default:\n output = 'Valeur non valide';\n}\n\nmsg.payload = output;\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "x": 390, "y": 60, "wires": [ [ "427daa65874009b0" ] ] }, { "id": "427daa65874009b0", "type": "ui_text", "z": "e49a35fb53bc54a7", "group": "d2556f2f.52e94", "order": 3, "width": 0, "height": 0, "name": "", "label": "État actuel Switch Virtuel MP : ", "format": "{{msg.payload}}", "layout": "row-left", "className": "", "x": 630, "y": 60, "wires": [] }, { "id": "b04beefb2a197a99", "type": "victron-input-ess", "z": "e49a35fb53bc54a7", "service": "com.victronenergy.vebus/276", "path": "/Hub4/L1/MaxFeedInPower", "serviceObj": { "service": "com.victronenergy.vebus/276", "name": "MultiPlus" }, "pathObj": { "path": "/Hub4/L1/MaxFeedInPower", "type": "integer", "name": "Maximum overvoltage feed-in power L1 (W)" }, "initial": "", "name": "", "onlyChanges": true, "x": 240, "y": 1160, "wires": [ [ "7ad9597c55611444" ] ] }, { "id": "7ad9597c55611444", "type": "ui_gauge", "z": "e49a35fb53bc54a7", "name": "", "group": "d2556f2f.52e94", "order": 9, "width": 0, "height": 0, "gtype": "gage", "title": "Max Feed IN permis", "label": "Watts", "format": "{{value}}", "min": 0, "max": "2000", "colors": [ "#00b500", "#e6e600", "#ca3838" ], "seg1": "1001", "seg2": "1700", "diff": false, "className": "", "x": 620, "y": 1160, "wires": [] }, { "id": "c9af890574432dec", "type": "victron-output-vebus", "z": "e49a35fb53bc54a7", "service": "com.victronenergy.vebus/276", "path": "/Mode", "serviceObj": { "service": "com.victronenergy.vebus/276", "name": "MultiPlus" }, "pathObj": { "path": "/Mode", "type": "enum", "name": "Switch Position", "remarks": "

Note that /ModeIsAdjustable needs to be set to 1.

", "enum": { "1": "Charger Only", "2": "Inverter Only", "3": "On", "4": "Off" }, "writable": true }, "initial": "", "name": "", "onlyChanges": false, "x": 1430, "y": 820, "wires": [] }, { "id": "fba5ab92c8533551", "type": "inject", "z": "e49a35fb53bc54a7", "d": true, "name": "Force Mode Inverter Only heure X", "props": [ { "p": "payload" } ], "repeat": "", "crontab": "00 15 * * *", "once": false, "onceDelay": 0.1, "topic": "", "payload": "2", "payloadType": "num", "x": 640, "y": 940, "wires": [ [ "47802304304bbf28" ] ], "info": "permet à la fin de la journée de ne pas rester connecté à Hydro-Québec" }, { "id": "9d411f7476514f97", "type": "inject", "z": "e49a35fb53bc54a7", "d": true, "name": "Force Mode On, permet Injection si possible heure X", "props": [ { "p": "payload" } ], "repeat": "", "crontab": "30 10 * * *", "once": false, "onceDelay": 0.1, "topic": "", "payload": "3", "payloadType": "num", "x": 600, "y": 880, "wires": [ [ "7d4bab604f94ddee" ] ], "info": "a partir de quelle heure ma batterie est pas pire chargé, ce qui me permet donc d'injecter dans mon panneau électrique" }, { "id": "a4b49fb51000115b", "type": "victron-input-vebus", "z": "e49a35fb53bc54a7", "service": "com.victronenergy.vebus/276", "path": "/State", "serviceObj": { "service": "com.victronenergy.vebus/276", "name": "MultiPlus" }, "pathObj": { "path": "/State", "type": "enum", "name": "VE.Bus state", "enum": { "0": "Off", "1": "Low Power", "2": "Fault", "3": "Bulk", "4": "Absorption", "5": "Float", "6": "Storage", "7": "Equalize", "8": "Passthru", "9": "Inverting", "10": "Power assist", "11": "Power supply", "252": "External control" } }, "initial": "", "name": "", "onlyChanges": false, "x": 140, "y": 200, "wires": [ [ "97c23d7f3840aa35", "94039aafc8f25377" ] ] }, { "id": "97c23d7f3840aa35", "type": "ui_text", "z": "e49a35fb53bc54a7", "group": "d2556f2f.52e94", "order": 6, "width": 0, "height": 0, "name": "", "label": "VE.Bus state 9-Inverting 5-Float 4-Abs 3-Bulk", "format": "{{msg.payload}}", "layout": "row-spread", "className": "", "x": 550, "y": 180, "wires": [] }, { "id": "cd95282df8796cd8", "type": "ui_text", "z": "e49a35fb53bc54a7", "group": "d2556f2f.52e94", "order": 7, "width": 0, "height": 0, "name": "", "label": "Injection possible?", "format": "{{payload}}", "layout": "row-center", "className": "", "x": 990, "y": 280, "wires": [] }, { "id": "94039aafc8f25377", "type": "switch", "z": "e49a35fb53bc54a7", "name": "Injection possible?", "property": "payload", "propertyType": "msg", "rules": [ { "t": "eq", "v": "4", "vt": "num" }, { "t": "eq", "v": "5", "vt": "num" }, { "t": "neq", "v": "5", "vt": "num" } ], "checkall": "false", "repair": false, "outputs": 3, "x": 470, "y": 280, "wires": [ [ "2865476e916099bf" ], [ "9123cc7e82766c9b" ], [ "8b19e94a1c7ce4fd" ] ], "outputLabels": [ "oui", "oui", "non" ] }, { "id": "9123cc7e82766c9b", "type": "change", "z": "e49a35fb53bc54a7", "name": "Change a oui", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "oui", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 730, "y": 280, "wires": [ [ "cd95282df8796cd8" ] ] }, { "id": "8b19e94a1c7ce4fd", "type": "change", "z": "e49a35fb53bc54a7", "name": "Change a non", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "non", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 740, "y": 320, "wires": [ [ "cd95282df8796cd8" ] ] }, { "id": "2865476e916099bf", "type": "change", "z": "e49a35fb53bc54a7", "name": "Change a peut-être", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "peut-être", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 750, "y": 240, "wires": [ [ "cd95282df8796cd8" ] ] }, { "id": "a306df2c030606d0", "type": "victron-output-ess", "z": "e49a35fb53bc54a7", "service": "com.victronenergy.settings", "path": "/Settings/CGwacs/MaxFeedInPower", "serviceObj": { "service": "com.victronenergy.settings", "name": "Venus settings" }, "pathObj": { "path": "/Settings/CGwacs/MaxFeedInPower", "type": "integer", "name": "Maximum System Grid Feed In (W)", "remarks": "

Applies to DC-coupled and AC-coupled feed-in.

", "writable": true }, "name": "", "onlyChanges": false, "x": 1830, "y": 1000, "wires": [] }, { "id": "3bdee9be74bcd426", "type": "ui_text_input", "z": "e49a35fb53bc54a7", "name": "", "label": "Max Feed IN désiré du surplus solaire", "tooltip": "+W que je voudrais qui soient injectés si le système considère qu'il peut injecter, donc batterie suffisament chargé. Valeur positive seulement", "group": "d2556f2f.52e94", "order": 8, "width": 0, "height": 0, "passthru": true, "mode": "number", "delay": "0", "topic": "topic", "sendOnBlur": true, "className": "", "topicType": "msg", "x": 1450, "y": 1000, "wires": [ [ "a306df2c030606d0" ] ] }, { "id": "146268ba0b630ce7", "type": "inject", "z": "e49a35fb53bc54a7", "name": "Max Feed In après reboot Cerbo or Deploy", "props": [ { "p": "payload" } ], "repeat": "", "crontab": "", "once": true, "onceDelay": 0.1, "topic": "", "payload": "0", "payloadType": "num", "x": 1070, "y": 1000, "wires": [ [ "3bdee9be74bcd426" ] ] }, { "id": "11077815d66b7c4e", "type": "victron-output-ess", "z": "e49a35fb53bc54a7", "service": "com.victronenergy.settings", "path": "/Settings/CGwacs/AcPowerSetPoint", "serviceObj": { "service": "com.victronenergy.settings", "name": "Venus settings" }, "pathObj": { "path": "/Settings/CGwacs/AcPowerSetPoint", "type": "integer", "name": "Grid set-point (W)", "writable": true }, "name": "", "onlyChanges": false, "x": 1020, "y": 760, "wires": [] }, { "id": "45f498d84e4c6d72", "type": "ui_text_input", "z": "e49a35fb53bc54a7", "name": "", "label": "Grid set-point désiré -injecté ou +consommé", "tooltip": "Watts que je veux -injecter ou +consommer de mon fournisseur d'électricité même sans soleil", "group": "3d6482099020650a", "order": 2, "width": 0, "height": 0, "passthru": true, "mode": "number", "delay": "0", "topic": "topic", "sendOnBlur": true, "className": "", "topicType": "msg", "x": 610, "y": 700, "wires": [ [ "11077815d66b7c4e", "c2cc0a3ab67f806e" ] ] }, { "id": "66bcb8f3545c017a", "type": "ui_button", "z": "e49a35fb53bc54a7", "name": "", "group": "3d6482099020650a", "order": 7, "width": 0, "height": 0, "passthru": false, "label": "Déshumidificateur -550", "tooltip": "", "color": "", "bgcolor": "", "className": "", "icon": "", "payload": "-550", "payloadType": "num", "topic": "topic", "topicType": "msg", "x": 190, "y": 840, "wires": [ [ "45f498d84e4c6d72" ] ] }, { "id": "d9aacfcfe2ef1dea", "type": "ui_button", "z": "e49a35fb53bc54a7", "name": "", "group": "3d6482099020650a", "order": 6, "width": 0, "height": 0, "passthru": false, "label": "Frigo -130", "tooltip": "", "color": "", "bgcolor": "", "className": "", "icon": "", "payload": "-130", "payloadType": "num", "topic": "topic", "topicType": "msg", "x": 230, "y": 760, "wires": [ [ "45f498d84e4c6d72" ] ] }, { "id": "c1b00e5b1096ec58", "type": "ui_button", "z": "e49a35fb53bc54a7", "name": "", "group": "3d6482099020650a", "order": 4, "width": 0, "height": 0, "passthru": true, "label": "Aucun", "tooltip": "", "color": "", "bgcolor": "#D7D7A0", "className": "", "icon": "", "payload": "0", "payloadType": "num", "topic": "topic", "topicType": "msg", "x": 210, "y": 660, "wires": [ [ "45f498d84e4c6d72" ] ] }, { "id": "441ab90dcac43977", "type": "ui_button", "z": "e49a35fb53bc54a7", "name": "", "group": "3d6482099020650a", "order": 9, "width": 0, "height": 0, "passthru": false, "label": "Chauffe eau -1000", "tooltip": "", "color": "", "bgcolor": "", "className": "", "icon": "", "payload": "-1000", "payloadType": "num", "topic": "topic", "topicType": "msg", "x": 210, "y": 920, "wires": [ [ "45f498d84e4c6d72" ] ] }, { "id": "bae0cc7c93c8cee3", "type": "victron-input-ess", "z": "e49a35fb53bc54a7", "service": "com.victronenergy.settings", "path": "/Settings/CGwacs/AcPowerSetPoint", "serviceObj": { "service": "com.victronenergy.settings", "name": "Venus settings" }, "pathObj": { "path": "/Settings/CGwacs/AcPowerSetPoint", "type": "integer", "name": "Grid set-point (W)" }, "initial": "", "name": "", "onlyChanges": true, "x": 180, "y": 1220, "wires": [ [ "92ffd5d163a59f92" ] ] }, { "id": "92ffd5d163a59f92", "type": "ui_text", "z": "e49a35fb53bc54a7", "group": "3d6482099020650a", "order": 3, "width": 0, "height": 0, "name": "", "label": "Grid set-point Réel", "format": "{{msg.payload}} W", "layout": "row-left", "className": "", "x": 610, "y": 1220, "wires": [] }, { "id": "33b6b3230df286d7", "type": "ui_button", "z": "e49a35fb53bc54a7", "name": "", "group": "3d6482099020650a", "order": 8, "width": 0, "height": 0, "passthru": false, "label": "Déshumidificateur + Frigo -660", "tooltip": "", "color": "", "bgcolor": "", "className": "", "icon": "", "payload": "-660", "payloadType": "num", "topic": "topic", "topicType": "msg", "x": 169.439453125, "y": 877.8154296875, "wires": [ [ "45f498d84e4c6d72" ] ] }, { "id": "e24f7d853672f7fc", "type": "change", "z": "e49a35fb53bc54a7", "name": "Force Mode On du MP", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "3", "tot": "num" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1140, "y": 680, "wires": [ [ "c9af890574432dec" ] ] }, { "id": "4938a06bf56eae48", "type": "victron-input-ess", "z": "e49a35fb53bc54a7", "service": "com.victronenergy.vebus/276", "path": "/Hub4/L1/AcPowerSetpoint", "serviceObj": { "service": "com.victronenergy.vebus/276", "name": "MultiPlus" }, "pathObj": { "path": "/Hub4/L1/AcPowerSetpoint", "type": "integer", "name": "AC Power L1 setpoint (W)" }, "initial": "", "name": "", "onlyChanges": false, "x": 180, "y": 1060, "wires": [ [ "7664f294cf12ccbb" ] ] }, { "id": "7664f294cf12ccbb", "type": "ui_chart", "z": "e49a35fb53bc54a7", "name": "", "group": "3d6482099020650a", "order": 13, "width": 0, "height": 0, "label": "Watts de l'AC IN +In ou -Out", "chartType": "line", "legend": "false", "xformat": "HH:mm:ss", "interpolate": "linear", "nodata": "", "dot": false, "ymin": "", "ymax": "", "removeOlder": 1, "removeOlderPoints": "", "removeOlderUnit": "3600", "cutout": 0, "useOneColor": false, "useUTC": false, "colors": [ "#1f77b4", "#aec7e8", "#ff7f0e", "#2ca02c", "#98df8a", "#d62728", "#ff9896", "#9467bd", "#c5b0d5" ], "outputs": 1, "useDifferentColor": false, "className": "", "x": 520, "y": 1060, "wires": [ [] ] }, { "id": "dea54f50fc9739aa", "type": "change", "z": "e49a35fb53bc54a7", "name": "Set injection à 0w", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "0", "tot": "num" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1370, "y": 920, "wires": [ [ "3bdee9be74bcd426", "c1b00e5b1096ec58" ] ] }, { "id": "73aac776cee48a57", "type": "victron-input-battery", "z": "e49a35fb53bc54a7", "service": "com.victronenergy.battery/279", "path": "/Soc", "serviceObj": { "service": "com.victronenergy.battery/279", "name": "Shunt-Batt" }, "pathObj": { "path": "/Soc", "type": "float", "name": "State of charge (%)" }, "name": "", "onlyChanges": true, "roundValues": "1", "x": 170, "y": 420, "wires": [ [ "b00757534026208d", "30fc27967b48ce2b" ] ] }, { "id": "4de5936d6f436e6e", "type": "switch", "z": "e49a35fb53bc54a7", "name": "", "property": "payload", "propertyType": "msg", "rules": [ { "t": "eq", "v": "3", "vt": "num" }, { "t": "eq", "v": "2", "vt": "num" } ], "checkall": "true", "repair": false, "outputs": 2, "x": 1130, "y": 900, "wires": [ [ "c1b00e5b1096ec58", "c9af890574432dec" ], [ "dea54f50fc9739aa", "c9af890574432dec" ] ], "outputLabels": [ "On", "Inverter Only" ] }, { "id": "c2cc0a3ab67f806e", "type": "switch", "z": "e49a35fb53bc54a7", "name": "", "property": "payload", "propertyType": "msg", "rules": [ { "t": "lte", "v": "-1", "vt": "num" }, { "t": "eq", "v": "0", "vt": "num" } ], "checkall": "true", "repair": false, "outputs": 2, "x": 930, "y": 700, "wires": [ [ "e24f7d853672f7fc" ], [] ], "outputLabels": [ "On MP", "fait rien" ] }, { "id": "7d4bab604f94ddee", "type": "ui_button", "z": "e49a35fb53bc54a7", "name": "", "group": "d2556f2f.52e94", "order": 1, "width": 0, "height": 0, "passthru": true, "label": "MultiPlus On", "tooltip": "", "color": "", "bgcolor": "", "className": "", "icon": "", "payload": "3", "payloadType": "num", "topic": "topic", "topicType": "msg", "x": 910, "y": 880, "wires": [ [ "4de5936d6f436e6e" ] ] }, { "id": "47802304304bbf28", "type": "ui_button", "z": "e49a35fb53bc54a7", "name": "", "group": "d2556f2f.52e94", "order": 2, "width": 0, "height": 0, "passthru": true, "label": "MultiPlus Inverter Only", "tooltip": "", "color": "", "bgcolor": "", "className": "", "icon": "", "payload": "2", "payloadType": "num", "topic": "topic", "topicType": "msg", "x": 940, "y": 940, "wires": [ [ "4de5936d6f436e6e" ] ] }, { "id": "715554909636d18f", "type": "victron-input-battery", "z": "e49a35fb53bc54a7", "service": "com.victronenergy.battery/1", "path": "/Dc/0/Current", "serviceObj": { "service": "com.victronenergy.battery/1", "name": "SerialBattery(Jkbms)" }, "pathObj": { "path": "/Dc/0/Current", "type": "float", "name": "Current (A)" }, "initial": "", "name": "", "onlyChanges": true, "x": 180, "y": 360, "wires": [ [ "255d4324f3f62313" ] ] }, { "id": "255d4324f3f62313", "type": "ui_chart", "z": "e49a35fb53bc54a7", "name": "", "group": "3d6482099020650a", "order": 1, "width": 0, "height": 0, "label": "BMS Amp +Charge -Décharge", "chartType": "line", "legend": "false", "xformat": "HH:mm", "interpolate": "linear", "nodata": "", "dot": false, "ymin": "", "ymax": "", "removeOlder": "1", "removeOlderPoints": "", "removeOlderUnit": "3600", "cutout": 0, "useOneColor": false, "useUTC": false, "colors": [ "#1f77b4", "#aec7e8", "#ff7f0e", "#2ca02c", "#98df8a", "#d62728", "#ff9896", "#9467bd", "#c5b0d5" ], "outputs": 1, "useDifferentColor": false, "className": "", "x": 550, "y": 360, "wires": [ [] ] }, { "id": "b00757534026208d", "type": "ui_text", "z": "e49a35fb53bc54a7", "group": "d2556f2f.52e94", "order": 10, "width": 0, "height": 0, "name": "", "label": "SOC Shunt-Batt", "format": "{{msg.payload}} %", "layout": "row-left", "className": "", "x": 500, "y": 420, "wires": [] }, { "id": "49650336342925b5", "type": "victron-input-ess", "z": "e49a35fb53bc54a7", "service": "com.victronenergy.settings", "path": "/Settings/CGwacs/BatteryLife/MinimumSocLimit", "serviceObj": { "service": "com.victronenergy.settings", "name": "Venus settings" }, "pathObj": { "path": "/Settings/CGwacs/BatteryLife/MinimumSocLimit", "type": "integer", "name": "Minimum Discharge SOC (%)" }, "name": "", "onlyChanges": false, "x": 210, "y": 520, "wires": [ [ "7fae4398332433f6" ] ], "info": "utilisé si la fonction BatteryLife n'est pas activé" }, { "id": "bcbb5b5d2689c947", "type": "rbe", "z": "e49a35fb53bc54a7", "name": "Limite les envois", "func": "rbei", "gap": "", "start": "", "inout": "out", "septopics": false, "property": "payload", "topi": "topic", "x": 1200, "y": 520, "wires": [ [ "3d21a78283975d26" ] ] }, { "id": "3d21a78283975d26", "type": "function", "z": "e49a35fb53bc54a7", "name": "Laisse sortir 3 seulement", "func": "if(msg.payload == '3'){\n return{payload: '3'}\n}", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 1430, "y": 520, "wires": [ [ "e24f7d853672f7fc", "c1b00e5b1096ec58" ] ] }, { "id": "53385012cdeb1019", "type": "victron-input-ess", "z": "e49a35fb53bc54a7", "service": "com.victronenergy.system/0", "path": "/Control/ActiveSocLimit", "serviceObj": { "service": "com.victronenergy.system/0", "name": "Venus system" }, "pathObj": { "path": "/Control/ActiveSocLimit", "type": "integer", "name": "Active SOC limit (%)" }, "name": "", "onlyChanges": false, "x": 180, "y": 580, "wires": [ [ "12c265e3cdb30228", "7fae4398332433f6" ] ], "info": "utilisé si la fonction BatteryLife est activé" }, { "id": "12c265e3cdb30228", "type": "ui_chart", "z": "e49a35fb53bc54a7", "name": "", "group": "3d6482099020650a", "order": 12, "width": 0, "height": 0, "label": "Active SOC Limit", "chartType": "line", "legend": "false", "xformat": "dd HH:mm", "interpolate": "linear", "nodata": "", "dot": false, "ymin": "", "ymax": "", "removeOlder": "7", "removeOlderPoints": "", "removeOlderUnit": "86400", "cutout": 0, "useOneColor": false, "useUTC": false, "colors": [ "#1f77b4", "#aec7e8", "#ff7f0e", "#2ca02c", "#98df8a", "#d62728", "#ff9896", "#9467bd", "#c5b0d5" ], "outputs": 1, "useDifferentColor": false, "className": "", "x": 550, "y": 580, "wires": [ [] ] }, { "id": "1bad08e461cdc008", "type": "victron-input-ess", "z": "e49a35fb53bc54a7", "service": "com.victronenergy.settings", "path": "/Settings/CGwacs/BatteryLife/State", "serviceObj": { "service": "com.victronenergy.settings", "name": "Venus settings" }, "pathObj": { "path": "/Settings/CGwacs/BatteryLife/State", "type": "enum", "name": "ESS state", "enum": { "1": "BatteryLife enabled (GUI controlled)", "2": "Optimized Mode /w BatteryLife: self consumption", "3": "Optimized Mode /w BatteryLife: self consumption, SoC exceeds 85%", "4": "Optimized Mode /w BatteryLife: self consumption, SoC at 100%", "5": "Optimized Mode /w BatteryLife: SoC below dynamic SoC limit", "6": "Optimized Mode /w BatteryLife: SoC has been below SoC limit for more than 24 hours. Charging the battery (5A)", "7": "Optimized Mode /w BatteryLife: Inverter/Charger is in sustain mode", "8": "Optimized Mode /w BatteryLife: recharging, SoC dropped by 5% or more below the minimum SoC", "9": "'Keep batteries charged' mode is enabled", "10": "Optimized mode w/o BatteryLife: self consumption, SoC at or above minimum SoC", "11": "Optimized mode w/o BatteryLife: self consumption, SoC is below minimum SoC", "12": "Optimized mode w/o BatteryLife: recharging, SoC dropped by 5% or more below minimum SoC" } }, "initial": "", "name": "", "onlyChanges": false, "x": 150, "y": 1280, "wires": [ [ "a3c6c3b664d9bc2a" ] ] }, { "id": "a3c6c3b664d9bc2a", "type": "function", "z": "e49a35fb53bc54a7", "name": "convertion", "func": "var input = msg.payload;\nvar output = '';\n\nswitch (input) {\n case 1:\n output = 'BatteryLife enabled (GUI controlled)';\n break;\n case 2:\n output = 'Optimized Mode /w BatteryLife: self consumption';\n break;\n case 3:\n output = 'Optimized Mode /w BatteryLife: self consumption, SoC exceeds 85%';\n break;\n case 4:\n output = 'Optimized Mode /w BatteryLife: self consumption, SoC at 100%';\n break;\n case 5:\n output = 'Optimized Mode /w BatteryLife: SoC below dynamic SoC limit';\n break;\n case 6:\n output = 'Optimized Mode /w BatteryLife: SoC has been below SoC limit for more than 24 hours. Charging the battery (5A)';\n break;\n case 7:\n output = 'Optimized Mode /w BatteryLife: Inverter/Charger is in sustain mode';\n break;\n case 8:\n output = 'Optimized Mode /w BatteryLife: recharging, SoC dropped by 5% or more below the minimum SoC';\n break;\n case 9:\n output = 'Keep batteries charged mode is enabled';\n break;\n case 10:\n output = 'Optimized mode w/o BatteryLife: self consumption, SoC at or above minimum SoC';\n break;\n case 11:\n output = 'Optimized mode w/o BatteryLife: self consumption, SoC is below minimum SoC';\n break;\n case 12:\n output = 'Optimized mode w/o BatteryLife: recharging, SoC dropped by 5% or more below minimum SoC';\n break;\t\t\n default:\n output = 'Valeur non valide';\n}\n\nmsg.payload = output;\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 410, "y": 1280, "wires": [ [ "23035caf968c1749" ] ] }, { "id": "23035caf968c1749", "type": "ui_text", "z": "e49a35fb53bc54a7", "group": "d2556f2f.52e94", "order": 11, "width": 0, "height": 0, "name": "", "label": "ESS state", "format": "{{msg.payload}}", "layout": "row-spread", "className": "", "x": 600, "y": 1280, "wires": [] }, { "id": "7fae4398332433f6", "type": "function", "z": "e49a35fb53bc54a7", "name": "Choisi le min SOC", "func": "ESSState = context.node || 0;\nSOC = context.node1 || 0;\nActiveSocLimit = context.node2 || 0;\n\nif(msg.topic == 'Venus settings - ESS state'){\n context.node = msg.payload;\n} else if (msg.topic == 'Venus settings - Minimum Discharge SOC (%)'){\n context.node1 = msg.payload;\n}else if (msg.topic == 'Venus system - Active SOC limit (%)'){\n context.node2 = msg.payload;\n} \n \nif (context.node > 9){\n return{ topic: 'SOCutilisable', payload: context.node1}\n}else{\n return{ topic: 'SOCutilisable', payload: context.node2} \n}", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 550, "y": 520, "wires": [ [ "30fc27967b48ce2b" ] ] }, { "id": "30fc27967b48ce2b", "type": "function", "z": "e49a35fb53bc54a7", "name": "Compare le SOC au Min SOC", "func": "ShuntBattSOC = context.node || 0;\nSOCutilisable = context.node1 || 0;\n\nif(msg.topic == 'Shunt-Batt - State of charge (%)'){\n context.node = msg.payload;\n} else if (msg.topic == 'SOCutilisable'){\n context.node1 = msg.payload;\n} \n \nif (context.node > (context.node1 + 2)){\n return{ topic: 'Inverter', payload: 'Inverter-Only est maintenant utilisable'}\n}else{\n return{ topic: 'OnMP', payload: '3'} \n}", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 890, "y": 520, "wires": [ [ "bcbb5b5d2689c947" ] ] }, { "id": "e636c5bb4c05643e", "type": "ui_button", "z": "e49a35fb53bc54a7", "name": "", "group": "3d6482099020650a", "order": 5, "width": 0, "height": 0, "passthru": false, "label": "Garage -60", "tooltip": "", "color": "", "bgcolor": "", "className": "", "icon": "", "payload": "-60", "payloadType": "num", "topic": "topic", "topicType": "msg", "x": 230, "y": 720, "wires": [ [ "45f498d84e4c6d72" ] ] }, { "id": "8693d834617e54f8", "type": "ui_button", "z": "e49a35fb53bc54a7", "name": "", "group": "3d6482099020650a", "order": 6, "width": 0, "height": 0, "passthru": false, "label": "-200", "tooltip": "", "color": "", "bgcolor": "", "className": "", "icon": "", "payload": "-200", "payloadType": "num", "topic": "topic", "topicType": "msg", "x": 250, "y": 800, "wires": [ [ "45f498d84e4c6d72" ] ] }, { "id": "d2556f2f.52e94", "type": "ui_group", "name": "Injection Surplus Solaire", "tab": "f9c8dbd1.54017", "order": 2, "disp": true, "width": "8", "collapse": false, "className": "" }, { "id": "3d6482099020650a", "type": "ui_group", "name": "Injection Forcée", "tab": "f9c8dbd1.54017", "order": 1, "disp": true, "width": "8", "collapse": false, "className": "" }, { "id": "f9c8dbd1.54017", "type": "ui_tab", "name": "Injection", "icon": "dashboard", "order": 1, "disabled": false, "hidden": false } ]