Hello. I have different machines. Each machine sends a value for "system is OK" . If there is any failure in any system, then its value is changing to failure code.
I have here the nodes and it should works. I have to expand it to all failure siuations... It takes lot of time. Anyway: Have somebody an idea to minimize my nodes, save the trigger nodes?
[
{
"id": "073cf9698e9cb44f",
"type": "switch",
"z": "1a0d5b259b9dac43",
"name": "",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "neq",
"v": "U0-00",
"vt": "str"
},
{
"t": "else"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 510,
"y": 2700,
"wires": [
[
"109c48757f0c696e"
],
[
"635b0c538f583d83"
]
]
},
{
"id": "81147b764793105f",
"type": "switch",
"z": "1a0d5b259b9dac43",
"name": "",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "false"
},
{
"t": "true"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 490,
"y": 2780,
"wires": [
[
"05662dba8bb3c9f0"
],
[
"299b9f4e3dfe8a22"
]
]
},
{
"id": "109c48757f0c696e",
"type": "trigger",
"z": "1a0d5b259b9dac43",
"name": "",
"op1": "true",
"op2": "",
"op1type": "bool",
"op2type": "nul",
"duration": "250",
"extend": false,
"overrideDelay": false,
"units": "ms",
"reset": "",
"bytopic": "all",
"topic": "topic",
"outputs": 1,
"x": 680,
"y": 2680,
"wires": [
[
"06bc12ec6d8ad856"
]
]
},
{
"id": "90c2daec9a3d7dff",
"type": "inject",
"z": "1a0d5b259b9dac43",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "U0-00",
"payloadType": "str",
"x": 190,
"y": 2700,
"wires": [
[
"073cf9698e9cb44f"
]
]
},
{
"id": "0c9c82f998bb8473",
"type": "inject",
"z": "1a0d5b259b9dac43",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "U0-01",
"payloadType": "str",
"x": 350,
"y": 2720,
"wires": [
[
"073cf9698e9cb44f"
]
]
},
{
"id": "730accf3a9d59347",
"type": "comment",
"z": "1a0d5b259b9dac43",
"name": "System is OK",
"info": "",
"x": 170,
"y": 2640,
"wires": []
},
{
"id": "5c7c98dd9e637963",
"type": "comment",
"z": "1a0d5b259b9dac43",
"name": "System fail",
"info": "",
"x": 340,
"y": 2640,
"wires": []
},
{
"id": "db4aa68fb442d7b2",
"type": "inject",
"z": "1a0d5b259b9dac43",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "true",
"payloadType": "bool",
"x": 350,
"y": 2800,
"wires": [
[
"81147b764793105f"
]
]
},
{
"id": "ba7a28d6859659f5",
"type": "inject",
"z": "1a0d5b259b9dac43",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "false",
"payloadType": "bool",
"x": 190,
"y": 2780,
"wires": [
[
"81147b764793105f"
]
]
},
{
"id": "06bc12ec6d8ad856",
"type": "toggle",
"z": "1a0d5b259b9dac43",
"name": "",
"onOffTopic": "",
"onValue": "true",
"onType": "bool",
"offValue": "false",
"offType": "bool",
"toggleTopic": "",
"toggleValue": "",
"toggleType": "str",
"passOnOff": "always",
"x": 910,
"y": 2800,
"wires": [
[
"989bf70e48631103"
]
]
},
{
"id": "989bf70e48631103",
"type": "debug",
"z": "1a0d5b259b9dac43",
"name": "debug 11",
"active": true,
"tosidebar": false,
"console": false,
"tostatus": true,
"complete": "payload",
"targetType": "msg",
"statusVal": "payload",
"statusType": "auto",
"x": 1020,
"y": 2700,
"wires": []
},
{
"id": "635b0c538f583d83",
"type": "trigger",
"z": "1a0d5b259b9dac43",
"name": "",
"op1": "false",
"op2": "",
"op1type": "bool",
"op2type": "nul",
"duration": "250",
"extend": false,
"overrideDelay": false,
"units": "ms",
"reset": "",
"bytopic": "all",
"topic": "topic",
"outputs": 1,
"x": 680,
"y": 2720,
"wires": [
[
"06bc12ec6d8ad856"
]
]
},
{
"id": "299b9f4e3dfe8a22",
"type": "trigger",
"z": "1a0d5b259b9dac43",
"name": "",
"op1": "true",
"op2": "",
"op1type": "bool",
"op2type": "nul",
"duration": "250",
"extend": false,
"overrideDelay": false,
"units": "ms",
"reset": "",
"bytopic": "all",
"topic": "topic",
"outputs": 1,
"x": 680,
"y": 2820,
"wires": [
[
"06bc12ec6d8ad856"
]
]
},
{
"id": "05662dba8bb3c9f0",
"type": "trigger",
"z": "1a0d5b259b9dac43",
"name": "",
"op1": "false",
"op2": "",
"op1type": "bool",
"op2type": "nul",
"duration": "250",
"extend": false,
"overrideDelay": false,
"units": "ms",
"reset": "",
"bytopic": "all",
"topic": "topic",
"outputs": 1,
"x": 680,
"y": 2780,
"wires": [
[
"06bc12ec6d8ad856"
]
]
}
]