[
{
"id": "4d648bd1ec0fc1eb",
"type": "tab",
"label": "Flow 1",
"disabled": false,
"info": "",
"env": []
},
{
"id": "95942d289e2311d1",
"type": "victron-input-ess",
"z": "4d648bd1ec0fc1eb",
"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": 240,
"y": 340,
"wires": [
[
"0e2a88ab0952c1fc"
]
]
},
{
"id": "0e2a88ab0952c1fc",
"type": "function",
"z": "4d648bd1ec0fc1eb",
"name": "Activ sock",
"func": "flow.set('activ_soc', msg.payload);\nreturn msg;",
"outputs": 1,
"timeout": "",
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 500,
"y": 340,
"wires": [
[]
]
},
{
"id": "02aabb2d5a8bcd69",
"type": "function",
"z": "4d648bd1ec0fc1eb",
"name": "State of charge",
"func": "flow.set('state_of_charge', msg.payload);\nreturn msg;",
"outputs": 1,
"timeout": "",
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 520,
"y": 280,
"wires": [
[]
]
},
{
"id": "21b9289b8a0d8d4f",
"type": "chronos-switch",
"z": "4d648bd1ec0fc1eb",
"name": "sunset",
"config": "532a95bedeae68c9",
"baseTime": "",
"baseTimeType": "msgIngress",
"conditions": [
{
"operator": "equal",
"label": "== Bürgerliche Abenddämmerung",
"operands": {
"type": "sun",
"value": "dusk",
"offset": 0,
"random": false,
"precision": "millisecond"
}
}
],
"stopOnFirstMatch": false,
"outputs": 1,
"x": 150,
"y": 440,
"wires": [
[
"check-conditions"
]
]
},
{
"id": "6d370b95d9c02804",
"type": "victron-input-battery",
"z": "4d648bd1ec0fc1eb",
"service": "com.victronenergy.battery/512",
"path": "/Soc",
"serviceObj": {
"service": "com.victronenergy.battery/512",
"name": "Pytes battery"
},
"pathObj": {
"path": "/Soc",
"type": "float",
"name": "State of charge (%)"
},
"name": "",
"onlyChanges": true,
"x": 240,
"y": 280,
"wires": [
[
"02aabb2d5a8bcd69"
]
]
},
{
"id": "check-conditions",
"type": "function",
"z": "4d648bd1ec0fc1eb",
"name": "Check Conditions",
"func": "let activ_soc = flow.get('activ_soc');\nlet state_of_charge = flow.get('state_of_charge');\nlet boiler = flow.get('boiler');\n\nif (boiler === true && state_of_charge >= activ_soc + 20) {\n flow.set('nachtabschaltung', false);\n} else {\n flow.set('nachtabschaltung', true);\n}\nreturn msg;",
"outputs": 1,
"timeout": "",
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 390,
"y": 440,
"wires": [
[]
]
},
{
"id": "timer-node",
"type": "inject",
"z": "4d648bd1ec0fc1eb",
"name": "23 Uhr",
"props": [
{
"p": "payload",
"v": "",
"vt": "date"
},
{
"p": "topic",
"v": "",
"vt": "str"
}
],
"repeat": "",
"crontab": "0 23 * * *",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 160,
"y": 500,
"wires": [
[
"retrieve-nachtabschaltung"
]
]
},
{
"id": "retrieve-nachtabschaltung",
"type": "function",
"z": "4d648bd1ec0fc1eb",
"name": "Retrieve Nachtabschaltung",
"func": "msg.payload = flow.get('nachtabschaltung');\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 420,
"y": 500,
"wires": [
[
"a1091abadb4c529d"
]
]
},
{
"id": "a1091abadb4c529d",
"type": "switch",
"z": "4d648bd1ec0fc1eb",
"name": "",
"property": "nachtabschaltung",
"propertyType": "flow",
"rules": [
{
"t": "true"
}
],
"checkall": "true",
"repair": false,
"outputs": 1,
"x": 630,
"y": 500,
"wires": [
[
"db5d1fe2433cb8a8"
]
]
},
{
"id": "1c02f205392a324c",
"type": "delay",
"z": "4d648bd1ec0fc1eb",
"name": "Verezögerung 6 Stunden",
"pauseType": "delay",
"timeout": "6",
"timeoutUnits": "hours",
"rate": "1",
"nbRateUnits": "1",
"rateUnits": "second",
"randomFirst": "1",
"randomLast": "5",
"randomUnits": "seconds",
"drop": false,
"allowrate": false,
"outputs": 1,
"x": 190,
"y": 660,
"wires": [
[
"3e3309acb01e7e5f"
]
]
},
{
"id": "b0d0d38a8880ee0f",
"type": "victron-output-vebus",
"z": "4d648bd1ec0fc1eb",
"service": "com.victronenergy.vebus/276",
"path": "/Mode",
"serviceObj": {
"service": "com.victronenergy.vebus/276",
"name": "MultiPlus-II 48/3000/35-32"
},
"pathObj": {
"path": "/Mode",
"type": "enum",
"name": "Switch Position",
"remarks": "<p>Note that <tt>/ModeIsAdjustable</tt> needs to be set to 1.</p> ",
"enum": {
"1": "Charger Only",
"2": "Inverter Only",
"3": "On",
"4": "Off"
},
"writable": true
},
"initial": "",
"name": "",
"onlyChanges": false,
"x": 810,
"y": 660,
"wires": []
},
{
"id": "db5d1fe2433cb8a8",
"type": "change",
"z": "4d648bd1ec0fc1eb",
"name": "Schalter",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "4",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 780,
"y": 500,
"wires": [
[
"1c02f205392a324c",
"b0d0d38a8880ee0f"
]
]
},
{
"id": "e2d72c437587dd5d",
"type": "inject",
"z": "4d648bd1ec0fc1eb",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 140,
"y": 560,
"wires": [
[
"retrieve-nachtabschaltung"
]
]
},
{
"id": "3e3309acb01e7e5f",
"type": "change",
"z": "4d648bd1ec0fc1eb",
"name": "Schalter EIN",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "3",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 450,
"y": 660,
"wires": [
[
"b0d0d38a8880ee0f"
]
]
},
{
"id": "532a95bedeae68c9",
"type": "chronos-config",
"name": "",
"latitudeType": "num",
"longitudeType": "num",
"timezone": "",
"sunPositions": []
}
]