Hier könnte man doch auch, analog zu diesem Thread einen Toggle-Switch nehmen, nur die Verzögerung müsste man größer wählen, sodass der Hahn genug Zeit zum Öffnen und Schließen hat, oder?
So in der Art, nur die Zeiten und Relais müsstest Du natürlich anpassen, oder muss das Relais die ganze Zeit des Ablassens angezogen sein? Dann müsste man das etwas anders machen.
[
{
"id": "be36ea69e2668364",
"type": "tab",
"label": "Flow 3",
"disabled": false,
"info": "",
"env": []
},
{
"id": "87fca846062722e5",
"type": "victron-virtual-switch",
"z": "be36ea69e2668364",
"name": "Abwasser öffnen",
"outputs": 2,
"switch_1_type": 1,
"switch_1_initial": 0,
"switch_1_customname": "Abwasser öffnen",
"switch_1_group": "Abwasser",
"x": 230,
"y": 140,
"wires": [
[],
[
"8e2b4e229656588b"
]
]
},
{
"id": "c8f504e68ab93d43",
"type": "victron-output-relay",
"z": "be36ea69e2668364",
"service": "com.victronenergy.system/0",
"path": "/Relay/0/State",
"serviceObj": {
"service": "com.victronenergy.system/0",
"name": "Venus device"
},
"pathObj": {
"path": "/Relay/0/State",
"type": "enum",
"name": "Venus relay 1 state",
"enum": {
"0": "Open",
"1": "Closed"
},
"mode": "both",
"disabled": false
},
"name": "",
"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": 860,
"y": 100,
"wires": []
},
{
"id": "0d94bccbdf0335cc",
"type": "victron-output-relay",
"z": "be36ea69e2668364",
"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"
},
"mode": "both"
},
"name": "",
"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": 860,
"y": 180,
"wires": []
},
{
"id": "4d74b4ebf05ea005",
"type": "trigger",
"z": "be36ea69e2668364",
"name": "5s öffnen",
"op1": "1",
"op2": "0",
"op1type": "num",
"op2type": "num",
"duration": "5",
"extend": false,
"overrideDelay": false,
"units": "s",
"reset": "",
"bytopic": "all",
"topic": "topic",
"outputs": 1,
"x": 600,
"y": 100,
"wires": [
[
"c8f504e68ab93d43"
]
]
},
{
"id": "a416585de406d3d1",
"type": "trigger",
"z": "be36ea69e2668364",
"name": "5s schließen",
"op1": "1",
"op2": "0",
"op1type": "num",
"op2type": "num",
"duration": "5",
"extend": false,
"overrideDelay": false,
"units": "s",
"reset": "",
"bytopic": "all",
"topic": "topic",
"outputs": 1,
"x": 610,
"y": 180,
"wires": [
[
"0d94bccbdf0335cc"
]
]
},
{
"id": "8e2b4e229656588b",
"type": "switch",
"z": "be36ea69e2668364",
"name": "",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "1",
"vt": "num"
},
{
"t": "eq",
"v": "0",
"vt": "num"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 430,
"y": 140,
"wires": [
[
"4d74b4ebf05ea005"
],
[
"a416585de406d3d1"
]
]
},
{
"id": "4d07c208f18f816b",
"type": "global-config",
"env": [],
"modules": {
"@victronenergy/node-red-contrib-victron": "1.6.63"
}
}
]