Hopefully that helps. You just want relay 2 to control the generator transfer switch. Relay 1 can still do the start command
[
{
"id": "467d126ab02d9302",
"type": "tab",
"label": "Flow 1",
"disabled": false,
"info": "",
"env": []
},
{
"id": "6c583ba1282199a6",
"type": "victron-input-generator",
"z": "467d126ab02d9302",
"service": "com.victronenergy.generator/0",
"path": "/State",
"serviceObj": {
"service": "com.victronenergy.generator/0",
"name": "Generator start/stop"
},
"pathObj": {
"path": "/State",
"type": "enum",
"name": "Generator start/stop state",
"enum": {
"0": "Stopped",
"1": "Running",
"2": "Warm-up",
"3": "Cool-down",
"4": "Stopping",
"10": "Error"
}
},
"initial": "",
"name": "",
"onlyChanges": false,
"x": 200,
"y": 160,
"wires": [
[
"02fffd1e96896b8a"
]
],
"outputLabels": [
"1"
]
},
{
"id": "4a12382ac25fc783",
"type": "victron-output-relay",
"z": "467d126ab02d9302",
"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"
},
"writable": true
},
"initial": "",
"name": "Relay 2 for Gen Relay",
"onlyChanges": false,
"x": 920,
"y": 160,
"wires": []
},
{
"id": "3afe392d07b2c8a5",
"type": "victron-input-digitalinput",
"z": "467d126ab02d9302",
"service": "com.victronenergy.digitalinput/1",
"path": "/State",
"serviceObj": {
"service": "com.victronenergy.digitalinput/1",
"name": "Generator"
},
"pathObj": {
"path": "/State",
"type": "enum",
"name": "Digital input state",
"enum": {
"0": "low",
"1": "high",
"2": "off",
"3": "on",
"4": "no",
"5": "yes",
"6": "open",
"7": "closed",
"8": "ok",
"9": "alarm",
"10": "running",
"11": "stopped"
}
},
"initial": "",
"name": "",
"onlyChanges": false,
"x": 140,
"y": 260,
"wires": [
[
"0fc552dd7988f0cc"
]
],
"outputLabels": [
"10"
]
},
{
"id": "e109803fd2dec8a2",
"type": "debug",
"z": "467d126ab02d9302",
"name": "Gen State",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 820,
"y": 260,
"wires": []
},
{
"id": "7ba5d1cbf13031a8",
"type": "switch",
"z": "467d126ab02d9302",
"name": "Gen Ready",
"property": "Gen_Ready",
"propertyType": "flow",
"rules": [
{
"t": "eq",
"v": "10",
"vt": "num"
}
],
"checkall": "true",
"repair": false,
"outputs": 1,
"x": 690,
"y": 160,
"wires": [
[
"4a12382ac25fc783",
"6904d3d65a390b9c"
]
]
},
{
"id": "6904d3d65a390b9c",
"type": "debug",
"z": "467d126ab02d9302",
"name": "Relay state On",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 900,
"y": 100,
"wires": []
},
{
"id": "0fc552dd7988f0cc",
"type": "change",
"z": "467d126ab02d9302",
"name": "",
"rules": [
{
"t": "set",
"p": "Gen_Ready",
"pt": "flow",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 540,
"y": 260,
"wires": [
[
"e109803fd2dec8a2"
]
]
},
{
"id": "55ba9edea1981cdd",
"type": "victron-input-generator",
"z": "467d126ab02d9302",
"service": "com.victronenergy.generator/0",
"path": "/State",
"serviceObj": {
"service": "com.victronenergy.generator/0",
"name": "Generator start/stop"
},
"pathObj": {
"path": "/State",
"type": "enum",
"name": "Generator start/stop state",
"enum": {
"0": "Stopped",
"1": "Running",
"2": "Warm-up",
"3": "Cool-down",
"4": "Stopping",
"10": "Error"
}
},
"initial": "",
"name": "",
"onlyChanges": false,
"x": 200,
"y": 340,
"wires": [
[
"34ab2a7760a73e08"
]
],
"outputLabels": [
"1"
]
},
{
"id": "34ab2a7760a73e08",
"type": "change",
"z": "467d126ab02d9302",
"name": "",
"rules": [
{
"t": "set",
"p": "Gen_Running",
"pt": "flow",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 540,
"y": 340,
"wires": [
[
"d8956f472259d8e7"
]
]
},
{
"id": "d8956f472259d8e7",
"type": "debug",
"z": "467d126ab02d9302",
"name": "Gen Running",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 830,
"y": 340,
"wires": []
},
{
"id": "02fffd1e96896b8a",
"type": "switch",
"z": "467d126ab02d9302",
"name": "Gen Running",
"property": "Gen_Running",
"propertyType": "flow",
"rules": [
{
"t": "eq",
"v": "1",
"vt": "num"
}
],
"checkall": "true",
"repair": false,
"outputs": 1,
"x": 510,
"y": 160,
"wires": [
[
"7ba5d1cbf13031a8"
]
]
},
{
"id": "c88aa249e765879b",
"type": "inject",
"z": "467d126ab02d9302",
"name": "",
"props": [
{
"p": "payload"
}
],
"repeat": "5",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "0",
"payloadType": "num",
"x": 90,
"y": 100,
"wires": [
[
"27f3c709a65bd6c9",
"ae7bee9d64706d14"
]
]
},
{
"id": "27f3c709a65bd6c9",
"type": "switch",
"z": "467d126ab02d9302",
"name": "Gen Running",
"property": "Gen_Running",
"propertyType": "flow",
"rules": [
{
"t": "eq",
"v": "0",
"vt": "num"
},
{
"t": "gte",
"v": "2",
"vt": "num"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 510,
"y": 100,
"wires": [
[
"4a12382ac25fc783",
"ae4b7718f121945a"
],
[
"4a12382ac25fc783",
"ae4b7718f121945a"
]
]
},
{
"id": "ae7bee9d64706d14",
"type": "switch",
"z": "467d126ab02d9302",
"name": "Gen Ready",
"property": "Gen_Ready",
"propertyType": "flow",
"rules": [
{
"t": "lt",
"v": "10",
"vt": "num"
},
{
"t": "gt",
"v": "10",
"vt": "num"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 510,
"y": 40,
"wires": [
[
"4a12382ac25fc783",
"cb5d2e177f7e4ed7"
],
[
"4a12382ac25fc783",
"cb5d2e177f7e4ed7"
]
]
},
{
"id": "ae4b7718f121945a",
"type": "debug",
"z": "467d126ab02d9302",
"name": "Relay state 2 Off",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 910,
"y": 60,
"wires": []
},
{
"id": "cb5d2e177f7e4ed7",
"type": "debug",
"z": "467d126ab02d9302",
"name": "Relay state 1 Off",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 910,
"y": 20,
"wires": []
}
]