[ { "id": "9c75d75b2f77b968", "type": "tab", "label": "Einstellungen je Monat", "disabled": false, "info": "", "env": [] }, { "id": "victron-client-id", "type": "victron-client" }, { "id": "8d024799.d140a8", "type": "function", "z": "9c75d75b2f77b968", "name": "welcher Monat?", "func": "msg.timestamp= new Date().toISOString()\nvar now = new Date();\nvar hour = now.getHours();\nvar month = now.getMonth()+1;\nif (month == 3)\n {\n var Power = 600\n }\n else if (month >= 1 && month <=2)\n {\n var Power = 350 \n }\n else if (month >= 11 && month <=12)\n {\n var Power = 350\n }\n else if (month == 4)\n {\n var Power = 800\n } \n else if (month >= 5 && month <=9)\n {\n var Power = 1300\n }\n else if (month == 10)\n {\n var Power = 600\n }\n else \n {\n var Power = 250\n }\nmsg.payload = Power;\nflow.set(\"Powerorig\", Power);\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 380, "y": 160, "wires": [ [ "8f1b143f0cd69a2e" ] ] }, { "id": "b43e6f7118d44b04", "type": "inject", "z": "9c75d75b2f77b968", "name": "immer 04:01 Uhr", "props": [], "repeat": "", "crontab": "01 04 * * *", "once": false, "onceDelay": 0.1, "topic": "", "x": 150, "y": 160, "wires": [ [ "8d024799.d140a8" ] ] }, { "id": "8f1b143f0cd69a2e", "type": "victron-output-settings", "z": "9c75d75b2f77b968", "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": "Maximale Einspeisung Wechelrichterleistung ", "onlyChanges": false, "x": 690, "y": 160, "wires": [] }, { "id": "892f7eba6a01930d", "type": "function", "z": "9c75d75b2f77b968", "name": "welcher Monat?", "func": "msg.timestamp= new Date().toISOString()\nvar now = new Date();\nvar month = now.getMonth()+1;\n if (month == 3)\n {\n var SoC = 30\n }\n else if (month >= 1 && month <=2)\n {\n var SoC = 40 \n }\n else if (month >= 11 && month <=12)\n {\n var SoC = 40\n }\n else if (month >= 4 && month <=9)\n {\n var SoC = 10\n }\n else if (month == 10)\n {\n var SoC = 20\n }\n else\n {\n var SoC = 40\n }\nmsg.payload = SoC;\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 380, "y": 220, "wires": [ [ "fd27f4102848a60a" ] ] }, { "id": "c08ea240efa0b9e7", "type": "inject", "z": "9c75d75b2f77b968", "name": "immer um 00:02", "props": [], "repeat": "", "crontab": "01 00 * * *", "once": false, "onceDelay": 0.1, "topic": "", "x": 150, "y": 220, "wires": [ [ "892f7eba6a01930d" ] ] }, { "id": "fd27f4102848a60a", "type": "victron-output-settings", "z": "9c75d75b2f77b968", "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": "Minimum SoC je Monat", "onlyChanges": false, "x": 630, "y": 220, "wires": [] }, { "id": "02be43bc5bacf5c8", "type": "function", "z": "9c75d75b2f77b968", "name": "Strom nach SoC", "func": "msg.timestamp= new Date().toISOString()\nvar now = new Date();\nvar hour = now.getHours();\nvar month = now.getMonth()+1;\nvar SoC = msg.payload;\nif (SoC >= 98)\n { \n var current = 5\n }\nelse if (SoC >= 95)\n { \n var current = 7\n }\nelse if (SoC >= 91)\n { \n var current = 9\n }\nelse if (hour >= 8 && hour <= 14 && SoC >= 75)\n {\n var current = 11\n }\nelse if (hour >= 10 && SoC <= 50)\n {\n var current = 22\n }\nelse if (month >= 1 && month <= 3)\n { \n var current = 22 \n }\nelse if (month >= 4 && month <= 9)\n { \n var current = 15\n }\nelse if (month >= 10 && month <=12)\n { \n var current = 22 \n }\nmsg.payload = current;\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 380, "y": 280, "wires": [ [ "94461b2cae93abf4" ] ] }, { "id": "94461b2cae93abf4", "type": "victron-output-settings", "z": "9c75d75b2f77b968", "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 system max charge current (A DC)", "writable": true }, "name": "Überwachung Ladestrom in Abhängigkeit des SoC", "onlyChanges": false, "x": 710, "y": 280, "wires": [] }, { "id": "759a85692c86ddc2", "type": "comment", "z": "9c75d75b2f77b968", "name": "Werte für Flow", "info": "# Einspeiseleistung je Monat\n1-2 = 350 Watt\n3 = 600 Watt\n4-9 = 1200 Watt\n10 = 400 Watt\n11-12 = 350 Watt\n\n# SoC je Monat\n1-2 = 40%\n3 = 30%\n4-9 = 10%\n10 = 20%\n11-12 = 40%\n\n# DVCC Current ab 13:00\nwenn 11:00 und SoC >80% dann DVCC Current 15A\nwenn SoC > 98 5A\nwenn Soc > 95 8A\nwenn SoC > 91 10A\nwenn Monat 1-3 22A\nwenn Monat 4-9 15A\nwenn Monat 10-12 22A", "x": 120, "y": 80, "wires": [] }, { "id": "bd707a090b5f126d", "type": "victron-input-battery", "z": "9c75d75b2f77b968", "service": "com.victronenergy.battery/288", "path": "/Soc", "serviceObj": { "service": "com.victronenergy.battery/288", "name": "SmartShunt 500A/50mV" }, "pathObj": { "path": "/Soc", "type": "float", "name": "State of charge (%)" }, "name": "SmartShunt Aktueller SoC", "onlyChanges": false, "roundValues": "1", "x": 150, "y": 280, "wires": [ [ "02be43bc5bacf5c8", "18b5c54afdbf23a9" ] ] }, { "id": "18b5c54afdbf23a9", "type": "function", "z": "9c75d75b2f77b968", "name": "Power nach SoC", "func": "msg.timestamp= new Date().toISOString()\nvar now = new Date();\nvar hour = now.getHours();\nvar month = now.getMonth()+1;\nvar SoC = msg.payload;\nvar Powerorig = flow.get('Powerorig');\nif (SoC <= 30 && hour >= 18)\n { \n var Power = 350\n }\n else\n {\n var Power = Powerorig\n }\nmsg.payload = Power;\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 390, "y": 340, "wires": [ [ "8f1b143f0cd69a2e" ] ] }, { "id": "d5ceabf04b7af0e0", "type": "victron-input-battery", "z": "9c75d75b2f77b968", "service": "com.victronenergy.battery/288", "path": "/Dc/0/Temperature", "serviceObj": { "service": "com.victronenergy.battery/288", "name": "SmartShunt 500A/50mV" }, "pathObj": { "path": "/Dc/0/Temperature", "type": "float", "name": "Battery temperature (C)" }, "name": "Akku Temp.", "onlyChanges": false, "roundValues": "0", "x": 110, "y": 500, "wires": [ [ "76f18b68f0db434c" ] ] }, { "id": "17c3486e3b0a8720", "type": "debug", "z": "9c75d75b2f77b968", "name": "debug 1", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "x": 680, "y": 440, "wires": [] }, { "id": "49ec4a5c0424d0a0", "type": "victron-output-relay", "z": "9c75d75b2f77b968", "service": "com.victronenergy.system/0", "path": "/Relay/1/State", "serviceObj": { "service": "com.victronenergy.system/0", "name": "Venus device" }, "pathObj": { "path": "/Relay/1/State", "type": "enum", "name": "Venus relay 2 state", "enum": { "0": "Open", "1": "Closed" }, "writable": true }, "initial": "0", "name": "", "onlyChanges": false, "x": 780, "y": 500, "wires": [] }, { "id": "76f18b68f0db434c", "type": "function", "z": "9c75d75b2f77b968", "name": "Heizung zwischen 11 und 15 Grad lt. Shunt", "func": "var Temp = msg.payload;\nif (Temp <= 11)\n {\n var Relais = 1\n }\n else if (Temp >= 15)\n {\n var Relais = 0\n }\n else \n {\n return null;\n }\nmsg.payload = Relais; \nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 410, "y": 500, "wires": [ [] ], "info": "var Temp = msg.payload;\nif (Temp <= 9)\n { \n var Relais = 1\n }\n else if (Temp <=10)\n {\n var Relais =1\n }\n else if (Temp >=11)\n {\n var Relais = 0\n }\nmsg.payload = Relais; \nreturn msg;" } ]