Hier das Beispiel (ich hab das damals nicht selbst erstellt sondern von den Werten her nur angepasst)
Den unteren Teil mit der Relaissteuerung vom RS450/200 kannst du ignorieren. Das steuert bei mir den Remotekontakt meines dreiphasigen Solax X3 12K wenn der Akku 100% erreicht hat. Im Frühjahr hatte ich noch kein Vertrauen zu der Frequenzregelung des Solax und wollte ihn sicherheitshalber "hart" ausschalten wenn der Akku voll ist.
Nachfolgend der JSON Code den du einfach als Flow importieren kannst. Nach dem Importieren den Teil "Switches SOLAX X3 ON..." einfach entfernen.
[
{
"id": "b973eec205c3906c",
"type": "tab",
"label": "VenosOS to Float-Voltage",
"disabled": false,
"info": "",
"env": []
},
{
"id": "7bb14501c29b2de2",
"type": "victron-output-custom",
"z": "b973eec205c3906c",
"service": "com.victronenergy.settings",
"path": "/Settings/SystemSetup/MaxChargeVoltage",
"serviceObj": {
"service": "com.victronenergy.settings",
"name": "com.victronenergy.settings"
},
"pathObj": {
"path": "/Settings/SystemSetup/MaxChargeVoltage",
"name": "/Settings/SystemSetup/MaxChargeVoltage",
"type": "number"
},
"name": "DVCC | CVL",
"onlyChanges": false,
"outputs": 0,
"x": 850,
"y": 200,
"wires": []
},
{
"id": "e30b3f1049387aad",
"type": "victron-input-battery",
"z": "b973eec205c3906c",
"service": "com.victronenergy.battery/288",
"path": "/Soc",
"serviceObj": {
"service": "com.victronenergy.battery/288",
"name": "SmartShunt 1000A/50mV"
},
"pathObj": {
"path": "/Soc",
"type": "float",
"name": "State of charge (%)"
},
"initial": "",
"name": "SOC",
"onlyChanges": false,
"roundValues": "3",
"outputs": 1,
"x": 90,
"y": 240,
"wires": [
[
"de812041ff0e854c",
"0930d3b37f449722"
]
]
},
{
"id": "de812041ff0e854c",
"type": "switch",
"z": "b973eec205c3906c",
"name": "100% / 70%",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "100",
"vt": "num"
},
{
"t": "lte",
"v": "70",
"vt": "num"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 290,
"y": 240,
"wires": [
[
"8aff2e3ec24a062e"
],
[
"221312a85d1a3cd7"
]
]
},
{
"id": "585ef54161067b85",
"type": "inject",
"z": "b973eec205c3906c",
"name": "manual bulk",
"props": [],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"x": 490,
"y": 320,
"wires": [
[
"221312a85d1a3cd7"
]
]
},
{
"id": "7ff277083b0bd80f",
"type": "inject",
"z": "b973eec205c3906c",
"name": "manual float",
"props": [],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"x": 490,
"y": 120,
"wires": [
[
"be0b2aad68cb075d"
]
]
},
{
"id": "7e8658e95e137146",
"type": "victron-input-custom",
"z": "b973eec205c3906c",
"service": "com.victronenergy.settings",
"path": "/Settings/SystemSetup/MaxChargeVoltage",
"serviceObj": {
"service": "com.victronenergy.settings",
"name": "com.victronenergy.settings"
},
"pathObj": {
"path": "/Settings/SystemSetup/MaxChargeVoltage",
"name": "/Settings/SystemSetup/MaxChargeVoltage",
"type": "number",
"value": 53.6
},
"name": "DVCC | CVL",
"onlyChanges": false,
"outputs": 1,
"conditionalMode": false,
"outputTrue": "",
"outputFalse": "",
"debounce": "",
"x": 850,
"y": 280,
"wires": [
[]
]
},
{
"id": "be0b2aad68cb075d",
"type": "change",
"z": "b973eec205c3906c",
"name": "53.44V",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "53.44",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 700,
"y": 200,
"wires": [
[
"7bb14501c29b2de2"
]
]
},
{
"id": "221312a85d1a3cd7",
"type": "change",
"z": "b973eec205c3906c",
"name": "0",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "0",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 690,
"y": 240,
"wires": [
[
"7bb14501c29b2de2"
]
]
},
{
"id": "8aff2e3ec24a062e",
"type": "delay",
"z": "b973eec205c3906c",
"name": "",
"pauseType": "delay",
"timeout": "30",
"timeoutUnits": "minutes",
"rate": "1",
"nbRateUnits": "1",
"rateUnits": "second",
"randomFirst": "1",
"randomLast": "5",
"randomUnits": "seconds",
"drop": false,
"allowrate": false,
"outputs": 1,
"x": 490,
"y": 200,
"wires": [
[
"be0b2aad68cb075d"
]
]
},
{
"id": "0930d3b37f449722",
"type": "function",
"z": "b973eec205c3906c",
"name": "SOC <= 70 Relais ON | >=100 Relais OFF",
"func": "// Vorherigen Zustand aus dem Kontext laden (Standard ist 0, falls noch nichts gespeichert wurde)\nlet lastState = context.get('lastState') || 0;\nlet input = Number(msg.payload);\n\nif (input <= 70) {\n msg.payload = 1;\n context.set('lastState', 1); // Zustand für das nächste Mal merken\n} else if (input >= 100) {\n msg.payload = 0;\n context.set('lastState', 0); // Zustand für das nächste Mal merken\n} else {\n // Bereich zwischen 71 und 80: Alten Zustand beibehalten (Hysterese)\n msg.payload = lastState;\n}\n\nreturn msg;\n\n\n\n",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 450,
"y": 560,
"wires": [
[
"17bd45c1331f1545"
]
]
},
{
"id": "17bd45c1331f1545",
"type": "victron-output-relay",
"z": "b973eec205c3906c",
"service": "com.victronenergy.solarcharger/0",
"path": "/Relay/0/State",
"serviceObj": {
"service": "com.victronenergy.solarcharger/0",
"name": "MPPT 450/200"
},
"pathObj": {
"path": "/Relay/0/State",
"type": "enum",
"name": "Relay on the charger",
"enum": {
"0": "Open",
"1": "Closed"
},
"mode": "both"
},
"initial": 0,
"name": "RS450/Relais -> Solax DRM",
"onlyChanges": false,
"roundValues": "no",
"rateLimit": 0,
"outputs": 0,
"conditionalMode": false,
"condition1Operator": ">",
"condition2Enabled": false,
"condition2Service": "",
"condition2Path": "",
"condition2Operator": ">",
"logicOperator": "AND",
"outputTrue": "true",
"outputFalse": "false",
"outputOnChange": false,
"debounce": 2000,
"x": 800,
"y": 560,
"wires": []
},
{
"id": "8dacb5bc63b60afa",
"type": "comment",
"z": "b973eec205c3906c",
"name": "Switches SOLAX X3 ON when SOC <=80",
"info": "",
"x": 440,
"y": 520,
"wires": []
},
{
"id": "bc1026fce496d201",
"type": "comment",
"z": "b973eec205c3906c",
"name": "When Battery voltage is at maximum, switches to float mode after a while",
"info": "",
"x": 480,
"y": 80,
"wires": []
},
{
"id": "bc9cc23e411ddabe",
"type": "comment",
"z": "b973eec205c3906c",
"name": "53,44V = 16 x 3,34V",
"info": "",
"x": 730,
"y": 159,
"wires": []
},
{
"id": "c44020a251ac8abe",
"type": "global-config",
"env": [],
"modules": {
"@victronenergy/node-red-contrib-victron": "1.6.60"
}
}
]