[ { "id": "87bd33ef377aa6cc", "type": "tab", "label": "Uebersicht", "disabled": false, "info": "", "env": [] }, { "id": "f8ae93d94ed78042", "type": "tab", "label": "mp2 5000", "disabled": false, "info": "", "env": [] }, { "id": "4f08bae746636d88", "type": "tab", "label": "mysql", "disabled": false, "info": "", "env": [] }, { "id": "221ede7d14db0da6", "type": "tab", "label": "Daten Speichern", "disabled": false, "info": "", "env": [] }, { "id": "5aef17788644a399", "type": "tab", "label": "Regelung", "disabled": false, "info": "", "env": [] }, { "id": "e4292149312a6c5d", "type": "tab", "label": "Diagramme", "disabled": false, "info": "", "env": [] }, { "id": "1de424fd10efcf68", "type": "tab", "label": "MPPT", "disabled": false, "info": "", "env": [] }, { "id": "77133239382fa732", "type": "tab", "label": "Anzeige", "disabled": false, "info": "", "env": [] }, { "id": "8e13057007834989", "type": "tab", "label": "Leistungen", "disabled": false, "info": "", "env": [] }, { "id": "victron-client-id", "type": "victron-client" }, { "id": "56ae65eda1025ded", "type": "ui_tab", "name": "Home", "icon": "dashboard", "disabled": false, "hidden": false }, { "id": "d377a0b509a6108a", "type": "ui_base", "theme": { "name": "theme-light", "lightTheme": { "default": "#0094CE", "baseColor": "#0094CE", "baseFont": "-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif", "edited": true, "reset": false }, "darkTheme": { "default": "#097479", "baseColor": "#097479", "baseFont": "-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif", "edited": false }, "customTheme": { "name": "Untitled Theme 1", "default": "#4B7930", "baseColor": "#4B7930", "baseFont": "-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif" }, "themeState": { "base-color": { "default": "#0094CE", "value": "#0094CE", "edited": false }, "page-titlebar-backgroundColor": { "value": "#0094CE", "edited": false }, "page-backgroundColor": { "value": "#fafafa", "edited": false }, "page-sidebar-backgroundColor": { "value": "#ffffff", "edited": false }, "group-textColor": { "value": "#1bbfff", "edited": false }, "group-borderColor": { "value": "#ffffff", "edited": false }, "group-backgroundColor": { "value": "#ffffff", "edited": false }, "widget-textColor": { "value": "#111111", "edited": false }, "widget-backgroundColor": { "value": "#0094ce", "edited": false }, "widget-borderColor": { "value": "#ffffff", "edited": false }, "base-font": { "value": "-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif" } }, "angularTheme": { "primary": "indigo", "accents": "blue", "warn": "red", "background": "grey", "palette": "light" } }, "site": { "name": "Node-RED Dashboard", "hideToolbar": "false", "allowSwipe": "false", "lockMenu": "false", "allowTempTheme": "true", "dateFormat": "DD.MM.YYYY", "sizes": { "sx": 48, "sy": 24, "gx": 6, "gy": 6, "cx": 6, "cy": 6, "px": 0, "py": 0 } } }, { "id": "a7b98bda3ca2ef88", "type": "ui_group", "name": "Standard", "tab": "56ae65eda1025ded", "order": 1, "disp": true, "width": "6", "collapse": false, "className": "" }, { "id": "5d4e11c7b467f439", "type": "mysql2-server", "host": "192.168.13.3", "port": "3306", "username": "strom", "password": "strom", "db": "strom", "servername": "strom" }, { "id": "dbdcb041512d1acd", "type": "ui_tab", "name": "Diagramme", "icon": "dashboard", "order": 2, "disabled": false, "hidden": false }, { "id": "86128fe14b317dc9", "type": "ui_group", "name": "Akku", "tab": "dbdcb041512d1acd", "order": 1, "disp": true, "width": "16", "collapse": false, "className": "" }, { "id": "050ca3972d372a0e", "type": "ui_group", "name": "Multiplus II", "tab": "0789bfe512fc16d1", "order": 4, "disp": true, "width": "6", "collapse": false, "className": "" }, { "id": "0789bfe512fc16d1", "type": "ui_tab", "name": "Uebersicht", "icon": "dashboard", "order": 1, "disabled": false, "hidden": false }, { "id": "5ac14bcb86d81ef9", "type": "ui_group", "name": "mp2 5000", "tab": "dbdcb041512d1acd", "order": 2, "disp": true, "width": "8", "collapse": false, "className": "" }, { "id": "8e98c5c4bc960cf9", "type": "mqtt-broker", "name": "lokal", "broker": "127.0.0.1", "port": "1883", "clientid": "", "autoConnect": true, "usetls": false, "protocolVersion": "4", "keepalive": "60", "cleansession": true, "birthTopic": "", "birthQos": "0", "birthPayload": "", "birthMsg": {}, "closeTopic": "", "closeQos": "0", "closePayload": "", "closeMsg": {}, "willTopic": "", "willQos": "0", "willPayload": "", "willMsg": {}, "userProps": "", "sessionExpiry": "" }, { "id": "3a05df770c282980", "type": "ui_group", "name": "Einstellungen", "tab": "56ae65eda1025ded", "order": 2, "disp": false, "width": "6", "collapse": false, "className": "" }, { "id": "7b0f3cc432a888ec", "type": "mqtt-broker", "name": "cerbo-2", "broker": "192.168.13.102", "port": "1883", "clientid": "", "autoConnect": true, "usetls": false, "protocolVersion": "4", "keepalive": "60", "cleansession": true, "birthTopic": "", "birthQos": "0", "birthPayload": "", "birthMsg": {}, "closeTopic": "", "closeQos": "0", "closePayload": "", "closeMsg": {}, "willTopic": "", "willQos": "0", "willPayload": "", "willMsg": {}, "userProps": "", "sessionExpiry": "" }, { "id": "7c075d46aadb93ee", "type": "mqtt-broker", "name": "cerbo-2", "broker": "127.0.0.1", "port": "1883", "clientid": "", "autoConnect": true, "usetls": false, "protocolVersion": "4", "keepalive": "60", "cleansession": true, "birthTopic": "", "birthQos": "0", "birthPayload": "", "birthMsg": {}, "closeTopic": "", "closeQos": "0", "closePayload": "", "closeMsg": {}, "willTopic": "", "willQos": "0", "willPayload": "", "willMsg": {}, "userProps": "", "sessionExpiry": "" }, { "id": "9f382619d5933536", "type": "ui_group", "name": "Einstellungen", "tab": "56ae65eda1025ded", "order": 2, "disp": false, "width": "6", "collapse": false, "className": "" }, { "id": "e78705070d8439aa", "type": "ui_group", "name": "Regelung", "tab": "0789bfe512fc16d1", "order": 2, "disp": true, "width": "6", "collapse": false, "className": "" }, { "id": "938349d90a0bc72e", "type": "ui_tab", "name": "Leistungen", "icon": "dashboard", "order": 4, "disabled": false, "hidden": false }, { "id": "3559b5dc49c19e5c", "type": "ui_group", "name": "Netz/Akku", "tab": "938349d90a0bc72e", "order": 1, "disp": true, "width": "6", "collapse": false, "className": "" }, { "id": "5b8b4f5a72449529", "type": "ui_group", "name": "Multi", "tab": "938349d90a0bc72e", "order": 2, "disp": true, "width": "6", "collapse": false, "className": "" }, { "id": "19b9d628193446f8", "type": "ui_group", "name": "MPPT", "tab": "938349d90a0bc72e", "order": 3, "disp": true, "width": "6", "collapse": false, "className": "" }, { "id": "d9d9534a597bc8db", "type": "ui_group", "name": "Berechnet", "tab": "938349d90a0bc72e", "order": 4, "disp": true, "width": "6", "collapse": false, "className": "" }, { "id": "7542dbfa770cab6a", "type": "victron-input-system", "z": "87bd33ef377aa6cc", "service": "com.victronenergy.system/0", "path": "/Dc/Battery/Current", "serviceObj": { "service": "com.victronenergy.system/0", "name": "Venus system" }, "pathObj": { "path": "/Dc/Battery/Current", "type": "float", "name": "Battery current (A)" }, "name": "", "onlyChanges": false, "x": 320, "y": 280, "wires": [ [ "f0efe85fa534fe10" ] ] }, { "id": "f0efe85fa534fe10", "type": "ui_text", "z": "87bd33ef377aa6cc", "group": "a7b98bda3ca2ef88", "order": 4, "width": 0, "height": 0, "name": "", "label": "Akku Strom", "format": "{{msg.payload|number:3}}", "layout": "row-spread", "className": "", "style": false, "font": "", "fontSize": 16, "color": "#000000", "x": 590, "y": 280, "wires": [] }, { "id": "b9122742259761b1", "type": "victron-input-battery", "z": "87bd33ef377aa6cc", "service": "com.victronenergy.battery/0", "path": "/Soc", "serviceObj": { "service": "com.victronenergy.battery/0", "name": "Lynx Shunt" }, "pathObj": { "path": "/Soc", "type": "float", "name": "State of charge (%)" }, "name": "", "onlyChanges": false, "x": 250, "y": 400, "wires": [ [ "7ffa42daaceaf9f6" ] ] }, { "id": "7ffa42daaceaf9f6", "type": "ui_text", "z": "87bd33ef377aa6cc", "group": "a7b98bda3ca2ef88", "order": 4, "width": 0, "height": 0, "name": "", "label": "SOC", "format": "{{msg.payload|number:1}} %", "layout": "row-spread", "className": "", "style": false, "font": "", "fontSize": 16, "color": "#000000", "x": 550, "y": 400, "wires": [] }, { "id": "5587716ce879434e", "type": "ui_text", "z": "87bd33ef377aa6cc", "group": "a7b98bda3ca2ef88", "order": 4, "width": 0, "height": 0, "name": "", "label": "Akku Strom", "format": "{{msg.payload|number:3}}", "layout": "row-spread", "className": "", "style": false, "font": "", "fontSize": 16, "color": "#000000", "x": 590, "y": 340, "wires": [] }, { "id": "92d3cb774094297b", "type": "victron-input-custom", "z": "87bd33ef377aa6cc", "service": "com.victronenergy.battery/0", "path": "/Dc/0/Current", "serviceObj": { "service": "com.victronenergy.battery/0", "name": "Lynx Shunt (0)" }, "pathObj": { "path": "/Dc/0/Current", "name": "/Dc/0/Current", "type": "number" }, "name": "", "onlyChanges": false, "roundValues": "3", "x": 340, "y": 340, "wires": [ [ "5587716ce879434e" ] ] }, { "id": "b42910388ef90d8f", "type": "ui_text", "z": "f8ae93d94ed78042", "group": "050ca3972d372a0e", "order": 11, "width": "3", "height": "1", "name": "", "label": "Switch", "format": "{{msg.payload}}", "layout": "row-spread", "className": "", "style": false, "font": "", "fontSize": 16, "color": "#000000", "x": 670, "y": 40, "wires": [] }, { "id": "e9588a7852bb069d", "type": "change", "z": "f8ae93d94ed78042", "name": "Status Umwandlung Switch", "rules": [ { "t": "change", "p": "payload", "pt": "msg", "from": "1", "fromt": "num", "to": "Charger Only", "tot": "str" }, { "t": "change", "p": "payload", "pt": "msg", "from": "2", "fromt": "num", "to": "Inverter Only", "tot": "str" }, { "t": "change", "p": "payload", "pt": "msg", "from": "3", "fromt": "num", "to": "On", "tot": "str" }, { "t": "change", "p": "payload", "pt": "msg", "from": "4", "fromt": "num", "to": "Off", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 460, "y": 40, "wires": [ [ "b42910388ef90d8f" ] ] }, { "id": "8d038f99350dcf56", "type": "change", "z": "f8ae93d94ed78042", "name": "Status Umwandlung", "rules": [ { "t": "change", "p": "payload", "pt": "msg", "from": "0", "fromt": "num", "to": "Off", "tot": "str" }, { "t": "change", "p": "payload", "pt": "msg", "from": "1", "fromt": "num", "to": "Low Power", "tot": "str" }, { "t": "change", "p": "payload", "pt": "msg", "from": "2", "fromt": "num", "to": "Fault", "tot": "str" }, { "t": "change", "p": "payload", "pt": "msg", "from": "3", "fromt": "num", "to": "Bulk", "tot": "str" }, { "t": "change", "p": "payload", "pt": "msg", "from": "4", "fromt": "num", "to": "Absorption", "tot": "str" }, { "t": "change", "p": "payload", "pt": "msg", "from": "5", "fromt": "num", "to": "Float", "tot": "str" }, { "t": "change", "p": "payload", "pt": "msg", "from": "6", "fromt": "num", "to": "Storage", "tot": "str" }, { "t": "change", "p": "payload", "pt": "msg", "from": "7", "fromt": "num", "to": "Equalize", "tot": "str" }, { "t": "change", "p": "payload", "pt": "msg", "from": "8", "fromt": "num", "to": "Passthru", "tot": "str" }, { "t": "change", "p": "payload", "pt": "msg", "from": "9", "fromt": "num", "to": "Inverting", "tot": "str" }, { "t": "change", "p": "payload", "pt": "msg", "from": "10", "fromt": "num", "to": "Power assist", "tot": "str" }, { "t": "change", "p": "payload", "pt": "msg", "from": "11", "fromt": "num", "to": "Power supply", "tot": "str" }, { "t": "change", "p": "payload", "pt": "msg", "from": "252", "fromt": "num", "to": "Bulk protect", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 440, "y": 100, "wires": [ [ "1cd9016b7a58e335" ] ] }, { "id": "1cd9016b7a58e335", "type": "ui_text", "z": "f8ae93d94ed78042", "group": "050ca3972d372a0e", "order": 12, "width": "3", "height": "1", "name": "mp2 5000 Status", "label": "Status", "format": "{{msg.payload}}", "layout": "row-spread", "className": "", "style": false, "font": "", "fontSize": "", "color": "#000000", "x": 710, "y": 100, "wires": [] }, { "id": "a6302dfdff886775", "type": "function", "z": "f8ae93d94ed78042", "name": "Daten speichern", "func": "//node.warn(msg.topic+\" \"+msg.payload);\nglobal.set(msg.topic,msg.payload);\nreturn;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 920, "y": 160, "wires": [ [] ] }, { "id": "9a6123d49e5ebb6c", "type": "victron-input-vebus", "z": "f8ae93d94ed78042", "service": "com.victronenergy.vebus/276", "path": "/State", "serviceObj": { "service": "com.victronenergy.vebus/276", "name": "MP2 5000" }, "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": "mp2_5000_status", "onlyChanges": false, "x": 130, "y": 100, "wires": [ [ "8d038f99350dcf56", "a6302dfdff886775" ] ] }, { "id": "c40b62baa08958d8", "type": "victron-input-vebus", "z": "f8ae93d94ed78042", "service": "com.victronenergy.vebus/276", "path": "/Mode", "serviceObj": { "service": "com.victronenergy.vebus/276", "name": "MP2 5000" }, "pathObj": { "path": "/Mode", "type": "enum", "name": "Switch Position", "enum": { "1": "Charger Only", "2": "Inverter Only", "3": "On", "4": "Off" } }, "initial": "", "name": "mp2_5000_switch", "onlyChanges": false, "x": 130, "y": 40, "wires": [ [ "e9588a7852bb069d", "a6302dfdff886775" ] ] }, { "id": "3a6bcc47a6c5ef83", "type": "victron-input-vebus", "z": "f8ae93d94ed78042", "service": "com.victronenergy.vebus/276", "path": "/Ac/Out/L1/P", "serviceObj": { "service": "com.victronenergy.vebus/276", "name": "MP2 5000" }, "pathObj": { "path": "/Ac/Out/L1/P", "type": "float", "name": "Output power phase 1 (W)" }, "initial": "", "name": "mp2_5000_out_L1", "onlyChanges": false, "x": 130, "y": 160, "wires": [ [ "a6302dfdff886775", "6e37619e38c03286", "b348ee33b2de088e" ] ] }, { "id": "4709b7758aae654c", "type": "victron-input-vebus", "z": "f8ae93d94ed78042", "service": "com.victronenergy.vebus/276", "path": "/Ac/Out/L2/P", "serviceObj": { "service": "com.victronenergy.vebus/276", "name": "MP2 5000" }, "pathObj": { "path": "/Ac/Out/L2/P", "type": "float", "name": "Output power phase 2 (W)" }, "initial": "", "name": "mp2_5000_out_L2", "onlyChanges": false, "x": 130, "y": 220, "wires": [ [ "a6302dfdff886775", "6e37619e38c03286", "caef90b1bd86c959" ] ] }, { "id": "1594421c8044ea00", "type": "victron-input-vebus", "z": "f8ae93d94ed78042", "service": "com.victronenergy.vebus/276", "path": "/Ac/Out/L3/P", "serviceObj": { "service": "com.victronenergy.vebus/276", "name": "MP2 5000" }, "pathObj": { "path": "/Ac/Out/L3/P", "type": "float", "name": "Output power phase 3 (W)" }, "initial": "", "name": "mp2_5000_out_L3", "onlyChanges": false, "x": 130, "y": 280, "wires": [ [ "a6302dfdff886775", "6e37619e38c03286", "1402742668abcc10" ] ] }, { "id": "06afcf2e5af913ae", "type": "victron-input-vebus", "z": "f8ae93d94ed78042", "service": "com.victronenergy.vebus/276", "path": "/Ac/ActiveIn/L1/P", "serviceObj": { "service": "com.victronenergy.vebus/276", "name": "MP2 5000" }, "pathObj": { "path": "/Ac/ActiveIn/L1/P", "type": "float", "name": "Input power phase 1 (W)" }, "initial": "", "name": "mp2_5000_in_L1", "onlyChanges": false, "x": 120, "y": 340, "wires": [ [ "a6302dfdff886775", "9d82a1c548306c5e", "d4b85462d3b32c72" ] ] }, { "id": "59260bf3f865a219", "type": "victron-input-vebus", "z": "f8ae93d94ed78042", "service": "com.victronenergy.vebus/276", "path": "/Ac/ActiveIn/L2/P", "serviceObj": { "service": "com.victronenergy.vebus/276", "name": "MP2 5000" }, "pathObj": { "path": "/Ac/ActiveIn/L2/P", "type": "float", "name": "Input power phase 2 (W)" }, "initial": "", "name": "mp2_5000_in_L2", "onlyChanges": false, "x": 120, "y": 400, "wires": [ [ "a6302dfdff886775", "9d82a1c548306c5e", "005213fc910b9846" ] ] }, { "id": "a4abcd591c859445", "type": "victron-input-vebus", "z": "f8ae93d94ed78042", "service": "com.victronenergy.vebus/276", "path": "/Ac/ActiveIn/L3/P", "serviceObj": { "service": "com.victronenergy.vebus/276", "name": "MP2 5000" }, "pathObj": { "path": "/Ac/ActiveIn/L3/P", "type": "float", "name": "Input power phase 3 (W)" }, "initial": "", "name": "mp2_5000_in_L3", "onlyChanges": false, "x": 120, "y": 460, "wires": [ [ "a6302dfdff886775", "9d82a1c548306c5e", "86d5ea688e3ef328" ] ] }, { "id": "6e37619e38c03286", "type": "sum", "z": "f8ae93d94ed78042", "name": "mp2 5000 P out", "topic": "mp2_5000_P_out", "x": 600, "y": 340, "wires": [ [ "c3ce2b52467f452a", "a6302dfdff886775", "fd9a2769e6cc79a9" ] ] }, { "id": "9d82a1c548306c5e", "type": "sum", "z": "f8ae93d94ed78042", "name": "mp2 5000 P in", "topic": "mp2_5000_P_in", "x": 600, "y": 380, "wires": [ [ "0a7cbe664d28700a", "a6302dfdff886775", "1f553ffb739796a5" ] ] }, { "id": "c3ce2b52467f452a", "type": "ui_text", "z": "f8ae93d94ed78042", "group": "050ca3972d372a0e", "order": 8, "width": "3", "height": "1", "name": "mp2 5000 P out", "label": "P out", "format": "{{msg.payload}}", "layout": "row-spread", "className": "", "style": false, "font": "", "fontSize": "", "color": "#000000", "x": 820, "y": 340, "wires": [] }, { "id": "0a7cbe664d28700a", "type": "ui_text", "z": "f8ae93d94ed78042", "group": "050ca3972d372a0e", "order": 7, "width": "3", "height": "1", "name": "mp2 5000 P in", "label": "P in", "format": "{{msg.payload}}", "layout": "row-spread", "className": "", "style": false, "font": "", "fontSize": "", "color": "#000000", "x": 820, "y": 380, "wires": [] }, { "id": "e90719e7027b37cc", "type": "interval-multiples-timer", "z": "f8ae93d94ed78042", "interval": "1", "payload": "", "topic": "", "name": "timer mp2 5000", "x": 120, "y": 520, "wires": [ [ "30eddffc0e0d0476" ] ] }, { "id": "30eddffc0e0d0476", "type": "function", "z": "f8ae93d94ed78042", "name": "dc leistung mp2 5000", "func": "var I = global.get(\"mp2_5000_I\");\nvar U = global.get(\"mp2_5000_V\");\nmsg.payload=I*U;\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 360, "y": 520, "wires": [ [ "06d37979769adba3" ] ] }, { "id": "06d37979769adba3", "type": "ui_text", "z": "f8ae93d94ed78042", "group": "050ca3972d372a0e", "order": 13, "width": "3", "height": "1", "name": "mp2 5000 P dc", "label": "P dc", "format": "{{msg.payload|number:0}}", "layout": "row-spread", "className": "", "style": false, "font": "", "fontSize": "", "color": "#000000", "x": 580, "y": 520, "wires": [] }, { "id": "d4b85462d3b32c72", "type": "ui_text", "z": "f8ae93d94ed78042", "group": "050ca3972d372a0e", "order": 1, "width": "3", "height": "1", "name": "mp2 5000 P in L1", "label": "P in L1", "format": "{{msg.payload}}", "layout": "row-spread", "className": "", "style": false, "font": "", "fontSize": "", "color": "#000000", "x": 750, "y": 420, "wires": [] }, { "id": "005213fc910b9846", "type": "ui_text", "z": "f8ae93d94ed78042", "group": "050ca3972d372a0e", "order": 3, "width": "3", "height": "1", "name": "mp2 5000 P in L2", "label": "P in L2", "format": "{{msg.payload}}", "layout": "row-spread", "className": "", "style": false, "font": "", "fontSize": "", "color": "#000000", "x": 750, "y": 460, "wires": [] }, { "id": "86d5ea688e3ef328", "type": "ui_text", "z": "f8ae93d94ed78042", "group": "050ca3972d372a0e", "order": 5, "width": "3", "height": "1", "name": "mp2 5000 P in L3", "label": "P in L3", "format": "{{msg.payload}}", "layout": "row-spread", "className": "", "style": false, "font": "", "fontSize": "", "color": "#000000", "x": 750, "y": 500, "wires": [] }, { "id": "b348ee33b2de088e", "type": "ui_text", "z": "f8ae93d94ed78042", "group": "050ca3972d372a0e", "order": 2, "width": "3", "height": "1", "name": "mp2 5000 P aus L1", "label": "P aus L1", "format": "{{msg.payload}}", "layout": "row-spread", "className": "", "style": false, "font": "", "fontSize": "", "color": "#000000", "x": 750, "y": 200, "wires": [] }, { "id": "caef90b1bd86c959", "type": "ui_text", "z": "f8ae93d94ed78042", "group": "050ca3972d372a0e", "order": 4, "width": "3", "height": "1", "name": "mp2 5000 P aus L2", "label": "P aus L2", "format": "{{msg.payload}}", "layout": "row-spread", "className": "", "style": false, "font": "", "fontSize": "", "color": "#000000", "x": 750, "y": 240, "wires": [] }, { "id": "1402742668abcc10", "type": "ui_text", "z": "f8ae93d94ed78042", "group": "050ca3972d372a0e", "order": 6, "width": "3", "height": "1", "name": "mp2 5000 P aus L3", "label": "P aus L3", "format": "{{msg.payload}}", "layout": "row-spread", "className": "", "style": false, "font": "", "fontSize": "", "color": "#000000", "x": 750, "y": 280, "wires": [] }, { "id": "eddcab175508bbc5", "type": "ui_chart", "z": "f8ae93d94ed78042", "name": "P in", "group": "5ac14bcb86d81ef9", "order": 16, "width": "8", "height": "8", "label": "P in", "chartType": "line", "legend": "false", "xformat": "HH:mm:ss", "interpolate": "linear", "nodata": "", "dot": false, "ymin": "", "ymax": "", "removeOlder": "12", "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": 470, "y": 600, "wires": [ [] ] }, { "id": "b71bcadb18284eef", "type": "ui_chart", "z": "f8ae93d94ed78042", "name": "P out", "group": "5ac14bcb86d81ef9", "order": 16, "width": "8", "height": "8", "label": "P out", "chartType": "line", "legend": "false", "xformat": "HH:mm:ss", "interpolate": "linear", "nodata": "", "dot": false, "ymin": "", "ymax": "", "removeOlder": "12", "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": 470, "y": 640, "wires": [ [] ] }, { "id": "1f553ffb739796a5", "type": "rate-avg", "z": "f8ae93d94ed78042", "name": "", "windowtype": "time", "timewindow": "5", "timeunits": "minutes", "countwindow": "10", "round": "0", "x": 300, "y": 600, "wires": [ [ "eddcab175508bbc5" ] ] }, { "id": "fd9a2769e6cc79a9", "type": "rate-avg", "z": "f8ae93d94ed78042", "name": "", "windowtype": "time", "timewindow": "5", "timeunits": "minutes", "countwindow": "10", "round": "0", "x": 300, "y": 640, "wires": [ [ "b71bcadb18284eef" ] ] }, { "id": "a9d52c30dafb9f5f", "type": "ui_text", "z": "f8ae93d94ed78042", "group": "050ca3972d372a0e", "order": 9, "width": "3", "height": "1", "name": "ve bus soc", "label": "vebus SOC", "format": "{{msg.payload}}", "layout": "row-spread", "className": "", "style": false, "font": "", "fontSize": "", "color": "#000000", "x": 490, "y": 720, "wires": [] }, { "id": "573334bcf8032c21", "type": "victron-input-vebus", "z": "f8ae93d94ed78042", "service": "com.victronenergy.vebus/276", "path": "/Soc", "serviceObj": { "service": "com.victronenergy.vebus/276", "name": "MP2 5000" }, "pathObj": { "path": "/Soc", "type": "float", "name": "VE.Bus state of charge (%)" }, "name": "", "onlyChanges": false, "x": 170, "y": 720, "wires": [ [ "a9d52c30dafb9f5f" ] ] }, { "id": "67650294b4507a62", "type": "victron-input-settings", "z": "f8ae93d94ed78042", "service": "com.victronenergy.settings", "path": "/Settings/CGwacs/MaxChargePercentage", "serviceObj": { "service": "com.victronenergy.settings", "name": "Venus settings" }, "pathObj": { "path": "/Settings/CGwacs/MaxChargePercentage", "type": "float", "name": "ESS max charge current (fractional) (%)" }, "name": "", "onlyChanges": false, "x": 250, "y": 780, "wires": [ [ "dc74efaab1d5d192" ] ] }, { "id": "dc74efaab1d5d192", "type": "ui_text", "z": "f8ae93d94ed78042", "group": "050ca3972d372a0e", "order": 10, "width": "3", "height": "1", "name": "max charge %", "label": "max charge %", "format": "{{msg.payload}}", "layout": "row-spread", "className": "", "style": false, "font": "", "fontSize": "", "color": "#000000", "x": 580, "y": 780, "wires": [] }, { "id": "3f771d8a861e19cf", "type": "victron-input-ess", "z": "f8ae93d94ed78042", "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": 190, "y": 840, "wires": [ [ "e9e15608bbbf69df" ] ] }, { "id": "e9e15608bbbf69df", "type": "ui_text", "z": "f8ae93d94ed78042", "group": "050ca3972d372a0e", "order": 10, "width": "3", "height": "1", "name": "ess state", "label": "ess state", "format": "{{msg.payload}}", "layout": "row-spread", "className": "", "style": false, "font": "", "fontSize": "", "color": "#000000", "x": 460, "y": 840, "wires": [] }, { "id": "ddc7aa0764f3b862", "type": "victron-input-ess", "z": "f8ae93d94ed78042", "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)" }, "initial": "", "name": "", "onlyChanges": false, "x": 280, "y": 880, "wires": [ [ "401c7eb3a1ebbcf5" ] ] }, { "id": "401c7eb3a1ebbcf5", "type": "ui_text", "z": "f8ae93d94ed78042", "group": "050ca3972d372a0e", "order": 10, "width": "3", "height": "1", "name": "ess state", "label": "dvcc I limit", "format": "{{msg.payload}}", "layout": "row-spread", "className": "", "style": false, "font": "", "fontSize": "", "color": "#000000", "x": 580, "y": 880, "wires": [] }, { "id": "ddd312a0701f2507", "type": "mqtt out", "z": "f8ae93d94ed78042", "name": "aktiv soc", "topic": "W/c0619ab42ba3/settings/0/Settings/CGwacs/BatteryLife/SocLimit", "qos": "2", "retain": "", "respTopic": "", "contentType": "", "userProps": "", "correl": "", "expiry": "", "broker": "8e98c5c4bc960cf9", "x": 420, "y": 960, "wires": [] }, { "id": "70a7b0fb1563bd91", "type": "function", "z": "f8ae93d94ed78042", "name": "soc limit", "func": "var DATEN = {};\nif (msg.payload.value<=10) return;\nDATEN.value=10;\nmsg.payload=DATEN;\nreturn msg;\n", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 260, "y": 960, "wires": [ [ "b688a3249bc7a436", "ddd312a0701f2507" ] ] }, { "id": "b688a3249bc7a436", "type": "debug", "z": "f8ae93d94ed78042", "name": "debug 12", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "x": 380, "y": 1020, "wires": [] }, { "id": "5dc0c1bcc28bde37", "type": "mqtt in", "z": "f8ae93d94ed78042", "name": "life soc", "topic": "N/c0619ab42ba3/settings/0/Settings/CGwacs/BatteryLife/SocLimit", "qos": "2", "datatype": "auto-detect", "broker": "8e98c5c4bc960cf9", "nl": false, "rap": true, "rh": 0, "inputs": 0, "x": 90, "y": 960, "wires": [ [ "70a7b0fb1563bd91" ] ] }, { "id": "801cb48f03ddb560", "type": "victron-output-custom", "z": "f8ae93d94ed78042", "service": "com.victronenergy.settings", "path": "/Settings/CGwacs/BatteryLife/MinimumSocLimit", "serviceObj": { "service": "com.victronenergy.settings", "name": "com.victronenergy.settings" }, "pathObj": { "path": "/Settings/CGwacs/BatteryLife/MinimumSocLimit", "name": "/Settings/CGwacs/BatteryLife/MinimumSocLimit", "type": "number" }, "name": "", "onlyChanges": false, "x": 790, "y": 960, "wires": [] }, { "id": "57b3fb409bd27521", "type": "victron-input-custom", "z": "f8ae93d94ed78042", "service": "com.victronenergy.settings", "path": "/Settings/CGwacs/BatteryLife/MinimumSocLimit", "serviceObj": { "service": "com.victronenergy.settings", "name": "com.victronenergy.settings" }, "pathObj": { "path": "/Settings/CGwacs/BatteryLife/MinimumSocLimit", "name": "/Settings/CGwacs/BatteryLife/MinimumSocLimit", "type": "number" }, "name": "", "onlyChanges": false, "x": 290, "y": 1060, "wires": [ [ "9a04c197e50ca070" ] ] }, { "id": "9a04c197e50ca070", "type": "ui_text", "z": "f8ae93d94ed78042", "group": "050ca3972d372a0e", "order": 10, "width": "3", "height": "1", "name": "life soc limit", "label": "life soc limit", "format": "{{msg.payload}}", "layout": "row-spread", "className": "", "style": false, "font": "", "fontSize": "", "color": "#000000", "x": 670, "y": 1060, "wires": [] }, { "id": "85d476681e11c58f", "type": "mysql2", "z": "4f08bae746636d88", "name": "parameter abrufen", "server": "5d4e11c7b467f439", "bind": "", "topic": "select name,wert from nodered;", "x": 350, "y": 60, "wires": [ [ "adfb5f1dc6eff4c4" ] ] }, { "id": "822ae603cd239b22", "type": "interval-multiples-timer", "z": "4f08bae746636d88", "interval": "10000", "payload": "", "topic": "", "name": "timer mysql", "x": 90, "y": 60, "wires": [ [ "85d476681e11c58f", "0591488f2e74cc83" ] ] }, { "id": "0591488f2e74cc83", "type": "ui_digital_clock", "z": "4f08bae746636d88", "name": "", "group": "a7b98bda3ca2ef88", "order": 12, "width": 0, "height": 0, "x": 330, "y": 120, "wires": [] }, { "id": "adfb5f1dc6eff4c4", "type": "function", "z": "4f08bae746636d88", "name": "mysql parameter", "func": "var DATEN = msg.payload;\nvar L = DATEN.length;\nfor (N=0;N0 && IA<0) {\n I=I1-1; \n if (I<0) I=0;\n } else {\n I=IPV+1.5;\n I=I.toFixed(0)*1;\n }\n}\nif (I==DVCC) return;\nmsg.payload=I;\ncontext.MP2= IMP2;\ncontext.I=I;\ncontext.PV=IPV;\nif (I==I1) {\n return null;\n} else {\n return msg;\n}", "outputs": 1, "noerr": 0, "initialize": "// Der Code hier wird ausgeführt,\n// wenn der Node gestartet wird\ncontext.PV = 0;\ncontext.MP2 = 0;\ncontext.I=0;\n\n", "finalize": "", "libs": [], "x": 440, "y": 800, "wires": [ [ "9d766f3cfb84976c", "95db87e6347be469" ] ] }, { "id": "f7fafad08d71c9e2", "type": "victron-input-system", "z": "5aef17788644a399", "service": "com.victronenergy.system/0", "path": "/Dc/Pv/Current", "serviceObj": { "service": "com.victronenergy.system/0", "name": "Venus system" }, "pathObj": { "path": "/Dc/Pv/Current", "type": "float", "name": "MPPTs - current (A)" }, "name": "pv strom", "onlyChanges": false, "roundValues": "1", "x": 140, "y": 800, "wires": [ [ "3f704eb412e516a7", "7e9cc744fa9b984d" ] ] }, { "id": "de979b318957cf5d", "type": "debug", "z": "5aef17788644a399", "name": "debug 2", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "x": 360, "y": 880, "wires": [] }, { "id": "58a2f5781a45c2ec", "type": "victron-input-vebus", "z": "5aef17788644a399", "service": "com.victronenergy.vebus/276", "path": "/Dc/0/Current", "serviceObj": { "service": "com.victronenergy.vebus/276", "name": "MP2 5000" }, "pathObj": { "path": "/Dc/0/Current", "type": "float", "name": "Battery current (A)" }, "name": "dc strom", "onlyChanges": false, "roundValues": "1", "x": 140, "y": 740, "wires": [ [ "de979b318957cf5d", "3f704eb412e516a7" ] ] }, { "id": "fb2e49fbc6239e3f", "type": "debug", "z": "5aef17788644a399", "name": "debug 4", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 960, "y": 800, "wires": [] }, { "id": "9d766f3cfb84976c", "type": "rate-limiter", "z": "5aef17788644a399", "delay_action": "ratelimit", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "drop_select": "drop", "addcurrentcount": false, "name": "", "outputs": "1", "buffer_size": "0", "buffer_drop": "buffer_drop_new", "emit_msg_2nd": false, "control_topic": "", "version": 0.0018, "x": 710, "y": 760, "wires": [ [ "7e6e8d29ae08d0cf", "fb2e49fbc6239e3f" ] ] }, { "id": "35a1344627e8ca29", "type": "victron-output-settings", "z": "5aef17788644a399", "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 BatteryLife state", "enum": { "0": "Unused, BL disabled", "1": "Restarting", "2": "Self-consumption", "3": "Self-consumption", "4": "Self-consumption", "5": "Discharge disabled", "6": "Force charge", "7": "Sustain", "8": "Low Soc Recharge", "9": "Keep batteries charged", "10": "BL Disabled", "11": "BL Disabled (Low SoC)", "12": "BL Disabled (Low SOC recharge)" }, "writable": true }, "initial": "", "name": "", "onlyChanges": false, "x": 870, "y": 920, "wires": [] }, { "id": "71442f46e74d4759", "type": "ui_switch", "z": "5aef17788644a399", "name": "", "label": "BL 0/10", "tooltip": "", "group": "a7b98bda3ca2ef88", "order": 6, "width": 0, "height": 0, "passthru": true, "decouple": "false", "topic": "topic", "topicType": "msg", "style": "", "onvalue": "10", "onvalueType": "num", "onicon": "", "oncolor": "", "offvalue": "0", "offvalueType": "num", "officon": "", "offcolor": "", "animate": false, "className": "", "x": 600, "y": 920, "wires": [ [ "35a1344627e8ca29" ] ] }, { "id": "1cc95f9ef5e1f869", "type": "victron-input-ess", "z": "5aef17788644a399", "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": 340, "y": 1080, "wires": [ [ "fa9983287cd9f21e" ] ] }, { "id": "fa9983287cd9f21e", "type": "ui_text", "z": "5aef17788644a399", "group": "050ca3972d372a0e", "order": 10, "width": "3", "height": "1", "name": "min soc", "label": "min soc", "format": "{{msg.payload}}", "layout": "row-spread", "className": "", "style": false, "font": "", "fontSize": "", "color": "#000000", "x": 660, "y": 1100, "wires": [] }, { "id": "7e9cc744fa9b984d", "type": "ui_text", "z": "5aef17788644a399", "group": "050ca3972d372a0e", "order": 10, "width": "3", "height": "1", "name": "pv strom", "label": "pv strom", "format": "{{msg.payload}}", "layout": "row-spread", "className": "", "style": false, "font": "", "fontSize": "", "color": "#000000", "x": 420, "y": 700, "wires": [] }, { "id": "513b5aa92fc303fd", "type": "function", "z": "5aef17788644a399", "name": "ladefunktion deaktivieren", "func": "var PV = global.get(\"PV_UM\");\nvar ESS = global.get(\"ESS_CHARGE\");\nvar C = 1;\nif (PV>40) {\n C=0;\n}\nif (ESS == C) return;\nmsg.payload=C;\nreturn msg;\n", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 390, "y": 100, "wires": [ [ "44496d33188c0096" ] ] }, { "id": "44496d33188c0096", "type": "victron-output-vebus", "z": "5aef17788644a399", "service": "com.victronenergy.vebus/276", "path": "/Hub4/DisableCharge", "serviceObj": { "service": "com.victronenergy.vebus/276", "name": "MP2 5000" }, "pathObj": { "path": "/Hub4/DisableCharge", "type": "enum", "name": "ESS disable charge flag phase", "enum": { "0": "Charge allowed", "1": "Charge disabled" }, "writable": true }, "initial": "1", "name": "", "onlyChanges": false, "x": 710, "y": 100, "wires": [] }, { "id": "95db87e6347be469", "type": "debug", "z": "5aef17788644a399", "name": "debug 13", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "x": 620, "y": 660, "wires": [] }, { "id": "af0e4cd3944c9bab", "type": "mqtt out", "z": "5aef17788644a399", "d": true, "name": "BatteryLowVoltage", "topic": "W/c0619ab42ba3/vebus/276/BatteryOperationalLimits/BatteryLowVoltage", "qos": "", "retain": "", "respTopic": "", "contentType": "", "userProps": "", "correl": "", "expiry": "", "broker": "7c075d46aadb93ee", "x": 730, "y": 840, "wires": [] }, { "id": "1407afaf09f1e4d5", "type": "mqtt out", "z": "5aef17788644a399", "d": true, "name": "MaxChargeCurrent", "topic": "W/c0619ab42ba3/vebus/276/BatteryOperationalLimits/MaxChargeCurrent", "qos": "", "retain": "", "respTopic": "", "contentType": "", "userProps": "", "correl": "", "expiry": "", "broker": "8e98c5c4bc960cf9", "x": 730, "y": 880, "wires": [] }, { "id": "70f19a8357bef172", "type": "mqtt out", "z": "5aef17788644a399", "d": true, "name": "MaxChargeVoltage", "topic": "W/c0619ab42ba3/vebus/276/BatteryOperationalLimits/MaxChargeVoltage", "qos": "", "retain": "", "respTopic": "", "contentType": "", "userProps": "", "correl": "", "expiry": "", "broker": "8e98c5c4bc960cf9", "x": 730, "y": 920, "wires": [] }, { "id": "0c0df7f29f4dd802", "type": "mqtt out", "z": "5aef17788644a399", "d": true, "name": "MaxDischargeCurrent", "topic": "W/c0619ab42ba3/vebus/276/BatteryOperationalLimits/MaxDischargeCurrent", "qos": "", "retain": "", "respTopic": "", "contentType": "", "userProps": "", "correl": "", "expiry": "", "broker": "8e98c5c4bc960cf9", "x": 740, "y": 960, "wires": [] }, { "id": "1d528eaaf1910e91", "type": "function", "z": "5aef17788644a399", "name": "Unterspannung", "func": "if (msg.Umin>40) {\n msg.payload={ \"value\" : msg.Umin };\n} else {\n msg.payload={ \"value\" : 49 };\n}\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 520, "y": 840, "wires": [ [ "af0e4cd3944c9bab" ] ] }, { "id": "90e8b2415b33ea4d", "type": "function", "z": "5aef17788644a399", "name": "max ladestrom", "func": "if (msg.I>0) {\n msg.payload={ \"value\" : msg.I };\n} else {\n msg.payload={ \"value\" : 0 };\n}\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 520, "y": 880, "wires": [ [ "1407afaf09f1e4d5", "f30cc3b42c6bbd93" ] ] }, { "id": "84c99844e61e9abb", "type": "function", "z": "5aef17788644a399", "name": "Spannung", "func": "if (msg.U>40) {\n msg.payload={ \"value\" : msg.U };\n} else {\n msg.payload={ \"value\" : 52 };\n}\nreturn msg;return msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 510, "y": 920, "wires": [ [ "70f19a8357bef172", "f30cc3b42c6bbd93" ] ] }, { "id": "5db3cf07069813d3", "type": "function", "z": "5aef17788644a399", "name": "max entladestrom", "func": "if (msg.Imax>0) {\n msg.payload={ \"value\" : msg.Imax };\n} else {\n msg.payload={ \"value\" : 780 };\n}\nreturn msg;return msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 530, "y": 960, "wires": [ [ "0c0df7f29f4dd802" ] ] }, { "id": "be8103f925f52438", "type": "function", "z": "5aef17788644a399", "name": "Akku Parameter", "func": "var I = global.get(\"BAT_I\") | 0;\nvar Imax = global.get(\"BAT_Imax\") | 50;\nvar U = global.get(\"BAT_U\") | 52;\nvar Umin = global.get(\"BAT_Umin\") | 48;\nif (msg.payload<48) {\n I=msg.payload;\n} else {\n U=msg.payload;\n}\nmsg.I=I;\nmsg.Imax=Imax;\nmsg.U=U;\nmsg.Umin=Umin;\nglobal.set(\"BAT_I\",I);\nglobal.set(\"BAT_U\",U);\nglobal.set(\"BAT_Imax\",Imax);\nglobal.set(\"BAT_Umin\",Umin);\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 300, "y": 880, "wires": [ [ "1d528eaaf1910e91", "90e8b2415b33ea4d", "84c99844e61e9abb", "5db3cf07069813d3" ] ] }, { "id": "3578373e6b5969ec", "type": "ui_slider", "z": "5aef17788644a399", "name": "I", "label": "I", "tooltip": "", "group": "9f382619d5933536", "order": 13, "width": "6", "height": "2", "passthru": false, "outs": "end", "topic": "topic", "topicType": "msg", "min": 0, "max": "35", "step": 1, "className": "", "x": 110, "y": 860, "wires": [ [ "be8103f925f52438" ] ] }, { "id": "4046683d934a536d", "type": "ui_slider", "z": "5aef17788644a399", "name": "U", "label": "U", "tooltip": "", "group": "9f382619d5933536", "order": 13, "width": "6", "height": "2", "passthru": false, "outs": "end", "topic": "topic", "topicType": "msg", "min": "48", "max": "57", "step": "0.1", "className": "", "x": 110, "y": 900, "wires": [ [ "be8103f925f52438" ] ] }, { "id": "f30cc3b42c6bbd93", "type": "debug", "z": "5aef17788644a399", "name": "debug 7", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "x": 640, "y": 1040, "wires": [] }, { "id": "59076a59c621a331", "type": "victron-input-system", "z": "5aef17788644a399", "service": "com.victronenergy.system/0", "path": "/Dc/Battery/Soc", "serviceObj": { "service": "com.victronenergy.system/0", "name": "Venus system" }, "pathObj": { "path": "/Dc/Battery/Soc", "type": "float", "name": "Battery State of Charge (%)" }, "name": "SOC", "onlyChanges": false, "x": 90, "y": 1100, "wires": [ [ "ae70d34eef87a36f" ] ] }, { "id": "12d68b314fc853d0", "type": "mqtt out", "z": "5aef17788644a399", "name": "lowsoc", "topic": "W/c0619ab42ba3/system/0/SystemState/LowSoc", "qos": "", "retain": "", "respTopic": "", "contentType": "", "userProps": "", "correl": "", "expiry": "", "broker": "8e98c5c4bc960cf9", "x": 690, "y": 1140, "wires": [] }, { "id": "bc086483c4c02539", "type": "victron-input-system", "z": "5aef17788644a399", "service": "com.victronenergy.system/0", "path": "/Control/ActiveSocLimit", "serviceObj": { "service": "com.victronenergy.system/0", "name": "Venus system" }, "pathObj": { "path": "/Control/ActiveSocLimit", "type": "integer", "name": "ESS active SOC limit (%)" }, "initial": "", "name": "ESS_SOC", "onlyChanges": false, "x": 100, "y": 1140, "wires": [ [ "6de97e01126e9cf3" ] ] }, { "id": "6de97e01126e9cf3", "type": "negate", "z": "5aef17788644a399", "name": "", "property": "payload", "showState": false, "filter": false, "x": 250, "y": 1140, "wires": [ [ "ae70d34eef87a36f" ] ] }, { "id": "ae70d34eef87a36f", "type": "sum", "z": "5aef17788644a399", "name": "", "topic": "", "x": 390, "y": 1140, "wires": [ [ "08e2447339e03b24" ] ] }, { "id": "08e2447339e03b24", "type": "function", "z": "5aef17788644a399", "name": "lowsoc reset", "func": "if (msg.payload>0) msg.payload={ \"value\" : 0 };\nelse return;\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 550, "y": 1140, "wires": [ [ "12d68b314fc853d0" ] ] }, { "id": "66072a14dc8e16a5", "type": "function", "z": "5aef17788644a399", "name": "Wechselrichter Leistungs-Regelung", "func": "var SOC,SOC_MIN,SOC_MAX,SOC_LIMIT;\nif ((SOC = global.get(\"SOC\"))==null) SOC=50;\nif ((SOC_MIN = global.get(\"SOC_MIN\"))==null) SOC_MIN=50;\nif ((SOC_MAX = global.get(\"SOC_MAX\"))==null) SOC_MAX=90;\nif ((SOC_LIMIT = global.get(\"SOC_LIMIT\"))==null) SOC_LIMIT=50;\nvar U,I,IMP,PA;\nif ((U = global.get(\"Uakku\"))==null) U=53;\nif ((I = global.get(\"Iakku\"))==null) I=0;\nif ((IMP = global.get(\"mp2_5000_I\"))==null) IMP=0;\nif ((PA = global.get(\"LYNX_POWER\"))==null) PA=0;\nvar IA, L1, L2, L3;\nif ((IA=global.get(\"LYNX_STROM\"))==null) IA=0;\nif ((L1=global.get(\"NETZ_L1\"))==null) L1=0;\nif ((L2=global.get(\"NETZ_L2\"))==null) L2=0;\nif ((L3=global.get(\"NETZ_L3\"))==null) L3=0;\nvar L1in,L2in,L3in,L1out,L2out,L3out;\nif ((L1in=global.get(\"mp2_5000_in_L1\"))==null) L1in=0;\nif ((L2in=global.get(\"mp2_5000_in_L2\"))==null) L2in=0;\nif ((L3in=global.get(\"mp2_5000_in_L3\"))==null) L3in=0;\nif ((L1out=global.get(\"mp2_5000_out_L1\"))==null) L1out=0;\nif ((L2out=global.get(\"mp2_5000_out_L2\"))==null) L2out=0;\nif ((L3out=global.get(\"mp2_5000_out_L3\"))==null) L3out=0;\nvar Pmax,Pmax_neu,PPV,Pmin,ESS_CHARGE;\nif ((Pmin=global.get(\"NETZ_MIN\"))==null) Pmin=150;\nif ((Pmax=global.get(\"MP2_MAX_P\"))==null) Pmax=0;\nif ((PPV=global.get(\"pv_power\"))==null) PPV=0;\nif ((ESS_CHARGE=global.get(\"ESS_CHARGE\"))==null) ESS_CHARGE=0;\nvar P = L1+L2+L3;\nPmax_neu=Pmax;\nvar SOCmin=SOC_MIN-5;\nvar P1=PPV-150;\nvar Pout=L1out+L2out+L3out+150;\nif (P!=0) {\n if (SOC>SOC_MIN) {\n//node.warn(\"SOC: \"+SOC+\" SOCmin: \"+SOCmin+\" P: \"+P+\" PA: \"+PA+\" Pmin: \"+Pmin+\" Pmax: \"+Pmax); \n if (Pmax<=Pout || PA<0) {\n Pmax_neu=Pmax+(P-Pmin)/10+PA/10;\n if (Pmax_neu>P+PPV+100) Pmax_neu=P+PPV+100;\n//node.warn(\"Pmax neu: \"+Pmax_neu); \n if (Pmax_neu>10000) Pmax_neu=10000;\n if (Pmax_neu<0) Pmax_neu=50;\n }\n } else {\n if (ESS_CHARGE==0) {\n Pmax_neu=50;\n } else {\n Pmax_neu=0;\n }\n }\n}\nmsg.Pmax_neu=Pmax_neu;\nmsg.P=P;\nmsg.IA=IA;\nmsg.PA=PA;\nmsg.U=U;\nmsg.IMP=IMP;\nmsg.Pmax=Pmax;\nmsg.L1=L1;\nmsg.L2=L2;\nmsg.L3=L3;\nmsg.SOCmin=SOCmin*1;\nmsg.SOC=SOC;\nmsg.SOC_MIN=SOC_MIN;\n//node.warn(msg);\nreturn msg;\n", "outputs": 1, "noerr": 0, "initialize": "// Der Code hier wird ausgeführt,\n// wenn der Node gestartet wird\nif ((context.IA=global.get(\"LYNX_STROM\"))==null) context.IA=0;\nif ((context.L1=global.get(\"NETZ_L1\"))==null) context.L1=0;\nif ((context.L2=global.get(\"NETZ_L2\"))==null) context.L2=0;\nif ((context.L3=global.get(\"NETZ_L3\"))==null) context.L3=0;\ncontext.P=0;", "finalize": "", "libs": [], "x": 380, "y": 160, "wires": [ [ "0722175bd386a4e2", "35e64bbffc80319f", "32f3c9e3ba7c22df", "f2f02996f5fc1628", "3c8215d35d6fe8fb", "7b369ecb065e6b6f", "a3455612edb9e150", "e3125b0e02fadc50", "da6c9076aabfe224", "63b0c4802e2b6cf3", "fffdbacbac02552f", "ff733c2f549fc79b", "d2510a7fda5f4ac2", "d3156c3885da3093" ] ] }, { "id": "3ad7d1e4977e1c56", "type": "interval-multiples-timer", "z": "5aef17788644a399", "interval": "1000", "payload": "", "topic": "", "name": "timer regelung 1s", "x": 120, "y": 160, "wires": [ [ "66072a14dc8e16a5" ] ] }, { "id": "8d9ec8afcf0c63bc", "type": "victron-output-settings", "z": "5aef17788644a399", "service": "com.victronenergy.settings", "path": "/Settings/CGwacs/MaxDischargePower", "serviceObj": { "service": "com.victronenergy.settings", "name": "Venus settings" }, "pathObj": { "path": "/Settings/CGwacs/MaxDischargePower", "type": "float", "name": "ESS max discharge power (W)", "writable": true }, "name": "ESS max Power", "onlyChanges": false, "x": 980, "y": 160, "wires": [] }, { "id": "0722175bd386a4e2", "type": "function", "z": "5aef17788644a399", "name": "Pmax", "func": "if (context.P==msg.Pmax_neu) return;\ncontext.P=msg.Pmax_neu;\nmsg.payload=msg.Pmax_neu;\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "// Der Code hier wird ausgeführt,\n// wenn der Node gestartet wird\nif ((context.IA=global.get(\"LYNX_STROM\"))==null) context.IA=0;\nif ((context.L1=global.get(\"NETZ_L1\"))==null) context.L1=0;\nif ((context.L2=global.get(\"NETZ_L2\"))==null) context.L2=0;\nif ((context.L3=global.get(\"NETZ_L3\"))==null) context.L3=0;\ncontext.P=-1;", "finalize": "", "libs": [], "x": 630, "y": 160, "wires": [ [ "8d9ec8afcf0c63bc" ] ] }, { "id": "35e64bbffc80319f", "type": "ui_text", "z": "5aef17788644a399", "group": "e78705070d8439aa", "order": 1, "width": "3", "height": "1", "name": "", "label": "Pmax", "format": "{{msg.Pmax|number:0}}", "layout": "row-spread", "className": "", "style": false, "font": "", "fontSize": 16, "color": "#000000", "x": 130, "y": 220, "wires": [] }, { "id": "32f3c9e3ba7c22df", "type": "ui_text", "z": "5aef17788644a399", "group": "e78705070d8439aa", "order": 2, "width": "3", "height": "1", "name": "", "label": "Pmax neu", "format": "{{msg.Pmax_neu|number:0}}", "layout": "row-spread", "className": "", "style": false, "font": "", "fontSize": 16, "color": "#000000", "x": 280, "y": 220, "wires": [] }, { "id": "f2f02996f5fc1628", "type": "ui_text", "z": "5aef17788644a399", "group": "e78705070d8439aa", "order": 3, "width": "3", "height": "1", "name": "", "label": "P", "format": "{{msg.P|number:0}}", "layout": "row-spread", "className": "", "style": false, "font": "", "fontSize": 16, "color": "#000000", "x": 410, "y": 220, "wires": [] }, { "id": "3c8215d35d6fe8fb", "type": "ui_text", "z": "5aef17788644a399", "group": "e78705070d8439aa", "order": 4, "width": "3", "height": "1", "name": "", "label": "P Akku", "format": "{{msg.PA|number:0}}", "layout": "row-spread", "className": "", "style": false, "font": "", "fontSize": 16, "color": "#000000", "x": 130, "y": 260, "wires": [] }, { "id": "7b369ecb065e6b6f", "type": "ui_text", "z": "5aef17788644a399", "group": "e78705070d8439aa", "order": 5, "width": "3", "height": "1", "name": "", "label": "I Akku", "format": "{{msg.IA|number:1}}", "layout": "row-spread", "className": "", "style": false, "font": "", "fontSize": 16, "color": "#000000", "x": 270, "y": 260, "wires": [] }, { "id": "a3455612edb9e150", "type": "ui_text", "z": "5aef17788644a399", "group": "e78705070d8439aa", "order": 6, "width": "3", "height": "1", "name": "", "label": "I MP2", "format": "{{msg.IMP|number:1}}", "layout": "row-spread", "className": "", "style": false, "font": "", "fontSize": 16, "color": "#000000", "x": 410, "y": 260, "wires": [] }, { "id": "e3125b0e02fadc50", "type": "ui_text", "z": "5aef17788644a399", "group": "e78705070d8439aa", "order": 7, "width": "3", "height": "1", "name": "", "label": "U Akku", "format": "{{msg.U|number:2}}", "layout": "row-spread", "className": "", "style": false, "font": "", "fontSize": 16, "color": "#000000", "x": 140, "y": 300, "wires": [] }, { "id": "da6c9076aabfe224", "type": "ui_text", "z": "5aef17788644a399", "group": "e78705070d8439aa", "order": 9, "width": "3", "height": "1", "name": "", "label": "L1", "format": "{{msg.L1|number:0}}", "layout": "row-spread", "className": "", "style": false, "font": "", "fontSize": 16, "color": "#000000", "x": 270, "y": 300, "wires": [] }, { "id": "fffdbacbac02552f", "type": "ui_text", "z": "5aef17788644a399", "group": "e78705070d8439aa", "order": 10, "width": "3", "height": "1", "name": "", "label": "L2", "format": "{{msg.L2|number:0}}", "layout": "row-spread", "className": "", "style": false, "font": "", "fontSize": 16, "color": "#000000", "x": 410, "y": 300, "wires": [] }, { "id": "63b0c4802e2b6cf3", "type": "ui_text", "z": "5aef17788644a399", "group": "e78705070d8439aa", "order": 11, "width": "3", "height": "1", "name": "", "label": "L3", "format": "{{msg.L3|number:0}}", "layout": "row-spread", "className": "", "style": false, "font": "", "fontSize": 16, "color": "#000000", "x": 130, "y": 340, "wires": [] }, { "id": "ff733c2f549fc79b", "type": "ui_text", "z": "5aef17788644a399", "group": "e78705070d8439aa", "order": 8, "width": "3", "height": "1", "name": "", "label": "SOC", "format": "{{msg.SOC|number:0}}", "layout": "row-spread", "className": "", "style": false, "font": "", "fontSize": 16, "color": "#000000", "x": 270, "y": 340, "wires": [] }, { "id": "d2510a7fda5f4ac2", "type": "function", "z": "5aef17788644a399", "name": "SOC min", "func": "msg.payload=msg.SOCmin\nif (msg.SOCmin==msg.SOCMIN || (context.SOC>=0 && context.SOC!=msg.SOCmin)) {\n return;\n}\ncontext.SOC=msg.SOCmin;\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "// Der Code hier wird ausgeführt,\n// wenn der Node gestartet wird\ncontext.SOC=-1;", "finalize": "", "libs": [], "x": 640, "y": 200, "wires": [ [ "d6d6065b12841ebf", "d8cf01d38a153ad4" ] ] }, { "id": "d6d6065b12841ebf", "type": "victron-output-settings", "z": "5aef17788644a399", "service": "com.victronenergy.settings", "path": "/Settings/CGwacs/BatteryLife/MinimumSocLimit", "serviceObj": { "service": "com.victronenergy.settings", "name": "Venus settings" }, "pathObj": { "path": "/Settings/CGwacs/BatteryLife/MinimumSocLimit", "type": "float", "name": "ESS Minimum SoC (unless grid fails) (%)", "writable": true }, "name": "SOC min", "onlyChanges": false, "x": 1000, "y": 200, "wires": [] }, { "id": "d3156c3885da3093", "type": "ui_text", "z": "5aef17788644a399", "group": "e78705070d8439aa", "order": 8, "width": "3", "height": "1", "name": "", "label": "SOCmin", "format": "{{msg.SOCmin|number:0}}", "layout": "row-spread", "className": "", "style": false, "font": "", "fontSize": 16, "color": "#000000", "x": 420, "y": 340, "wires": [] }, { "id": "d8cf01d38a153ad4", "type": "debug", "z": "5aef17788644a399", "name": "debug 17", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "x": 980, "y": 260, "wires": [] }, { "id": "dc965b2ae57afcab", "type": "ui_chart", "z": "e4292149312a6c5d", "name": "Uakku", "group": "86128fe14b317dc9", "order": 14, "width": "8", "height": "8", "label": "Uakku", "chartType": "line", "legend": "false", "xformat": "HH:mm:ss", "interpolate": "linear", "nodata": "", "dot": false, "ymin": "47", "ymax": "57", "removeOlder": "12", "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": 530, "y": 40, "wires": [ [] ] }, { "id": "017f30d59eced5b4", "type": "victron-input-battery", "z": "e4292149312a6c5d", "service": "com.victronenergy.battery/0", "path": "/Dc/0/Voltage", "serviceObj": { "service": "com.victronenergy.battery/0", "name": "Lynx Shunt" }, "pathObj": { "path": "/Dc/0/Voltage", "type": "float", "name": "Battery voltage (V)" }, "name": "Uakku", "onlyChanges": false, "roundValues": "2", "x": 90, "y": 40, "wires": [ [ "0508adda212525c9" ] ] }, { "id": "451cd848ae9049da", "type": "victron-input-system", "z": "e4292149312a6c5d", "d": true, "service": "com.victronenergy.system/0", "path": "/Dc/Battery/Current", "serviceObj": { "service": "com.victronenergy.system/0", "name": "Venus system" }, "pathObj": { "path": "/Dc/Battery/Current", "type": "float", "name": "Battery current (A)" }, "name": "Iakku", "onlyChanges": false, "roundValues": "3", "x": 90, "y": 100, "wires": [ [ "4ad32aebe655f10c" ] ] }, { "id": "c6e1aab41fe8ab1a", "type": "victron-input-battery", "z": "e4292149312a6c5d", "service": "com.victronenergy.battery/0", "path": "/Soc", "serviceObj": { "service": "com.victronenergy.battery/0", "name": "Lynx Shunt" }, "pathObj": { "path": "/Soc", "type": "float", "name": "State of charge (%)" }, "name": "SOC", "onlyChanges": false, "roundValues": "1", "x": 90, "y": 160, "wires": [ [ "bff6c452d7de4d44" ] ] }, { "id": "30653440441fcbc5", "type": "ui_chart", "z": "e4292149312a6c5d", "d": true, "name": "Iakku", "group": "86128fe14b317dc9", "order": 15, "width": "4", "height": "4", "label": "chart", "chartType": "line", "legend": "false", "xformat": "HH:mm:ss", "interpolate": "linear", "nodata": "", "dot": false, "ymin": "-500", "ymax": "500", "removeOlder": "48", "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": 530, "y": 100, "wires": [ [] ] }, { "id": "4ad32aebe655f10c", "type": "rate-limiter", "z": "e4292149312a6c5d", "d": true, "delay_action": "ratelimit", "rate": "1", "nbRateUnits": "10", "rateUnits": "minute", "drop_select": "drop", "addcurrentcount": false, "name": "", "outputs": "1", "buffer_size": "0", "buffer_drop": "buffer_drop_new", "emit_msg_2nd": false, "control_topic": "", "version": 0.0018, "x": 320, "y": 100, "wires": [ [ "30653440441fcbc5" ] ] }, { "id": "b410fcf9fd4fbf90", "type": "ui_chart", "z": "e4292149312a6c5d", "name": "SOC", "group": "86128fe14b317dc9", "order": 16, "width": "8", "height": "8", "label": "SOC", "chartType": "line", "legend": "false", "xformat": "HH:mm:ss", "interpolate": "linear", "nodata": "", "dot": false, "ymin": "", "ymax": "", "removeOlder": "12", "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": 530, "y": 160, "wires": [ [] ] }, { "id": "c72c984b99d52338", "type": "interval-multiples-timer", "z": "e4292149312a6c5d", "interval": "1000", "payload": "", "topic": "", "name": "timer akku", "x": 80, "y": 220, "wires": [ [ "58c4a471416ed1ed" ] ] }, { "id": "58c4a471416ed1ed", "type": "function", "z": "e4292149312a6c5d", "name": "dc leistung", "func": "var I = global.get(\"Iakku\");\nvar U = global.get(\"Uakku\");\nmsg.payload=I*U;\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 310, "y": 220, "wires": [ [ "ab5c3bd5c72818d8" ] ] }, { "id": "d4731842676aa36c", "type": "ui_chart", "z": "e4292149312a6c5d", "name": "P dc", "group": "86128fe14b317dc9", "order": 16, "width": "8", "height": "8", "label": "P dc", "chartType": "line", "legend": "false", "xformat": "HH:mm:ss", "interpolate": "linear", "nodata": "", "dot": false, "ymin": "", "ymax": "", "removeOlder": "12", "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": 730, "y": 220, "wires": [ [] ] }, { "id": "0508adda212525c9", "type": "rate-avg", "z": "e4292149312a6c5d", "name": "", "windowtype": "time", "timewindow": "5", "timeunits": "minutes", "countwindow": "10", "round": "0", "x": 300, "y": 40, "wires": [ [ "dc965b2ae57afcab" ] ] }, { "id": "bff6c452d7de4d44", "type": "rate-avg", "z": "e4292149312a6c5d", "name": "", "windowtype": "time", "timewindow": "5", "timeunits": "minutes", "countwindow": "10", "round": "0", "x": 300, "y": 160, "wires": [ [ "b410fcf9fd4fbf90" ] ] }, { "id": "ab5c3bd5c72818d8", "type": "rate-avg", "z": "e4292149312a6c5d", "name": "", "windowtype": "time", "timewindow": "5", "timeunits": "minutes", "countwindow": "10", "round": "0", "x": 500, "y": 220, "wires": [ [ "d4731842676aa36c" ] ] }, { "id": "e8bb639199be0eb0", "type": "function", "z": "1de424fd10efcf68", "name": "function 1", "func": "var MPPT=1;\nvar DATE = new Date();\nvar SEK = DATE.getTime()/1000;\nvar START=context.SEK;\nvar I=global.get(\"MPPT\"+MPPT+\"_I\");\nvar TO=global.get(\"MPPT_TO\")*1;\nvar PAUSE=global.get(\"MPPT_PAUSE\")*1;\nvar ST = 1;\nvar debug=\"\";\nvar T = SEK - START;\n//node.warn(T+\" \"+PAUSE);\nif (I<0) {\n ST = 4;\n if (T0) {\n return;\n }\n var ST1 = global.get(\"MPPT\"+MPPT+\"_ON\");\n// node.warn(\"ST1 \"+ST1);\n if (ST1==1) {\n return;\n }\n if (T>PAUSE) {\n// node.warn(\"T>PAUSE \");\n ST=1;\n context.SEK=SEK;\n DEBUG=\"T>60\";\n } else {\n if (ST1==4) {\n return;\n }\n ST1 = global.get(\"MPPT\"+MPPT+\"_OP\");\n if (ST1==0) return;\n DEBUG=\"ausschalten\";\n ST=4;\n }\n}\nmsg.payload=ST;\nmsg.debug=DEBUG;\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "// Der Code hier wird ausgeführt,\n// wenn der Node gestartet wird\nvar DATE = new Date();\nvar SEK = DATE.getTime()/1000;\ncontext.SEK=SEK;\n", "finalize": "", "libs": [], "x": 300, "y": 100, "wires": [ [ "cb7d202b8ba4f155", "2e38b39b4ee82905" ] ] }, { "id": "2e38b39b4ee82905", "type": "victron-output-solarcharger", "z": "1de424fd10efcf68", "service": "com.victronenergy.solarcharger/0", "path": "/Mode", "serviceObj": { "service": "com.victronenergy.solarcharger/0", "name": "MPPT 1" }, "pathObj": { "path": "/Mode", "type": "enum", "name": "Charger on/off", "enum": { "1": "On", "4": "Off" }, "writable": true }, "initial": "", "name": "", "onlyChanges": false, "x": 710, "y": 100, "wires": [] }, { "id": "797e26f78b2743bd", "type": "function", "z": "1de424fd10efcf68", "name": "function 2", "func": "var MPPT=2;\nvar DATE = new Date();\nvar SEK = DATE.getTime()/1000;\nvar START=context.SEK;\nvar I=global.get(\"MPPT\"+MPPT+\"_I\");\nvar TO=global.get(\"MPPT_TO\")*1;\nvar PAUSE=global.get(\"MPPT_PAUSE\")*1;\nvar ST = 1;\nvar debug=\"\";\nvar T = SEK - START;\nif (I<0) {\n ST = 4;\n if (T0) {\n return;\n }\n var ST1 = global.get(\"MPPT\"+MPPT+\"_ON\");\n if (ST1==1) {\n return;\n }\n if (T>PAUSE) {\n ST=1;\n context.SEK=SEK;\n DEBUG=\"T>60\";\n } else {\n if (ST1==4) {\n return;\n }\n ST1 = global.get(\"MPPT\"+MPPT+\"_OP\");\n if (ST1==0) return;\n DEBUG=\"ausschalten\";\n ST=4;\n }\n}\nmsg.payload=ST;\nmsg.debug=DEBUG;\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "// Der Code hier wird ausgeführt,\n// wenn der Node gestartet wird\nvar DATE = new Date();\nvar SEK = DATE.getTime()/1000;\ncontext.SEK=SEK;\n", "finalize": "", "libs": [], "x": 300, "y": 140, "wires": [ [ "aed6a90be840c290", "78c3ea8588861d0d" ] ] }, { "id": "56247dbd4db064b4", "type": "function", "z": "1de424fd10efcf68", "name": "function 3", "func": "var MPPT=3;\nvar DATE = new Date();\nvar SEK = DATE.getTime()/1000;\nvar START=context.SEK;\nvar I=global.get(\"MPPT\"+MPPT+\"_I\");\nvar TO=global.get(\"MPPT_TO\")*1;\nvar PAUSE=global.get(\"MPPT_PAUSE\")*1;\nvar ST = 1;\nvar debug=\"\";\nvar T = SEK - START;\nif (I<0) {\n ST = 4;\n if (T0) {\n return;\n }\n var ST1 = global.get(\"MPPT\"+MPPT+\"_ON\");\n if (ST1==1) {\n return;\n }\n if (T>PAUSE) {\n ST=1;\n context.SEK=SEK;\n DEBUG=\"T>60\";\n } else {\n if (ST1==4) {\n return;\n }\n ST1 = global.get(\"MPPT\"+MPPT+\"_OP\");\n if (ST1==0) return;\n DEBUG=\"ausschalten\";\n ST=4;\n }\n}\nmsg.payload=ST;\nmsg.debug=DEBUG;\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "// Der Code hier wird ausgeführt,\n// wenn der Node gestartet wird\nvar DATE = new Date();\nvar SEK = DATE.getTime()/1000;\ncontext.SEK=SEK;\n", "finalize": "", "libs": [], "x": 300, "y": 180, "wires": [ [ "19210d55bf5c1d43", "5555fa2f1be49c24" ] ] }, { "id": "866b03ed5cabfe65", "type": "function", "z": "1de424fd10efcf68", "name": "function 4", "func": "var MPPT=4;\nvar DATE = new Date();\nvar SEK = DATE.getTime()/1000;\nvar START=context.SEK;\nvar I=global.get(\"MPPT\"+MPPT+\"_I\");\nvar TO=global.get(\"MPPT_TO\")*1;\nvar PAUSE=global.get(\"MPPT_PAUSE\")*1;\nvar ST = 1;\nvar debug=\"\";\nvar T = SEK - START;\n//node.warn(\"I<0 \"+I+\" \"+T);\nif (I<0) {\n ST = 4;\n if (T0) {\n return;\n }\n var ST1 = global.get(\"MPPT\"+MPPT+\"_ON\");\n if (ST1==1) {\n return;\n }\n if (T>PAUSE) {\n ST=1;\n context.SEK=SEK;\n DEBUG=\"T>60\";\n } else {\n if (ST1==4) {\n return;\n }\n ST1 = global.get(\"MPPT\"+MPPT+\"_OP\");\n if (ST1==0) return;\n DEBUG=\"ausschalten\";\n ST=4;\n }\n}\nmsg.payload=ST;\nmsg.debug=DEBUG;\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "// Der Code hier wird ausgeführt,\n// wenn der Node gestartet wird\nvar DATE = new Date();\nvar SEK = DATE.getTime()/1000;\ncontext.SEK=SEK;\n", "finalize": "", "libs": [], "x": 300, "y": 220, "wires": [ [ "34bf7e7d7bff17e8", "92c2b1c09c87b36a", "bee95cd0d4be8f67" ] ] }, { "id": "78c3ea8588861d0d", "type": "victron-output-solarcharger", "z": "1de424fd10efcf68", "service": "com.victronenergy.solarcharger/1", "path": "/Mode", "serviceObj": { "service": "com.victronenergy.solarcharger/1", "name": "MPPT 2" }, "pathObj": { "path": "/Mode", "type": "enum", "name": "Charger on/off", "enum": { "1": "On", "4": "Off" }, "writable": true }, "initial": "", "name": "", "onlyChanges": false, "x": 710, "y": 140, "wires": [] }, { "id": "5555fa2f1be49c24", "type": "victron-output-solarcharger", "z": "1de424fd10efcf68", "service": "com.victronenergy.solarcharger/2", "path": "/Mode", "serviceObj": { "service": "com.victronenergy.solarcharger/2", "name": "MPPT 3" }, "pathObj": { "path": "/Mode", "type": "enum", "name": "Charger on/off", "enum": { "1": "On", "4": "Off" }, "writable": true }, "initial": "", "name": "", "onlyChanges": false, "x": 710, "y": 180, "wires": [] }, { "id": "92c2b1c09c87b36a", "type": "victron-output-solarcharger", "z": "1de424fd10efcf68", "service": "com.victronenergy.solarcharger/3", "path": "/Mode", "serviceObj": { "service": "com.victronenergy.solarcharger/3", "name": "MPPT 4" }, "pathObj": { "path": "/Mode", "type": "enum", "name": "Charger on/off", "enum": { "1": "On", "4": "Off" }, "writable": true }, "initial": "", "name": "", "onlyChanges": false, "x": 710, "y": 220, "wires": [] }, { "id": "cb7d202b8ba4f155", "type": "debug", "z": "1de424fd10efcf68", "name": "debug 6", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "x": 480, "y": 100, "wires": [] }, { "id": "aed6a90be840c290", "type": "debug", "z": "1de424fd10efcf68", "name": "debug 7", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "x": 480, "y": 140, "wires": [] }, { "id": "19210d55bf5c1d43", "type": "debug", "z": "1de424fd10efcf68", "name": "debug 8", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "x": 480, "y": 180, "wires": [] }, { "id": "34bf7e7d7bff17e8", "type": "debug", "z": "1de424fd10efcf68", "name": "debug 9", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "x": 480, "y": 220, "wires": [] }, { "id": "765e0e382eda7a7c", "type": "interval-multiples-timer", "z": "1de424fd10efcf68", "interval": "1000", "payload": "", "topic": "", "name": "timer regelung 1s", "x": 100, "y": 40, "wires": [ [ "e8bb639199be0eb0", "797e26f78b2743bd", "56247dbd4db064b4", "866b03ed5cabfe65", "9a1d4a1b009e3d8a" ] ] }, { "id": "bee95cd0d4be8f67", "type": "debug", "z": "1de424fd10efcf68", "name": "debug 14", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "debug", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 480, "y": 260, "wires": [] }, { "id": "9a1d4a1b009e3d8a", "type": "ui_digital_clock", "z": "1de424fd10efcf68", "name": "", "group": "a7b98bda3ca2ef88", "order": 12, "width": 0, "height": 0, "x": 310, "y": 40, "wires": [] }, { "id": "99e930b22583fb20", "type": "ui_text", "z": "77133239382fa732", "group": "3a05df770c282980", "order": 2, "width": 0, "height": 0, "name": "", "label": "Umin", "format": "{{msg.payload.value|number:2}}", "layout": "row-spread", "className": "", "style": false, "font": "", "fontSize": 16, "color": "#000000", "x": 310, "y": 40, "wires": [] }, { "id": "15297c82f05505f5", "type": "mqtt in", "z": "77133239382fa732", "name": "BatteryLowVoltage", "topic": "N/c0619ab42ba3/vebus/276/BatteryOperationalLimits/BatteryLowVoltage", "qos": "2", "datatype": "auto-detect", "broker": "8e98c5c4bc960cf9", "nl": false, "rap": true, "rh": 0, "inputs": 0, "x": 110, "y": 40, "wires": [ [ "99e930b22583fb20" ] ] }, { "id": "e1af8e9aa445f5ea", "type": "ui_text", "z": "77133239382fa732", "group": "3a05df770c282980", "order": 2, "width": 0, "height": 0, "name": "", "label": "I", "format": "{{msg.payload.value|number:2}}", "layout": "row-spread", "className": "", "style": false, "font": "", "fontSize": 16, "color": "#000000", "x": 310, "y": 80, "wires": [] }, { "id": "fbe71f11665583d6", "type": "mqtt in", "z": "77133239382fa732", "name": "MaxChargeCurrent", "topic": "N/c0619ab42ba3/276/BatteryOperationalLimits/MaxChargeCurrent", "qos": "2", "datatype": "auto-detect", "broker": "8e98c5c4bc960cf9", "nl": false, "rap": true, "rh": 0, "inputs": 0, "x": 110, "y": 80, "wires": [ [ "e1af8e9aa445f5ea", "17526cd43fa31fc5" ] ] }, { "id": "4b598f99b1783b93", "type": "ui_text", "z": "77133239382fa732", "group": "3a05df770c282980", "order": 2, "width": 0, "height": 0, "name": "", "label": "U", "format": "{{msg.payload.value|number:2}}", "layout": "row-spread", "className": "", "style": false, "font": "", "fontSize": 16, "color": "#000000", "x": 310, "y": 120, "wires": [] }, { "id": "d935869aae129231", "type": "mqtt in", "z": "77133239382fa732", "name": "MaxChargeVoltage", "topic": "N/c0619ab42ba3/vebus/276/BatteryOperationalLimits/MaxChargeVoltage", "qos": "2", "datatype": "auto-detect", "broker": "8e98c5c4bc960cf9", "nl": false, "rap": true, "rh": 0, "inputs": 0, "x": 110, "y": 120, "wires": [ [ "4b598f99b1783b93", "17526cd43fa31fc5" ] ] }, { "id": "643d324967c469de", "type": "ui_text", "z": "77133239382fa732", "group": "3a05df770c282980", "order": 2, "width": 0, "height": 0, "name": "", "label": "Imax", "format": "{{msg.payload.value|number:2}}", "layout": "row-spread", "className": "", "style": false, "font": "", "fontSize": 16, "color": "#000000", "x": 310, "y": 160, "wires": [] }, { "id": "f0463118221553ac", "type": "mqtt in", "z": "77133239382fa732", "name": "MaxDischargeCurrent", "topic": "N/c0619ab42ba3/vebus/276/BatteryOperationalLimits/MaxDischargeCurrent", "qos": "2", "datatype": "auto-detect", "broker": "8e98c5c4bc960cf9", "nl": false, "rap": true, "rh": 0, "inputs": 0, "x": 120, "y": 160, "wires": [ [ "643d324967c469de" ] ] }, { "id": "17526cd43fa31fc5", "type": "debug", "z": "77133239382fa732", "name": "debug 15", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "x": 360, "y": 220, "wires": [] }, { "id": "65d587702cc5f4c4", "type": "mqtt in", "z": "77133239382fa732", "name": "", "topic": "N/c0619ab42ba3/system/0/Dc/Battery/Current", "qos": "2", "datatype": "auto-detect", "broker": "8e98c5c4bc960cf9", "nl": false, "rap": true, "rh": 0, "inputs": 0, "x": 210, "y": 260, "wires": [ [ "d58efc23799207b9" ] ] }, { "id": "d58efc23799207b9", "type": "ui_text", "z": "77133239382fa732", "group": "3a05df770c282980", "order": 2, "width": 0, "height": 0, "name": "", "label": "Iakku", "format": "{{msg.payload.value|number:2}}", "layout": "row-spread", "className": "", "style": false, "font": "", "fontSize": 16, "color": "#000000", "x": 470, "y": 260, "wires": [] }, { "id": "58457c695d1665f9", "type": "debug", "z": "77133239382fa732", "name": "debug 16", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "x": 480, "y": 320, "wires": [] }, { "id": "f152f19917f820ed", "type": "mqtt sub", "z": "77133239382fa732", "name": "akku strom", "server": "127.0.0.1", "port": 1883, "username": "", "password": "", "topic": "N/c0619ab42ba3/battery/0/Dc/0/Current", "qos": "2", "client_name": "", "x": 100, "y": 320, "wires": [ [ "58457c695d1665f9" ] ] }, { "id": "0acc29405afe8e61", "type": "victron-input-solarcharger", "z": "8e13057007834989", "service": "com.victronenergy.solarcharger/0", "path": "/Dc/0/Current", "serviceObj": { "service": "com.victronenergy.solarcharger/0", "name": "MPPT 1" }, "pathObj": { "path": "/Dc/0/Current", "type": "float", "name": "Battery current (A)" }, "initial": "", "name": "", "onlyChanges": false, "x": 140, "y": 40, "wires": [ [ "05ee4511635ad339" ] ] }, { "id": "722c5edc2ed887a9", "type": "ui_text", "z": "8e13057007834989", "group": "19b9d628193446f8", "order": 0, "width": 0, "height": 0, "name": "", "label": "MPPT1", "format": "{{msg.payload|number:0}} W", "layout": "row-spread", "className": "", "style": false, "font": "", "fontSize": 16, "color": "#000000", "x": 620, "y": 60, "wires": [] }, { "id": "a2fd8dac7681af80", "type": "victron-input-solarcharger", "z": "8e13057007834989", "service": "com.victronenergy.solarcharger/0", "path": "/Dc/0/Voltage", "serviceObj": { "service": "com.victronenergy.solarcharger/0", "name": "MPPT 1" }, "pathObj": { "path": "/Dc/0/Voltage", "type": "float", "name": "Battery voltage (V)" }, "initial": "", "name": "", "onlyChanges": false, "x": 140, "y": 80, "wires": [ [ "05ee4511635ad339" ] ] }, { "id": "05ee4511635ad339", "type": "function", "z": "8e13057007834989", "name": "strom*spannung", "func": "if (context.T1==\"\") {\n context.T1=msg.topic;\n} else {\n if (context.T2==\"\" && msg.topic!=context.T1) {\n context.T2=msg.topic;\n }\n}\nif (context.T1==msg.topic) context.W1=msg.payload;\nif (context.T2==msg.topic) context.W2=msg.payload;\nif (context.T1!=\"\" && context.T2!=\"\") {\n msg.payload = context.W1*context.W2;\n} else msg.payload=\"\";\nmsg.topic=context.T1;\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "// Der Code hier wird ausgeführt,\n// wenn der Node gestartet wird\ncontext.T1 = \"\";\ncontext.T2 = \"\";", "finalize": "", "libs": [], "x": 420, "y": 60, "wires": [ [ "722c5edc2ed887a9", "5451ebc615d3ce3b" ] ] }, { "id": "fa30f7a5e34c2fb7", "type": "victron-input-solarcharger", "z": "8e13057007834989", "service": "com.victronenergy.solarcharger/1", "path": "/Dc/0/Current", "serviceObj": { "service": "com.victronenergy.solarcharger/1", "name": "MPPT 2" }, "pathObj": { "path": "/Dc/0/Current", "type": "float", "name": "Battery current (A)" }, "initial": "", "name": "", "onlyChanges": false, "x": 140, "y": 140, "wires": [ [ "6d1236f0d03da3da" ] ] }, { "id": "bac3b3187232d5ad", "type": "victron-input-solarcharger", "z": "8e13057007834989", "service": "com.victronenergy.solarcharger/1", "path": "/Dc/0/Voltage", "serviceObj": { "service": "com.victronenergy.solarcharger/1", "name": "MPPT 2" }, "pathObj": { "path": "/Dc/0/Voltage", "type": "float", "name": "Battery voltage (V)" }, "initial": "", "name": "", "onlyChanges": false, "x": 140, "y": 180, "wires": [ [ "6d1236f0d03da3da" ] ] }, { "id": "062e176dcc684f93", "type": "victron-input-solarcharger", "z": "8e13057007834989", "service": "com.victronenergy.solarcharger/2", "path": "/Dc/0/Current", "serviceObj": { "service": "com.victronenergy.solarcharger/2", "name": "MPPT 3" }, "pathObj": { "path": "/Dc/0/Current", "type": "float", "name": "Battery current (A)" }, "initial": "", "name": "", "onlyChanges": false, "x": 140, "y": 240, "wires": [ [ "801712b67f0609d0" ] ] }, { "id": "efa4a2a5baaa60b0", "type": "victron-input-solarcharger", "z": "8e13057007834989", "service": "com.victronenergy.solarcharger/2", "path": "/Dc/0/Voltage", "serviceObj": { "service": "com.victronenergy.solarcharger/2", "name": "MPPT 3" }, "pathObj": { "path": "/Dc/0/Voltage", "type": "float", "name": "Battery voltage (V)" }, "initial": "", "name": "", "onlyChanges": false, "x": 140, "y": 280, "wires": [ [ "801712b67f0609d0" ] ] }, { "id": "4914cd8b63d42819", "type": "victron-input-solarcharger", "z": "8e13057007834989", "service": "com.victronenergy.solarcharger/3", "path": "/Dc/0/Current", "serviceObj": { "service": "com.victronenergy.solarcharger/3", "name": "MPPT 4" }, "pathObj": { "path": "/Dc/0/Current", "type": "float", "name": "Battery current (A)" }, "initial": "", "name": "", "onlyChanges": false, "x": 140, "y": 340, "wires": [ [ "b2324d6e36f46dbe" ] ] }, { "id": "bda9e7923414d5dc", "type": "victron-input-solarcharger", "z": "8e13057007834989", "service": "com.victronenergy.solarcharger/3", "path": "/Dc/0/Voltage", "serviceObj": { "service": "com.victronenergy.solarcharger/3", "name": "MPPT 4" }, "pathObj": { "path": "/Dc/0/Voltage", "type": "float", "name": "Battery voltage (V)" }, "initial": "", "name": "", "onlyChanges": false, "x": 140, "y": 380, "wires": [ [ "b2324d6e36f46dbe" ] ] }, { "id": "eaf7d754e00c2e62", "type": "victron-input-solarcharger", "z": "8e13057007834989", "service": "com.victronenergy.solarcharger/279", "path": "/Dc/0/Current", "serviceObj": { "service": "com.victronenergy.solarcharger/279", "name": "MPPT 5" }, "pathObj": { "path": "/Dc/0/Current", "type": "float", "name": "Battery current (A)" }, "initial": "", "name": "", "onlyChanges": false, "x": 140, "y": 440, "wires": [ [ "c35243839a98ad7a" ] ] }, { "id": "54854623b2754516", "type": "victron-input-solarcharger", "z": "8e13057007834989", "service": "com.victronenergy.solarcharger/279", "path": "/Dc/0/Voltage", "serviceObj": { "service": "com.victronenergy.solarcharger/279", "name": "MPPT 5" }, "pathObj": { "path": "/Dc/0/Voltage", "type": "float", "name": "Battery voltage (V)" }, "initial": "", "name": "", "onlyChanges": false, "x": 140, "y": 480, "wires": [ [ "c35243839a98ad7a" ] ] }, { "id": "89c58ba7805b1b2d", "type": "ui_text", "z": "8e13057007834989", "group": "19b9d628193446f8", "order": 0, "width": 0, "height": 0, "name": "", "label": "MPPT2", "format": "{{msg.payload|number:0}} W", "layout": "row-spread", "className": "", "style": false, "font": "", "fontSize": 16, "color": "#000000", "x": 620, "y": 160, "wires": [] }, { "id": "6d1236f0d03da3da", "type": "function", "z": "8e13057007834989", "name": "strom*spannung", "func": "if (context.T1==\"\") {\n context.T1=msg.topic;\n} else {\n if (context.T2==\"\" && msg.topic!=context.T1) {\n context.T2=msg.topic;\n }\n}\nif (context.T1==msg.topic) context.W1=msg.payload;\nif (context.T2==msg.topic) context.W2=msg.payload;\nif (context.T1!=\"\" && context.T2!=\"\") {\n msg.payload = context.W1*context.W2;\n} else msg.payload=\"\";\nmsg.topic=context.T1;\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "// Der Code hier wird ausgeführt,\n// wenn der Node gestartet wird\ncontext.T1 = \"\";\ncontext.T2 = \"\";", "finalize": "", "libs": [], "x": 420, "y": 160, "wires": [ [ "89c58ba7805b1b2d", "5451ebc615d3ce3b" ] ] }, { "id": "5284c23dbb6de3ee", "type": "ui_text", "z": "8e13057007834989", "group": "19b9d628193446f8", "order": 0, "width": 0, "height": 0, "name": "", "label": "MPPT3", "format": "{{msg.payload|number:0}} W", "layout": "row-spread", "className": "", "style": false, "font": "", "fontSize": 16, "color": "#000000", "x": 620, "y": 260, "wires": [] }, { "id": "801712b67f0609d0", "type": "function", "z": "8e13057007834989", "name": "strom*spannung", "func": "if (context.T1==\"\") {\n context.T1=msg.topic;\n} else {\n if (context.T2==\"\" && msg.topic!=context.T1) {\n context.T2=msg.topic;\n }\n}\nif (context.T1==msg.topic) context.W1=msg.payload;\nif (context.T2==msg.topic) context.W2=msg.payload;\nif (context.T1!=\"\" && context.T2!=\"\") {\n msg.payload = context.W1*context.W2;\n} else msg.payload=\"\";\nmsg.topic=context.T1;\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "// Der Code hier wird ausgeführt,\n// wenn der Node gestartet wird\ncontext.T1 = \"\";\ncontext.T2 = \"\";", "finalize": "", "libs": [], "x": 420, "y": 260, "wires": [ [ "5284c23dbb6de3ee", "5451ebc615d3ce3b" ] ] }, { "id": "1475671072332726", "type": "ui_text", "z": "8e13057007834989", "group": "19b9d628193446f8", "order": 0, "width": 0, "height": 0, "name": "", "label": "MPPT4", "format": "{{msg.payload|number:0}} W", "layout": "row-spread", "className": "", "style": false, "font": "", "fontSize": 16, "color": "#000000", "x": 620, "y": 360, "wires": [] }, { "id": "b2324d6e36f46dbe", "type": "function", "z": "8e13057007834989", "name": "strom*spannung", "func": "if (context.T1==\"\") {\n context.T1=msg.topic;\n} else {\n if (context.T2==\"\" && msg.topic!=context.T1) {\n context.T2=msg.topic;\n }\n}\nif (context.T1==msg.topic) context.W1=msg.payload;\nif (context.T2==msg.topic) context.W2=msg.payload;\nif (context.T1!=\"\" && context.T2!=\"\") {\n msg.payload = context.W1*context.W2;\n} else msg.payload=\"\";\nmsg.topic=context.T1;\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "// Der Code hier wird ausgeführt,\n// wenn der Node gestartet wird\ncontext.T1 = \"\";\ncontext.T2 = \"\";", "finalize": "", "libs": [], "x": 420, "y": 360, "wires": [ [ "1475671072332726", "5451ebc615d3ce3b" ] ] }, { "id": "3d7af8225a369869", "type": "ui_text", "z": "8e13057007834989", "group": "19b9d628193446f8", "order": 0, "width": 0, "height": 0, "name": "", "label": "MPPT5", "format": "{{msg.payload|number:0}} W", "layout": "row-spread", "className": "", "style": false, "font": "", "fontSize": 16, "color": "#000000", "x": 620, "y": 460, "wires": [] }, { "id": "c35243839a98ad7a", "type": "function", "z": "8e13057007834989", "name": "strom*spannung", "func": "if (context.T1==\"\") {\n context.T1=msg.topic;\n} else {\n if (context.T2==\"\" && msg.topic!=context.T1) {\n context.T2=msg.topic;\n }\n}\nif (context.T1==msg.topic) context.W1=msg.payload;\nif (context.T2==msg.topic) context.W2=msg.payload;\nif (context.T1!=\"\" && context.T2!=\"\") {\n msg.payload = context.W1*context.W2;\n} else msg.payload=\"\";\nmsg.topic=context.T1;\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "// Der Code hier wird ausgeführt,\n// wenn der Node gestartet wird\ncontext.T1 = \"\";\ncontext.T2 = \"\";", "finalize": "", "libs": [], "x": 420, "y": 460, "wires": [ [ "3d7af8225a369869", "5451ebc615d3ce3b" ] ] }, { "id": "5451ebc615d3ce3b", "type": "sum", "z": "8e13057007834989", "name": "", "topic": "SUMmppt", "x": 610, "y": 220, "wires": [ [ "50a00da0651b97f0", "cb022bd1c8d12afc" ] ] }, { "id": "50a00da0651b97f0", "type": "ui_text", "z": "8e13057007834989", "group": "19b9d628193446f8", "order": 0, "width": 0, "height": 0, "name": "", "label": "Summe", "format": "{{msg.payload|number:0}} W", "layout": "row-spread", "className": "", "style": false, "font": "", "fontSize": 16, "color": "#000000", "x": 780, "y": 220, "wires": [] }, { "id": "2cd381fccc264815", "type": "ui_text", "z": "8e13057007834989", "group": "5b8b4f5a72449529", "order": 0, "width": 0, "height": 0, "name": "", "label": "Multi DC", "format": "{{msg.payload|number:0}} W", "layout": "row-spread", "className": "", "style": false, "font": "", "fontSize": 16, "color": "#000000", "x": 620, "y": 560, "wires": [] }, { "id": "b29716cf86b989a4", "type": "victron-input-vebus", "z": "8e13057007834989", "service": "com.victronenergy.vebus/276", "path": "/Dc/0/Current", "serviceObj": { "service": "com.victronenergy.vebus/276", "name": "MP2 5000" }, "pathObj": { "path": "/Dc/0/Current", "type": "float", "name": "Battery current (A)" }, "name": "", "onlyChanges": false, "x": 140, "y": 540, "wires": [ [ "0ab2780e0fa27838", "bbd1a47d8531451d" ] ] }, { "id": "f5ad2bebaf73fb4b", "type": "victron-input-vebus", "z": "8e13057007834989", "service": "com.victronenergy.vebus/276", "path": "/Dc/0/Voltage", "serviceObj": { "service": "com.victronenergy.vebus/276", "name": "MP2 5000" }, "pathObj": { "path": "/Dc/0/Voltage", "type": "float", "name": "Battery voltage (V)" }, "name": "", "onlyChanges": false, "x": 150, "y": 580, "wires": [ [ "0ab2780e0fa27838", "bbd1a47d8531451d" ] ] }, { "id": "0ab2780e0fa27838", "type": "function", "z": "8e13057007834989", "name": "strom*spannung", "func": "if (context.T1==\"\") {\n context.T1=msg.topic;\n} else {\n if (context.T2==\"\" && msg.topic!=context.T1) {\n context.T2=msg.topic;\n }\n}\nif (context.T1==msg.topic) context.W1=msg.payload;\nif (context.T2==msg.topic) context.W2=msg.payload;\nif (context.T1!=\"\" && context.T2!=\"\") {\n msg.payload = context.W1*context.W2;\n} else msg.payload=\"\";\nmsg.topic=context.T1;\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "// Der Code hier wird ausgeführt,\n// wenn der Node gestartet wird\ncontext.T1 = \"\";\ncontext.T2 = \"\";", "finalize": "", "libs": [], "x": 420, "y": 560, "wires": [ [ "2cd381fccc264815", "b05494aeb05c3ad7" ] ] }, { "id": "721bccc7991abc6f", "type": "victron-input-vebus", "z": "8e13057007834989", "service": "com.victronenergy.vebus/276", "path": "/Ac/ActiveIn/L1/P", "serviceObj": { "service": "com.victronenergy.vebus/276", "name": "MP2 5000" }, "pathObj": { "path": "/Ac/ActiveIn/L1/P", "type": "float", "name": "Input power phase 1 (W)" }, "name": "", "onlyChanges": false, "x": 160, "y": 640, "wires": [ [ "bed942da8387cc58", "55ecd4a7414798cd" ] ] }, { "id": "5412edba2e8faeaf", "type": "victron-input-vebus", "z": "8e13057007834989", "service": "com.victronenergy.vebus/276", "path": "/Ac/ActiveIn/L2/P", "serviceObj": { "service": "com.victronenergy.vebus/276", "name": "MP2 5000" }, "pathObj": { "path": "/Ac/ActiveIn/L2/P", "type": "float", "name": "Input power phase 2 (W)" }, "name": "", "onlyChanges": false, "x": 160, "y": 680, "wires": [ [ "c8db593912565f80", "55ecd4a7414798cd" ] ] }, { "id": "c1d37ef8664467e8", "type": "victron-input-vebus", "z": "8e13057007834989", "service": "com.victronenergy.vebus/276", "path": "/Ac/ActiveIn/L3/P", "serviceObj": { "service": "com.victronenergy.vebus/276", "name": "MP2 5000" }, "pathObj": { "path": "/Ac/ActiveIn/L3/P", "type": "float", "name": "Input power phase 3 (W)" }, "name": "", "onlyChanges": false, "x": 160, "y": 720, "wires": [ [ "ad1a08cf9403e1e0", "55ecd4a7414798cd" ] ] }, { "id": "10e4fb1d48666aca", "type": "victron-input-vebus", "z": "8e13057007834989", "service": "com.victronenergy.vebus/276", "path": "/Ac/Out/L1/P", "serviceObj": { "service": "com.victronenergy.vebus/276", "name": "MP2 5000" }, "pathObj": { "path": "/Ac/Out/L1/P", "type": "float", "name": "Output power phase 1 (W)" }, "name": "", "onlyChanges": false, "x": 170, "y": 780, "wires": [ [ "91fd81557f7f9e1b", "8518b6f459c0483e" ] ] }, { "id": "700e66a225eba380", "type": "victron-input-vebus", "z": "8e13057007834989", "service": "com.victronenergy.vebus/276", "path": "/Ac/Out/L2/P", "serviceObj": { "service": "com.victronenergy.vebus/276", "name": "MP2 5000" }, "pathObj": { "path": "/Ac/Out/L2/P", "type": "float", "name": "Output power phase 2 (W)" }, "name": "", "onlyChanges": false, "x": 170, "y": 820, "wires": [ [ "2d2b809c15cc3b92", "8518b6f459c0483e" ] ] }, { "id": "9f157d557f0ad38f", "type": "victron-input-vebus", "z": "8e13057007834989", "service": "com.victronenergy.vebus/276", "path": "/Ac/Out/L3/P", "serviceObj": { "service": "com.victronenergy.vebus/276", "name": "MP2 5000" }, "pathObj": { "path": "/Ac/Out/L3/P", "type": "float", "name": "Output power phase 3 (W)" }, "name": "", "onlyChanges": false, "x": 170, "y": 860, "wires": [ [ "ab2c6bd1decd8518", "8518b6f459c0483e" ] ] }, { "id": "bed942da8387cc58", "type": "ui_text", "z": "8e13057007834989", "group": "5b8b4f5a72449529", "order": 0, "width": 0, "height": 0, "name": "", "label": "L1 in", "format": "{{msg.payload|number:0}} W", "layout": "row-spread", "className": "", "style": false, "font": "", "fontSize": 16, "color": "#000000", "x": 610, "y": 640, "wires": [] }, { "id": "c8db593912565f80", "type": "ui_text", "z": "8e13057007834989", "group": "5b8b4f5a72449529", "order": 0, "width": 0, "height": 0, "name": "", "label": "L2 in", "format": "{{msg.payload|number:0}} W", "layout": "row-spread", "className": "", "style": false, "font": "", "fontSize": 16, "color": "#000000", "x": 610, "y": 680, "wires": [] }, { "id": "ad1a08cf9403e1e0", "type": "ui_text", "z": "8e13057007834989", "group": "5b8b4f5a72449529", "order": 0, "width": 0, "height": 0, "name": "", "label": "L3 in", "format": "{{msg.payload|number:0}} W", "layout": "row-spread", "className": "", "style": false, "font": "", "fontSize": 16, "color": "#000000", "x": 610, "y": 720, "wires": [] }, { "id": "91fd81557f7f9e1b", "type": "ui_text", "z": "8e13057007834989", "group": "5b8b4f5a72449529", "order": 0, "width": 0, "height": 0, "name": "", "label": "L1 out", "format": "{{msg.payload|number:0}} W", "layout": "row-spread", "className": "", "style": false, "font": "", "fontSize": 16, "color": "#000000", "x": 610, "y": 780, "wires": [] }, { "id": "2d2b809c15cc3b92", "type": "ui_text", "z": "8e13057007834989", "group": "5b8b4f5a72449529", "order": 0, "width": 0, "height": 0, "name": "", "label": "L2 out", "format": "{{msg.payload|number:0}} W", "layout": "row-spread", "className": "", "style": false, "font": "", "fontSize": 16, "color": "#000000", "x": 610, "y": 820, "wires": [] }, { "id": "ab2c6bd1decd8518", "type": "ui_text", "z": "8e13057007834989", "group": "5b8b4f5a72449529", "order": 0, "width": 0, "height": 0, "name": "", "label": "L3 out", "format": "{{msg.payload|number:0}} W", "layout": "row-spread", "className": "", "style": false, "font": "", "fontSize": 16, "color": "#000000", "x": 610, "y": 860, "wires": [] }, { "id": "fa5b4786ea1655de", "type": "ui_text", "z": "8e13057007834989", "group": "5b8b4f5a72449529", "order": 0, "width": 0, "height": 0, "name": "", "label": "Summe in", "format": "{{msg.payload|number:0}} W", "layout": "row-spread", "className": "", "style": false, "font": "", "fontSize": 16, "color": "#000000", "x": 620, "y": 600, "wires": [] }, { "id": "f7a68ad417cfd516", "type": "ui_text", "z": "8e13057007834989", "group": "5b8b4f5a72449529", "order": 0, "width": 0, "height": 0, "name": "", "label": "Summe out", "format": "{{msg.payload|number:0}} W", "layout": "row-spread", "className": "", "style": false, "font": "", "fontSize": 16, "color": "#000000", "x": 630, "y": 900, "wires": [] }, { "id": "55ecd4a7414798cd", "type": "sum", "z": "8e13057007834989", "name": "", "topic": "SUMin", "x": 430, "y": 620, "wires": [ [ "fa5b4786ea1655de", "2242bbf934341487" ] ] }, { "id": "8518b6f459c0483e", "type": "sum", "z": "8e13057007834989", "name": "", "topic": "SUMout", "x": 450, "y": 900, "wires": [ [ "f7a68ad417cfd516", "248419dbcd4f5c88" ] ] }, { "id": "3bdbb896ec85b2e3", "type": "victron-input-battery", "z": "8e13057007834989", "service": "com.victronenergy.battery/0", "path": "/Dc/0/Power", "serviceObj": { "service": "com.victronenergy.battery/0", "name": "Lynx Shunt" }, "pathObj": { "path": "/Dc/0/Power", "type": "float", "name": "Battery power (W)" }, "name": "", "onlyChanges": false, "x": 150, "y": 940, "wires": [ [ "138d76e6a33b25a5", "d40ba2e278a96821" ] ] }, { "id": "51fea0eb0f4e158d", "type": "victron-input-system", "z": "8e13057007834989", "service": "com.victronenergy.system/0", "path": "/Dc/Battery/Power", "serviceObj": { "service": "com.victronenergy.system/0", "name": "Venus system" }, "pathObj": { "path": "/Dc/Battery/Power", "type": "float", "name": "Battery Power (W)" }, "name": "", "onlyChanges": false, "x": 160, "y": 980, "wires": [ [ "845740152b7237d0", "e7eb4e363649e961" ] ] }, { "id": "feb0c941432dde95", "type": "victron-input-system", "z": "8e13057007834989", "service": "com.victronenergy.system/0", "path": "/Dc/Pv/Power", "serviceObj": { "service": "com.victronenergy.system/0", "name": "Venus system" }, "pathObj": { "path": "/Dc/Pv/Power", "type": "float", "name": "MPPTs - power (W)" }, "name": "", "onlyChanges": false, "x": 160, "y": 1020, "wires": [ [ "bed245f478b0dc54", "b2913a481b8d63e0" ] ] }, { "id": "bed245f478b0dc54", "type": "ui_text", "z": "8e13057007834989", "group": "19b9d628193446f8", "order": 0, "width": 0, "height": 0, "name": "", "label": "Summe GX", "format": "{{msg.payload|number:0}} W", "layout": "row-spread", "className": "", "style": false, "font": "", "fontSize": 16, "color": "#000000", "x": 630, "y": 1020, "wires": [] }, { "id": "138d76e6a33b25a5", "type": "ui_text", "z": "8e13057007834989", "group": "3559b5dc49c19e5c", "order": 0, "width": 0, "height": 0, "name": "", "label": "Akku Lynx", "format": "{{msg.payload|number:0}} W", "layout": "row-spread", "className": "", "style": false, "font": "", "fontSize": 16, "color": "#000000", "x": 630, "y": 940, "wires": [] }, { "id": "845740152b7237d0", "type": "ui_text", "z": "8e13057007834989", "group": "3559b5dc49c19e5c", "order": 0, "width": 0, "height": 0, "name": "", "label": "Akku System", "format": "{{msg.payload|number:0}} W", "layout": "row-spread", "className": "", "style": false, "font": "", "fontSize": 16, "color": "#000000", "x": 630, "y": 980, "wires": [] }, { "id": "f2b5e1dc6fe9186f", "type": "victron-input-gridmeter", "z": "8e13057007834989", "service": "com.victronenergy.grid/30", "path": "/Ac/L1/Power", "serviceObj": { "service": "com.victronenergy.grid/30", "name": "NETZ" }, "pathObj": { "path": "/Ac/L1/Power", "type": "float", "name": "L1 Power (W)" }, "name": "", "onlyChanges": false, "x": 120, "y": 1080, "wires": [ [ "5235b63757ed7dac", "3f39a758378b54fb" ] ] }, { "id": "5235b63757ed7dac", "type": "ui_text", "z": "8e13057007834989", "group": "3559b5dc49c19e5c", "order": 0, "width": 0, "height": 0, "name": "", "label": "Netz L1", "format": "{{msg.payload|number:0}} W", "layout": "row-spread", "className": "", "style": false, "font": "", "fontSize": 16, "color": "#000000", "x": 620, "y": 1080, "wires": [] }, { "id": "f0fa181390f03fce", "type": "ui_text", "z": "8e13057007834989", "group": "3559b5dc49c19e5c", "order": 0, "width": 0, "height": 0, "name": "", "label": "Netz L2", "format": "{{msg.payload|number:0}} W", "layout": "row-spread", "className": "", "style": false, "font": "", "fontSize": 16, "color": "#000000", "x": 620, "y": 1120, "wires": [] }, { "id": "c5d32fbdd3fa6a42", "type": "ui_text", "z": "8e13057007834989", "group": "3559b5dc49c19e5c", "order": 0, "width": 0, "height": 0, "name": "", "label": "Netz L3", "format": "{{msg.payload|number:0}} W", "layout": "row-spread", "className": "", "style": false, "font": "", "fontSize": 16, "color": "#000000", "x": 620, "y": 1160, "wires": [] }, { "id": "e587eedfae87d614", "type": "ui_text", "z": "8e13057007834989", "group": "3559b5dc49c19e5c", "order": 0, "width": 0, "height": 0, "name": "", "label": "Netz Summe", "format": "{{msg.payload|number:0}} W", "layout": "row-spread", "className": "", "style": false, "font": "", "fontSize": 16, "color": "#000000", "x": 630, "y": 1200, "wires": [] }, { "id": "dbaeecbba7d16510", "type": "victron-input-gridmeter", "z": "8e13057007834989", "service": "com.victronenergy.grid/30", "path": "/Ac/L2/Power", "serviceObj": { "service": "com.victronenergy.grid/30", "name": "NETZ" }, "pathObj": { "path": "/Ac/L2/Power", "type": "float", "name": "L2 Power (W)" }, "name": "", "onlyChanges": false, "x": 120, "y": 1120, "wires": [ [ "f0fa181390f03fce", "3f39a758378b54fb" ] ] }, { "id": "6fd14f45b2913526", "type": "victron-input-gridmeter", "z": "8e13057007834989", "service": "com.victronenergy.grid/30", "path": "/Ac/L3/Power", "serviceObj": { "service": "com.victronenergy.grid/30", "name": "NETZ" }, "pathObj": { "path": "/Ac/L3/Power", "type": "float", "name": "L3 Power (W)" }, "name": "", "onlyChanges": false, "x": 120, "y": 1160, "wires": [ [ "c5d32fbdd3fa6a42", "3f39a758378b54fb" ] ] }, { "id": "3f39a758378b54fb", "type": "sum", "z": "8e13057007834989", "name": "", "topic": "SUMnetz", "x": 430, "y": 1200, "wires": [ [ "e587eedfae87d614", "ed51da2e8c517554" ] ] }, { "id": "b2913a481b8d63e0", "type": "function", "z": "8e13057007834989", "name": "negate", "func": "msg.payload=-msg.payload;\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "// Der Code hier wird ausgeführt,\n// wenn der Node gestartet wird\ncontext.T1 = \"\";\ncontext.T2 = \"\";", "finalize": "", "libs": [], "x": 450, "y": 1000, "wires": [ [ "cb022bd1c8d12afc" ] ] }, { "id": "cb022bd1c8d12afc", "type": "sum", "z": "8e13057007834989", "name": "", "topic": "SUMmppt", "x": 790, "y": 800, "wires": [ [ "c1d7b205f3a77e5e" ] ] }, { "id": "c1d7b205f3a77e5e", "type": "ui_text", "z": "8e13057007834989", "group": "d9d9534a597bc8db", "order": 0, "width": 0, "height": 0, "name": "", "label": "PV sum - Venus PV", "format": "{{msg.payload|number:0}} W", "layout": "row-spread", "className": "", "style": false, "font": "", "fontSize": 16, "color": "#000000", "x": 970, "y": 800, "wires": [] }, { "id": "2242bbf934341487", "type": "sum", "z": "8e13057007834989", "name": "", "topic": "SUMmppt", "x": 790, "y": 740, "wires": [ [ "17f20b9247a2a0de" ] ] }, { "id": "248419dbcd4f5c88", "type": "function", "z": "8e13057007834989", "name": "negate", "func": "msg.payload=-msg.payload;\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "// Der Code hier wird ausgeführt,\n// wenn der Node gestartet wird\ncontext.T1 = \"\";\ncontext.T2 = \"\";", "finalize": "", "libs": [], "x": 450, "y": 760, "wires": [ [ "2242bbf934341487", "ed51da2e8c517554" ] ] }, { "id": "17f20b9247a2a0de", "type": "ui_text", "z": "8e13057007834989", "group": "d9d9534a597bc8db", "order": 0, "width": 0, "height": 0, "name": "", "label": "AC in - AC out", "format": "{{msg.payload|number:0}} W", "layout": "row-spread", "className": "", "style": false, "font": "", "fontSize": 16, "color": "#000000", "x": 960, "y": 740, "wires": [] }, { "id": "d32b217bb2976605", "type": "ui_text", "z": "8e13057007834989", "group": "d9d9534a597bc8db", "order": 0, "width": 0, "height": 0, "name": "", "label": "Netz + MP2 DC - Ac out", "format": "{{msg.payload|number:0}} W", "layout": "row-spread", "className": "", "style": false, "font": "", "fontSize": 16, "color": "#000000", "x": 970, "y": 920, "wires": [] }, { "id": "ed51da2e8c517554", "type": "sum", "z": "8e13057007834989", "name": "", "topic": "SUMmppt", "x": 790, "y": 920, "wires": [ [ "d32b217bb2976605", "0709c1e23ddb340c" ] ] }, { "id": "e7eb4e363649e961", "type": "function", "z": "8e13057007834989", "name": "negate", "func": "msg.payload=-msg.payload;\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "// Der Code hier wird ausgeführt,\n// wenn der Node gestartet wird\ncontext.T1 = \"\";\ncontext.T2 = \"\";", "finalize": "", "libs": [], "x": 450, "y": 960, "wires": [ [ "d40ba2e278a96821" ] ] }, { "id": "d40ba2e278a96821", "type": "sum", "z": "8e13057007834989", "name": "", "topic": "SUMmppt", "x": 790, "y": 980, "wires": [ [ "68409d4cf29e4af2" ] ] }, { "id": "68409d4cf29e4af2", "type": "ui_text", "z": "8e13057007834989", "group": "d9d9534a597bc8db", "order": 0, "width": 0, "height": 0, "name": "", "label": "Lynx - System", "format": "{{msg.payload|number:0}} W", "layout": "row-spread", "className": "", "style": false, "font": "", "fontSize": 16, "color": "#000000", "x": 940, "y": 980, "wires": [] }, { "id": "b05494aeb05c3ad7", "type": "function", "z": "8e13057007834989", "name": "negate", "func": "msg.payload=-msg.payload;\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "// Der Code hier wird ausgeführt,\n// wenn der Node gestartet wird\ncontext.T1 = \"\";\ncontext.T2 = \"\";", "finalize": "", "libs": [], "x": 590, "y": 520, "wires": [ [ "ed51da2e8c517554", "bbd1a47d8531451d" ] ] }, { "id": "bee453a9c01ac04e", "type": "ui_text", "z": "8e13057007834989", "group": "d9d9534a597bc8db", "order": 0, "width": 0, "height": 0, "name": "", "label": "Netz + MP2 DC - Ac out - korrektur", "format": "{{msg.payload|number:0}} W", "layout": "row-spread", "className": "", "style": false, "font": "", "fontSize": 16, "color": "#000000", "x": 920, "y": 1120, "wires": [] }, { "id": "0709c1e23ddb340c", "type": "function", "z": "8e13057007834989", "name": "Korrektur", "func": "msg.payload=msg.payload-60-120;\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "// Der Code hier wird ausgeführt,\n// wenn der Node gestartet wird\ncontext.T1 = \"\";\ncontext.T2 = \"\";", "finalize": "", "libs": [], "x": 820, "y": 1040, "wires": [ [ "bee453a9c01ac04e" ] ] }, { "id": "bbd1a47d8531451d", "type": "debug", "z": "8e13057007834989", "name": "debug 18", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "x": 800, "y": 520, "wires": [] } ]