[ { "id": "b044933de34e298e", "type": "function", "z": "5e856856233f74ea", "name": "function 1", "func": "if ( msg.payload >= 80) {\n const heute = new Date();\n const aktuellerMonat = heute.getMonth();\n const aktuellerTag = heute.getDate();\n //zwischen April und September\n if ( aktuellerMonat >=3 || aktuellerMonat <=8) {\n // am 1. und 15. des Monats voll laden\n if (!(aktuellerTag === 1 || aktuellerTag === 15)){\n msg.payload = 1; //Laden deaktivieren\n return msg;\n }\n }\n} else {\n msg.payload = 0; //Laden aktivieren\n return msg;\n}\n", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 560, "y": 660, "wires": [ [ "ec73a64aa18903dc" ] ] }, { "id": "d8dfdec89c655991", "type": "comment", "z": "5e856856233f74ea", "name": "Zwischen April und September nur bis 80% laden", "info": "", "x": 220, "y": 600, "wires": [] }, { "id": "8cd33093a0a498d9", "type": "victron-input-system", "z": "5e856856233f74ea", "service": "com.victronenergy.system", "path": "/Dc/Battery/Soc", "serviceObj": { "service": "com.victronenergy.system", "name": "com.victronenergy.system", "paths": [ { "path": "/Ac/ActiveIn/Source", "type": "enum", "name": "AC-Input", "enum": { "0": "Not available", "1": "Grid", "2": "Generator", "3": "Shore", "240": "Inverting" } }, { "path": "/Ac/Consumption/L1/Power", "type": "float", "name": "AC Consumption L1 (W)" }, { "path": "/Ac/Consumption/L2/Power", "type": "float", "name": "AC Consumption L2 (W)" }, { "path": "/Ac/Consumption/L3/Power", "type": "float", "name": "AC Consumption L3 (W)" }, { "path": "/Ac/Genset/DeviceType", "type": "float", "name": "Genset Device Type", "enum": {} }, { "path": "/Ac/Genset/L1/Power", "type": "float", "name": "Genset L1 (W)" }, { "path": "/Ac/Genset/L2/Power", "type": "float", "name": "Genset L2 (W)" }, { "path": "/Ac/Genset/L3/Power", "type": "float", "name": "Genset L3 (W)" }, { "path": "/Ac/Genset/NumberOfPhases", "type": "integer", "name": "Genset Number Of Phases" }, { "path": "/Ac/Grid/DeviceType", "type": "float", "name": "Grid Device Type" }, { "path": "/Ac/Grid/L1/Power", "type": "float", "name": "Grid L1 (W)" }, { "path": "/Ac/Grid/L2/Power", "type": "float", "name": "Grid L2 (W)" }, { "path": "/Ac/Grid/L3/Power", "type": "float", "name": "Grid L3 (W)" }, { "path": "/Ac/Grid/NumberOfPhases", "type": "integer", "name": "Grid Number Of Phases" }, { "path": "/Ac/PvOnGenset/L1/Power", "type": "float", "name": "PV Power AC-tied on Generator L1" }, { "path": "/Ac/PvOnGenset/L2/Power", "type": "float", "name": "PV Power AC-tied on Generator L2" }, { "path": "/Ac/PvOnGenset/L3/Power", "type": "float", "name": "PV Power AC-tied on Generator L3" }, { "path": "/Ac/PvOnGenset/NumberOfPhases", "type": "integer", "name": "PV Power AC-tied on Generator Number Of Phases" }, { "path": "/Ac/PvOnGrid/L1/Power", "type": "float", "name": "PV - AC-coupled on input L1 (W)" }, { "path": "/Ac/PvOnGrid/L2/Power", "type": "float", "name": "PV - AC-coupled on input L2 (W)" }, { "path": "/Ac/PvOnGrid/L3/Power", "type": "float", "name": "PV - AC-coupled on input L3 (W)" }, { "path": "/Ac/PvOnGrid/NumberOfPhases", "type": "integer", "name": "PV - AC-coupled on input Number Of Phases" }, { "path": "/Ac/PvOnOutput/L1/Power", "type": "float", "name": "PV - AC-coupled on output L1 (W)" }, { "path": "/Ac/PvOnOutput/L2/Power", "type": "float", "name": "PV - AC-coupled on output L2 (W)" }, { "path": "/Ac/PvOnOutput/L3/Power", "type": "float", "name": "PV - AC-coupled on output L3 (W)" }, { "path": "/Ac/PvOnOutput/NumberOfPhases", "type": "integer", "name": "PV - AC-coupled on output Number Of Phases" }, { "path": "/Dc/Battery/ConsumedAmphours", "type": "float", "name": "Battery Consumed Amphours (Ah)" }, { "path": "/Dc/Battery/Current", "type": "float", "name": "Battery current (A)" }, { "path": "/Dc/Battery/Power", "type": "float", "name": "Battery Power (W)" }, { "path": "/Dc/Battery/Soc", "type": "float", "name": "Battery State of Charge (%)" }, { "path": "/Dc/Battery/State", "type": "enum", "name": "Battery state", "enum": { "0": "idle", "1": "charging", "2": "discharging" } }, { "path": "/Dc/Battery/Temperature", "type": "float", "name": "Battery temperature (C)" }, { "path": "/Dc/Battery/TimeToGo", "type": "float", "name": "Battery Time to Go (h)" }, { "path": "/Dc/Battery/Voltage", "type": "float", "name": "Battery voltage (V)" }, { "path": "/Dc/Charger/Power", "type": "integer", "name": "AC-Chargers - power (W)" }, { "path": "/Dc/Pv/Current", "type": "float", "name": "MPPTs - current (A)" }, { "path": "/Dc/Pv/Power", "type": "float", "name": "MPPTs - power (W)" }, { "path": "/Dc/System/Power", "type": "float", "name": "DC System (W)" }, { "path": "/Dc/Vebus/Current", "type": "float", "name": "VE.Bus charge current (A)" }, { "path": "/Dc/Vebus/Power", "type": "float", "name": "VE.Bus charge power (W)" }, { "path": "/Serial", "type": "string", "name": "Serial (System)" }, { "path": "/SystemType", "type": "string", "name": "System type" }, { "path": "/Timers/TimeOff", "type": "float", "name": "Time off (s)" }, { "path": "/Timers/TimeOnGenerator", "type": "float", "name": "Time generator (s)" }, { "path": "/Timers/TimeOnGrid", "type": "float", "name": "Time grid (s)" }, { "path": "/Timers/TimeOnInverter", "type": "float", "name": "Time inverting (s)" } ] }, "pathObj": { "path": "/Dc/Battery/Soc", "type": "float", "name": "Battery State of Charge (%)" }, "initial": "", "name": "", "x": 240, "y": 660, "wires": [ [ "b044933de34e298e" ] ] }, { "id": "afcc94bcf0d9111a", "type": "victron-output-ess", "z": "5e856856233f74ea", "service": "com.victronenergy.vebus.ttyUSB2", "path": "/Hub4/DisableCharge", "serviceObj": { "service": "com.victronenergy.vebus.ttyUSB2", "name": "MultiPlus-II 48/5000/70-50", "paths": [ { "path": "/Hub4/DisableCharge", "type": "enum", "name": "Disable charge", "enum": { "0": "No", "1": "Yes" }, "writable": true }, { "path": "/Hub4/DisableFeedIn", "type": "enum", "name": "Disable feed-in", "enum": { "0": "No", "1": "Yes" }, "writable": true }, { "path": "/Hub4/DoNotFeedInOvervoltage", "type": "enum", "name": "Feed in overvoltage", "enum": { "0": "Yes", "1": "No" }, "writable": true }, { "path": "/Hub4/L1/AcPowerSetpoint", "type": "integer", "name": "AC Power L1 setpoint (W)", "writable": true }, { "path": "/Hub4/L1/MaxFeedInPower", "type": "integer", "name": "Maximum overvoltage feed-in power L1 (W)", "writable": true } ] }, "pathObj": { "path": "/Hub4/DisableCharge", "type": "enum", "name": "Disable charge", "enum": { "0": "No", "1": "Yes" }, "writable": true }, "initial": "", "name": "", "x": 1010, "y": 660, "wires": [] }, { "id": "ec73a64aa18903dc", "type": "rbe", "z": "5e856856233f74ea", "name": "", "func": "rbe", "gap": "", "start": "", "inout": "out", "septopics": false, "property": "payload", "topi": "topic", "x": 730, "y": 660, "wires": [ [ "afcc94bcf0d9111a" ] ] } ]