So könntest du es mit einem (virtuellen) Schalter am GX umsetzen:
(geht vielleicht noch eleganter, aber das fällt mir dazu gerade auf die schnelle ein)
[
{
"id": "5edc9935dee674e9",
"type": "victron-virtual-switch",
"z": "6275bec289f837bf",
"name": "",
"outputs": 2,
"switch_1_type": "1",
"switch_1_initial": 0,
"switch_1_label": "[\"EIN\",\"AUS\"]",
"switch_1_customname": "Test ",
"switch_1_group": "Test",
"switch_1_include_measurement": false,
"switch_1_rgb_color_wheel": false,
"switch_1_cct_wheel": false,
"switch_1_rgb_white_dimmer": false,
"x": 280,
"y": 400,
"wires": [
[],
[
"ea7f98fab31a860a",
"3822e3feaccdddab"
]
]
},
{
"id": "ea7f98fab31a860a",
"type": "debug",
"z": "6275bec289f837bf",
"name": "debug 5",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 500,
"y": 600,
"wires": []
},
{
"id": "79dda3db0498db95",
"type": "trigger",
"z": "6275bec289f837bf",
"name": "",
"op1": "1",
"op2": "0",
"op1type": "num",
"op2type": "num",
"duration": "1",
"extend": false,
"overrideDelay": false,
"units": "s",
"reset": "",
"bytopic": "all",
"topic": "topic",
"outputs": 1,
"x": 740,
"y": 360,
"wires": [
[
"f8ddc7cbfe456785"
]
]
},
{
"id": "78d12c4226de43e5",
"type": "trigger",
"z": "6275bec289f837bf",
"name": "",
"op1": "1",
"op2": "0",
"op1type": "num",
"op2type": "num",
"duration": "1",
"extend": false,
"overrideDelay": false,
"units": "s",
"reset": "",
"bytopic": "all",
"topic": "topic",
"outputs": 1,
"x": 740,
"y": 440,
"wires": [
[
"712af5db2e5f17d8"
]
]
},
{
"id": "3822e3feaccdddab",
"type": "switch",
"z": "6275bec289f837bf",
"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": 530,
"y": 400,
"wires": [
[
"79dda3db0498db95"
],
[
"78d12c4226de43e5"
]
]
},
{
"id": "f8ddc7cbfe456785",
"type": "debug",
"z": "6275bec289f837bf",
"name": "debug 6",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 960,
"y": 360,
"wires": []
},
{
"id": "712af5db2e5f17d8",
"type": "debug",
"z": "6275bec289f837bf",
"name": "debug 7",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 960,
"y": 440,
"wires": []
},
{
"id": "f7f8f7d3998bb1ed",
"type": "global-config",
"env": [],
"modules": {
"@victronenergy/node-red-contrib-victron": "1.6.63"
}
}
]
Statt dem Debug 6 und 7 kommen die Relais vom Cerbo.