Thank you for such support I am very grateful for your time.
So I attach photo of my desk to test
You can see that I want to make sequences for each buttons: for example when I push blue button the sequence starts: 10 seconds to open relay number 1, 2, and then relay 1, 2 close and relay number 5, 7 open for 15 seconds, and then relay number 10, 11 open for specific time. I have to think also to add rgb light to this and sound. So it will be the whole sequence for one button during 120 seconds.
my code is below
[
{
"id": "a7c04de751f0d70c",
"type": "tab",
"label": "Flow 1",
"disabled": false,
"info": "",
"env": []
},
{
"id": "71c5874690970252",
"type": "inject",
"z": "a7c04de751f0d70c",
"name": "RED-ON",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "1",
"payloadType": "num",
"x": 300,
"y": 280,
"wires": [
[
"40df411fb5f96a2c"
]
]
},
{
"id": "40df411fb5f96a2c",
"type": "rpi-gpio out",
"z": "a7c04de751f0d70c",
"name": "GPIO 17 - RED",
"pin": "17",
"set": true,
"level": "0",
"freq": "",
"out": "out",
"bcm": true,
"x": 560,
"y": 280,
"wires": []
},
{
"id": "46de8f397d8c30a1",
"type": "inject",
"z": "a7c04de751f0d70c",
"name": "RED-OFF",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "0",
"payloadType": "num",
"x": 300,
"y": 320,
"wires": [
[
"40df411fb5f96a2c"
]
]
},
{
"id": "ef66caf2b21542a9",
"type": "rpi-gpio out",
"z": "a7c04de751f0d70c",
"name": "GPIO 27 - BLUE",
"pin": "27",
"set": true,
"level": "0",
"freq": "",
"out": "out",
"bcm": true,
"x": 560,
"y": 400,
"wires": []
},
{
"id": "b88acd49fd7f9063",
"type": "inject",
"z": "a7c04de751f0d70c",
"name": "BLUE-ON",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "1",
"payloadType": "num",
"x": 300,
"y": 380,
"wires": [
[
"ef66caf2b21542a9"
]
]
},
{
"id": "cba5f36ac3613151",
"type": "inject",
"z": "a7c04de751f0d70c",
"name": "BLUE-OFF",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "0",
"payloadType": "num",
"x": 300,
"y": 420,
"wires": [
[
"ef66caf2b21542a9"
]
]
},
{
"id": "033fcf1c4f2338fe",
"type": "inject",
"z": "a7c04de751f0d70c",
"name": "GREEN-ON",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "1",
"payloadType": "num",
"x": 310,
"y": 480,
"wires": [
[
"ac23678b6847aab2"
]
]
},
{
"id": "02863a3a36443f1f",
"type": "inject",
"z": "a7c04de751f0d70c",
"name": "GREEN-OFF",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "0",
"payloadType": "num",
"x": 310,
"y": 520,
"wires": [
[
"ac23678b6847aab2"
]
]
},
{
"id": "ac23678b6847aab2",
"type": "rpi-gpio out",
"z": "a7c04de751f0d70c",
"name": "GPIO 23 - GREEN",
"pin": "23",
"set": true,
"level": "0",
"freq": "",
"out": "out",
"bcm": true,
"x": 570,
"y": 500,
"wires": []
},
{
"id": "00220d4e445fbed3",
"type": "rpi-gpio out",
"z": "a7c04de751f0d70c",
"name": "GPIO 18 - 1 relay",
"pin": "18",
"set": true,
"level": "1",
"freq": "",
"out": "out",
"bcm": true,
"x": 590,
"y": 640,
"wires": []
},
{
"id": "b4d9913244bee701",
"type": "inject",
"z": "a7c04de751f0d70c",
"name": "GPIO 18 - 1 relay [ON]",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "0",
"payloadType": "num",
"x": 340,
"y": 620,
"wires": [
[
"00220d4e445fbed3"
]
]
},
{
"id": "6c678d10e23c9564",
"type": "inject",
"z": "a7c04de751f0d70c",
"name": "GPIO 18 - 1 relay [OFF]",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "1",
"payloadType": "num",
"x": 340,
"y": 680,
"wires": [
[
"00220d4e445fbed3"
]
]
},
{
"id": "180611fd8dd658ca",
"type": "inject",
"z": "a7c04de751f0d70c",
"name": "GPIO 4 - 2 relay [ON]",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "0",
"payloadType": "num",
"x": 340,
"y": 740,
"wires": [
[
"22f07224c42d5ae0"
]
]
},
{
"id": "a03b07af069d06d8",
"type": "inject",
"z": "a7c04de751f0d70c",
"name": "GPIO 4 - 2 relay [OFF]",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "1",
"payloadType": "num",
"x": 340,
"y": 800,
"wires": [
[
"22f07224c42d5ae0"
]
]
},
{
"id": "22f07224c42d5ae0",
"type": "rpi-gpio out",
"z": "a7c04de751f0d70c",
"name": "GPIO 4 - 2 relay",
"pin": "4",
"set": true,
"level": "1",
"freq": "",
"out": "out",
"bcm": true,
"x": 580,
"y": 760,
"wires": []
},
{
"id": "86ec22e13688bf46",
"type": "inject",
"z": "a7c04de751f0d70c",
"name": "GPIO 22 - 3 relay [ON]",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "0",
"payloadType": "num",
"x": 340,
"y": 860,
"wires": [
[
"20f17aa86bd3900d"
]
]
},
{
"id": "3094eac688372230",
"type": "inject",
"z": "a7c04de751f0d70c",
"name": "GPIO 22 - 3 relay [OFF]",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "1",
"payloadType": "num",
"x": 340,
"y": 920,
"wires": [
[
"20f17aa86bd3900d"
]
]
},
{
"id": "20f17aa86bd3900d",
"type": "rpi-gpio out",
"z": "a7c04de751f0d70c",
"name": "GPIO 22 - 3 relay",
"pin": "22",
"set": true,
"level": "1",
"freq": "",
"out": "out",
"bcm": true,
"x": 590,
"y": 880,
"wires": []
},
{
"id": "c75f3d81966f4a42",
"type": "inject",
"z": "a7c04de751f0d70c",
"name": "GPIO 5 - 4 relay [ON]",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "0",
"payloadType": "num",
"x": 340,
"y": 980,
"wires": [
[
"a22644f09c453d6b"
]
]
},
{
"id": "546bed0d4a38a0c7",
"type": "inject",
"z": "a7c04de751f0d70c",
"name": "GPIO 5 - 4 relay [OFF]",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "1",
"payloadType": "num",
"x": 340,
"y": 1040,
"wires": [
[
"a22644f09c453d6b"
]
]
},
{
"id": "a22644f09c453d6b",
"type": "rpi-gpio out",
"z": "a7c04de751f0d70c",
"name": "GPIO 5 - 4 relay",
"pin": "5",
"set": true,
"level": "1",
"freq": "",
"out": "out",
"bcm": true,
"x": 580,
"y": 1000,
"wires": []
},
{
"id": "dc30e5217dcba658",
"type": "inject",
"z": "a7c04de751f0d70c",
"name": "GPIO 6 - 5 relay [ON]",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "0",
"payloadType": "num",
"x": 340,
"y": 1100,
"wires": [
[
"b97a719da33147cc"
]
]
},
{
"id": "eda1bbe67363472f",
"type": "inject",
"z": "a7c04de751f0d70c",
"name": "GPIO 6 - 5 relay [OFF]",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "1",
"payloadType": "num",
"x": 340,
"y": 1160,
"wires": [
[
"b97a719da33147cc"
]
]
},
{
"id": "b97a719da33147cc",
"type": "rpi-gpio out",
"z": "a7c04de751f0d70c",
"name": "GPIO 6 - 5 relay",
"pin": "6",
"set": true,
"level": "1",
"freq": "",
"out": "out",
"bcm": true,
"x": 580,
"y": 1120,
"wires": []
},
{
"id": "fb89175ab1fb44d6",
"type": "inject",
"z": "a7c04de751f0d70c",
"name": "GPIO 13 - 6 relay [ON]",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "0",
"payloadType": "num",
"x": 340,
"y": 1220,
"wires": [
[
"9e44fc7bb5a6f6c7"
]
]
},
{
"id": "1e429d2368eb3d50",
"type": "inject",
"z": "a7c04de751f0d70c",
"name": "GPIO 13 - 6 relay [OFF]",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "1",
"payloadType": "num",
"x": 340,
"y": 1280,
"wires": [
[
"9e44fc7bb5a6f6c7"
]
]
},
{
"id": "9e44fc7bb5a6f6c7",
"type": "rpi-gpio out",
"z": "a7c04de751f0d70c",
"name": "GPIO 13 - 6 relay",
"pin": "13",
"set": true,
"level": "1",
"freq": "",
"out": "out",
"bcm": true,
"x": 590,
"y": 1240,
"wires": []
},
{
"id": "692677f4f265f945",
"type": "inject",
"z": "a7c04de751f0d70c",
"name": "GPIO 19 - 7 relay [ON]",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "0",
"payloadType": "num",
"x": 340,
"y": 1340,
"wires": [
[
"a162c62bf410cb2f"
]
]
},
{
"id": "2cc69d3a52ca883e",
"type": "inject",
"z": "a7c04de751f0d70c",
"name": "GPIO 19 - 7 relay [OFF]",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "1",
"payloadType": "num",
"x": 340,
"y": 1400,
"wires": [
[
"a162c62bf410cb2f"
]
]
},
{
"id": "a162c62bf410cb2f",
"type": "rpi-gpio out",
"z": "a7c04de751f0d70c",
"name": "GPIO 19 - 7 relay",
"pin": "19",
"set": true,
"level": "1",
"freq": "",
"out": "out",
"bcm": true,
"x": 590,
"y": 1360,
"wires": []
},
{
"id": "a18f6efe250b26c7",
"type": "inject",
"z": "a7c04de751f0d70c",
"name": "GPIO 24 - 8 relay [ON]",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "0",
"payloadType": "num",
"x": 340,
"y": 1460,
"wires": [
[
"abf0336989dd502b"
]
]
},
{
"id": "65a68a9793e78878",
"type": "inject",
"z": "a7c04de751f0d70c",
"name": "GPIO 24 - 8 relay [OFF]",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "1",
"payloadType": "num",
"x": 340,
"y": 1520,
"wires": [
[
"abf0336989dd502b"
]
]
},
{
"id": "abf0336989dd502b",
"type": "rpi-gpio out",
"z": "a7c04de751f0d70c",
"name": "GPIO 24 - 8 relay",
"pin": "24",
"set": true,
"level": "1",
"freq": "",
"out": "out",
"bcm": true,
"x": 590,
"y": 1480,
"wires": []
},
{
"id": "ea7b7e54ea9c3542",
"type": "inject",
"z": "a7c04de751f0d70c",
"name": "GPIO 25 - 9 relay [ON]",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "0",
"payloadType": "num",
"x": 340,
"y": 1580,
"wires": [
[
"c89736665c727dd6"
]
]
},
{
"id": "80e0b13e899f352d",
"type": "inject",
"z": "a7c04de751f0d70c",
"name": "GPIO 25 - 9 relay [OFF]",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "1",
"payloadType": "num",
"x": 340,
"y": 1640,
"wires": [
[
"c89736665c727dd6"
]
]
},
{
"id": "c89736665c727dd6",
"type": "rpi-gpio out",
"z": "a7c04de751f0d70c",
"name": "GPIO 25 - 9 relay",
"pin": "25",
"set": false,
"level": "1",
"freq": "",
"out": "out",
"bcm": true,
"x": 590,
"y": 1600,
"wires": []
},
{
"id": "2971eb4001b641ea",
"type": "inject",
"z": "a7c04de751f0d70c",
"name": "GPIO 12 - 10 relay [ON]",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "0",
"payloadType": "num",
"x": 340,
"y": 1700,
"wires": [
[
"755919522cdeadca"
]
]
},
{
"id": "994f20862b19b7d4",
"type": "inject",
"z": "a7c04de751f0d70c",
"name": "GPIO 12 - 10 relay [OFF]",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "1",
"payloadType": "num",
"x": 350,
"y": 1760,
"wires": [
[
"755919522cdeadca"
]
]
},
{
"id": "755919522cdeadca",
"type": "rpi-gpio out",
"z": "a7c04de751f0d70c",
"name": "GPIO 12 - 10 relay",
"pin": "12",
"set": true,
"level": "1",
"freq": "",
"out": "out",
"bcm": true,
"x": 590,
"y": 1720,
"wires": []
},
{
"id": "eef14abb7f1f0943",
"type": "inject",
"z": "a7c04de751f0d70c",
"name": "GPIO 16 - 11 relay [ON]",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "0",
"payloadType": "num",
"x": 340,
"y": 1820,
"wires": [
[
"a782108a520dd316"
]
]
},
{
"id": "b2c37c4ac1def429",
"type": "inject",
"z": "a7c04de751f0d70c",
"name": "GPIO 16 - 11 relay [OFF]",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "1",
"payloadType": "num",
"x": 350,
"y": 1880,
"wires": [
[
"a782108a520dd316"
]
]
},
{
"id": "a782108a520dd316",
"type": "rpi-gpio out",
"z": "a7c04de751f0d70c",
"name": "GPIO 16 - 11 relay",
"pin": "16",
"set": true,
"level": "1",
"freq": "",
"out": "out",
"bcm": true,
"x": 590,
"y": 1840,
"wires": []
},
{
"id": "6d06cd5560b2d01c",
"type": "inject",
"z": "a7c04de751f0d70c",
"name": "GPIO 12 - 12 relay [ON]",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "0",
"payloadType": "num",
"x": 340,
"y": 1940,
"wires": [
[
"34160d1c4ca0d429"
]
]
},
{
"id": "26b7778655c61dfa",
"type": "inject",
"z": "a7c04de751f0d70c",
"name": "GPIO 12 - 12 relay [OFF]",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "1",
"payloadType": "num",
"x": 350,
"y": 2000,
"wires": [
[
"34160d1c4ca0d429"
]
]
},
{
"id": "34160d1c4ca0d429",
"type": "rpi-gpio out",
"z": "a7c04de751f0d70c",
"name": "GPIO 20 - 12 relay",
"pin": "20",
"set": true,
"level": "1",
"freq": "",
"out": "out",
"bcm": true,
"x": 590,
"y": 1960,
"wires": []
},
{
"id": "785c3c87278d24d1",
"type": "inject",
"z": "a7c04de751f0d70c",
"name": "GPIO 26 - 13 relay [ON]",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "0",
"payloadType": "num",
"x": 340,
"y": 2060,
"wires": [
[
"058763cf1630e937"
]
]
},
{
"id": "985b6a325e9fc820",
"type": "inject",
"z": "a7c04de751f0d70c",
"name": "GPIO 26 - 13 relay [OFF]",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "1",
"payloadType": "num",
"x": 350,
"y": 2120,
"wires": [
[
"058763cf1630e937"
]
]
},
{
"id": "058763cf1630e937",
"type": "rpi-gpio out",
"z": "a7c04de751f0d70c",
"name": "GPIO 26 - 13 relay",
"pin": "26",
"set": true,
"level": "1",
"freq": "",
"out": "out",
"bcm": true,
"x": 590,
"y": 2080,
"wires": []
},
{
"id": "1b920d2c6466dd9b",
"type": "inject",
"z": "a7c04de751f0d70c",
"name": "GPIO 21 - 14 relay [ON]",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "0",
"payloadType": "num",
"x": 340,
"y": 2180,
"wires": [
[
"687597d052585521"
]
]
},
{
"id": "58f2127b06970b19",
"type": "inject",
"z": "a7c04de751f0d70c",
"name": "GPIO 21 - 14 relay [OFF]",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "1",
"payloadType": "num",
"x": 350,
"y": 2240,
"wires": [
[
"687597d052585521"
]
]
},
{
"id": "687597d052585521",
"type": "rpi-gpio out",
"z": "a7c04de751f0d70c",
"name": "GPIO 21 - 14 relay",
"pin": "21",
"set": true,
"level": "1",
"freq": "",
"out": "out",
"bcm": true,
"x": 590,
"y": 2200,
"wires": []
},
{
"id": "281aeb11f1837b3c",
"type": "inject",
"z": "a7c04de751f0d70c",
"name": "GPIO 10 - 15 relay [ON]",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "0",
"payloadType": "num",
"x": 340,
"y": 2300,
"wires": [
[
"2a5f093afde59f9f"
]
]
},
{
"id": "14486318ad2799a5",
"type": "inject",
"z": "a7c04de751f0d70c",
"name": "GPIO 10 - 15 relay [OFF]",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "1",
"payloadType": "num",
"x": 350,
"y": 2360,
"wires": [
[
"2a5f093afde59f9f"
]
]
},
{
"id": "2a5f093afde59f9f",
"type": "rpi-gpio out",
"z": "a7c04de751f0d70c",
"name": "GPIO 10 - 15 relay",
"pin": "10",
"set": true,
"level": "1",
"freq": "",
"out": "out",
"bcm": true,
"x": 590,
"y": 2320,
"wires": []
},
{
"id": "122b28cd8178aaae",
"type": "inject",
"z": "a7c04de751f0d70c",
"name": "GPIO 9 - 16 relay [ON]",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "0",
"payloadType": "num",
"x": 340,
"y": 2420,
"wires": [
[
"61dc8a60d5b5dcc5"
]
]
},
{
"id": "01021f15b5af9107",
"type": "inject",
"z": "a7c04de751f0d70c",
"name": "GPIO 9 - 16 relay [OFF]",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "1",
"payloadType": "num",
"x": 340,
"y": 2480,
"wires": [
[
"61dc8a60d5b5dcc5"
]
]
},
{
"id": "61dc8a60d5b5dcc5",
"type": "rpi-gpio out",
"z": "a7c04de751f0d70c",
"name": "GPIO 9 - 16 relay",
"pin": "9",
"set": true,
"level": "1",
"freq": "",
"out": "out",
"bcm": true,
"x": 590,
"y": 2440,
"wires": []
},
{
"id": "13cd8768c66047f5",
"type": "rpi-gpio in",
"z": "a7c04de751f0d70c",
"name": "GPIO 11 - Yellow Button",
"pin": "11",
"intype": "tri",
"debounce": "100",
"read": false,
"bcm": true,
"x": 900,
"y": 2620,
"wires": [
[
"61fa470f1877e278"
]
]
},
{
"id": "33eff1e864e8377e",
"type": "rpi-gpio out",
"z": "a7c04de751f0d70c",
"name": "GPIO 9 - 16 relay",
"pin": "9",
"set": false,
"level": "1",
"freq": "",
"out": "out",
"bcm": true,
"x": 1570,
"y": 2600,
"wires": []
},
{
"id": "4620a3d01878af9b",
"type": "rpi-gpio in",
"z": "a7c04de751f0d70c",
"name": "GPIO 14 - Blue Button",
"pin": "14",
"intype": "tri",
"debounce": "100",
"read": false,
"bcm": true,
"x": 900,
"y": 2700,
"wires": [
[]
]
},
{
"id": "6b3c06b7f78b94e4",
"type": "rpi-gpio in",
"z": "a7c04de751f0d70c",
"name": "GPIO 15 - Blue Button",
"pin": "15",
"intype": "tri",
"debounce": "100",
"read": false,
"bcm": true,
"x": 900,
"y": 2780,
"wires": [
[]
]
},
{
"id": "db0502faea8be49f",
"type": "rpi-gpio out",
"z": "a7c04de751f0d70c",
"name": "GPIO 10 - 15 relay",
"pin": "10",
"set": false,
"level": "1",
"freq": "",
"out": "out",
"bcm": true,
"x": 1570,
"y": 2680,
"wires": []
},
{
"id": "cc4bb08dbcf7e3cf",
"type": "rpi-gpio out",
"z": "a7c04de751f0d70c",
"name": "GPIO 21 - 14 relay",
"pin": "21",
"set": false,
"level": "1",
"freq": "",
"out": "out",
"bcm": true,
"x": 1570,
"y": 2760,
"wires": []
},
{
"id": "61fa470f1877e278",
"type": "trigger",
"z": "a7c04de751f0d70c",
"name": "",
"op1": "",
"op2": "0",
"op1type": "pay",
"op2type": "str",
"duration": "0",
"extend": false,
"overrideDelay": false,
"units": "ms",
"reset": "",
"bytopic": "all",
"topic": "topic",
"outputs": 1,
"x": 1140,
"y": 2620,
"wires": [
[
"72ac56deb16e20c9",
"fa8a042992930565"
]
]
},
{
"id": "7ad0d6f4b25968fc",
"type": "function",
"z": "a7c04de751f0d70c",
"name": "Send 'reset'",
"func": "msg.reset = \"reset\";\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 1130,
"y": 2440,
"wires": [
[
"61fa470f1877e278"
]
]
},
{
"id": "72ac56deb16e20c9",
"type": "switch",
"z": "a7c04de751f0d70c",
"name": "",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "GPIO 11 - Yellow Button",
"vt": "str"
},
{
"t": "eq",
"v": "GPIO 14 - Blue Button",
"vt": "str"
},
{
"t": "eq",
"v": "GPIO 15 - Blue Button",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 3,
"x": 1350,
"y": 2620,
"wires": [
[
"33eff1e864e8377e"
],
[
"db0502faea8be49f"
],
[
"cc4bb08dbcf7e3cf"
]
]
},
{
"id": "fa8a042992930565",
"type": "delay",
"z": "a7c04de751f0d70c",
"name": "",
"pauseType": "delay",
"timeout": "5",
"timeoutUnits": "seconds",
"rate": "1",
"nbRateUnits": "1",
"rateUnits": "second",
"randomFirst": "1",
"randomLast": "5",
"randomUnits": "seconds",
"drop": false,
"allowrate": false,
"outputs": 1,
"x": 1340,
"y": 2500,
"wires": [
[
"7ad0d6f4b25968fc"
]
]
}
]