Multiple physical buttons GPIO - only one push button at a time + RGB strip and relays sequence with variable delays

In my code you see a lot of nodes to test my GPIOs pins and below is the beginnig of the right code with your sugestions.
I am still combine, mix your ideas but the main problem is that I can't turn on any relays

It would help when you open a thread, if you explained your needs in detail. Something like:

  1. press blue button
  • open relay 1 and 2 for 10 seconds then close
  • open relay 5 and 7 for 15 seconds then close
  • open relay 10 and 11 for ??? then close
    ???

You should draw a flow chart showing the steps each button will trigger. Once you have that clearly established, creating the flow will be much easier.

here is an example of how you could code the flows:

[{"id":"0d528fab50046119","type":"tab","label":"Flow 5","disabled":false,"info":"","env":[]},{"id":"ed9404a32493f348","type":"inject","z":"0d528fab50046119","name":"Yellow button","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"yellow","payloadType":"str","x":150,"y":100,"wires":[["fa397cd50e53da64"]]},{"id":"542ec01399d74cdf","type":"inject","z":"0d528fab50046119","name":"Blue button","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"blue","payloadType":"str","x":150,"y":240,"wires":[["fa397cd50e53da64"]]},{"id":"f6aac4011f02294d","type":"inject","z":"0d528fab50046119","name":"Red button","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"red","payloadType":"str","x":140,"y":340,"wires":[["fa397cd50e53da64"]]},{"id":"504994e68a6fd402","type":"debug","z":"0d528fab50046119","name":"relay 2","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":890,"y":220,"wires":[]},{"id":"8ab0c75a9b116c02","type":"debug","z":"0d528fab50046119","name":"relay 3","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":890,"y":280,"wires":[]},{"id":"4974e765e65fc82b","type":"switch","z":"0d528fab50046119","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"yellow","vt":"str"},{"t":"eq","v":"blue","vt":"str"},{"t":"eq","v":"red","vt":"str"}],"checkall":"true","repair":false,"outputs":3,"x":530,"y":220,"wires":[["69b7e8b006a31a35","da6c8df97f937447"],["504994e68a6fd402"],["8ab0c75a9b116c02"]]},{"id":"fa397cd50e53da64","type":"trigger","z":"0d528fab50046119","name":"","op1":"","op2":"","op1type":"pay","op2type":"nul","duration":"120","extend":false,"overrideDelay":false,"units":"s","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":370,"y":220,"wires":[["4974e765e65fc82b","afc13208a4ecf8bf"]]},{"id":"69b7e8b006a31a35","type":"link out","z":"0d528fab50046119","name":"Yellow process","mode":"link","links":["7c7a23a476aab0ee"],"x":900,"y":160,"wires":[],"l":true},{"id":"7c7a23a476aab0ee","type":"link in","z":"0d528fab50046119","name":"Yellow steps","links":["69b7e8b006a31a35"],"x":190,"y":420,"wires":[["a75bd7e77e908c3a"]],"l":true},{"id":"a75bd7e77e908c3a","type":"trigger","z":"0d528fab50046119","name":"","op1":"true","op2":"false","op1type":"bool","op2type":"bool","duration":"10","extend":false,"overrideDelay":false,"units":"s","reset":"","bytopic":"all","topic":"topic","outputs":2,"x":390,"y":420,"wires":[["c0504b38e90d6eb3","0f4a2226c5a95ced"],["60ccc0143f1b53ed","c0504b38e90d6eb3","0f4a2226c5a95ced"]]},{"id":"60ccc0143f1b53ed","type":"trigger","z":"0d528fab50046119","name":"","op1":"true","op2":"false","op1type":"bool","op2type":"bool","duration":"15","extend":false,"overrideDelay":false,"units":"s","reset":"","bytopic":"all","topic":"topic","outputs":2,"x":390,"y":560,"wires":[["a7912777db20fc50","4f45f48fe08bfd62"],["ebb02d9a36f3783b","a7912777db20fc50","4f45f48fe08bfd62"]]},{"id":"ebb02d9a36f3783b","type":"trigger","z":"0d528fab50046119","name":"","op1":"true","op2":"false","op1type":"bool","op2type":"bool","duration":"15","extend":false,"overrideDelay":false,"units":"s","reset":"","bytopic":"all","topic":"topic","outputs":2,"x":370,"y":700,"wires":[[],[]]},{"id":"04dc5ca75bfa26f9","type":"debug","z":"0d528fab50046119","name":"relay 10","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":660,"y":680,"wires":[]},{"id":"82265b61c3b50533","type":"debug","z":"0d528fab50046119","name":"relay 11","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":660,"y":720,"wires":[]},{"id":"c0504b38e90d6eb3","type":"ui_led","z":"0d528fab50046119","order":0,"group":"6b035abc47b2f45e","width":"6","height":"1","label":"relay 1","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"#ff0000","value":"false","valueType":"bool"},{"color":"#008000","value":"true","valueType":"bool"}],"allowColorForValueInMessage":false,"shape":"circle","showGlow":true,"name":"relay 1","x":650,"y":400,"wires":[]},{"id":"0f4a2226c5a95ced","type":"ui_led","z":"0d528fab50046119","order":0,"group":"6b035abc47b2f45e","width":"6","height":"1","label":"relay 2","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"#ff0000","value":"false","valueType":"bool"},{"color":"#008000","value":"true","valueType":"bool"}],"allowColorForValueInMessage":false,"shape":"circle","showGlow":true,"name":"relay 2","x":650,"y":440,"wires":[]},{"id":"42f34d0294477c09","type":"ui_button","z":"0d528fab50046119","name":"Yellow button","group":"6b035abc47b2f45e","order":1,"width":0,"height":0,"passthru":false,"label":"Yellow button","tooltip":"","color":"","bgcolor":"","className":"","icon":"","payload":"yellow","payloadType":"str","topic":"topic","topicType":"msg","x":160,"y":140,"wires":[["fa397cd50e53da64"]]},{"id":"f2a25d61c1b63ba1","type":"ui_button","z":"0d528fab50046119","name":"Blue button","group":"6b035abc47b2f45e","order":1,"width":0,"height":0,"passthru":false,"label":"Blue button","tooltip":"","color":"","bgcolor":"","className":"","icon":"","payload":"blue","payloadType":"str","topic":"topic","topicType":"msg","x":150,"y":200,"wires":[["fa397cd50e53da64"]]},{"id":"249f5d1fc753372e","type":"ui_button","z":"0d528fab50046119","name":"Red button","group":"6b035abc47b2f45e","order":1,"width":0,"height":0,"passthru":false,"label":"Red button","tooltip":"","color":"","bgcolor":"","className":"","icon":"","payload":"red","payloadType":"str","topic":"topic","topicType":"msg","x":150,"y":300,"wires":[["fa397cd50e53da64"]]},{"id":"da6c8df97f937447","type":"debug","z":"0d528fab50046119","name":"debug 2","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":820,"y":100,"wires":[]},{"id":"afc13208a4ecf8bf","type":"debug","z":"0d528fab50046119","name":"debug 3","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":560,"y":100,"wires":[]},{"id":"a7912777db20fc50","type":"ui_led","z":"0d528fab50046119","order":0,"group":"6b035abc47b2f45e","width":"6","height":"1","label":"relay 5","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"#ff0000","value":"false","valueType":"bool"},{"color":"#008000","value":"true","valueType":"bool"}],"allowColorForValueInMessage":false,"shape":"circle","showGlow":true,"name":"relay 5","x":650,"y":540,"wires":[]},{"id":"4f45f48fe08bfd62","type":"ui_led","z":"0d528fab50046119","order":0,"group":"6b035abc47b2f45e","width":"6","height":"1","label":"relay 7","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"#ff0000","value":"false","valueType":"bool"},{"color":"#008000","value":"true","valueType":"bool"}],"allowColorForValueInMessage":false,"shape":"circle","showGlow":true,"name":"relay 7","x":650,"y":580,"wires":[]},{"id":"6b035abc47b2f45e","type":"ui_group","name":"Default","tab":"fd4b8c75.b67c2","order":1,"disp":true,"width":"6","collapse":false,"className":""},{"id":"fd4b8c75.b67c2","type":"ui_tab","name":"Home","icon":"dashboard","order":1,"disabled":false,"hidden":false}]

Thank you zenofmud and now I have just imported your code to test and see if it works.
I will draw flow chart for each button at moment

Sorry, but I probably miss something because your code work great when I import it to other flow but when I copy it to main flow it doesn't work. If you be so kind and check what I do wrong.

[
    {
        "id": "d3c5a098e31a8197",
        "type": "tab",
        "label": "Flow 4",
        "disabled": false,
        "info": "",
        "env": []
    },
    {
        "id": "aa28dcd62d2594ed",
        "type": "rpi-gpio in",
        "z": "d3c5a098e31a8197",
        "name": "GPIO 11 - Yellow Button",
        "pin": "11",
        "intype": "tri",
        "debounce": "100",
        "read": false,
        "bcm": true,
        "x": 420,
        "y": 160,
        "wires": [
            [
                "9f798fb32b25e613"
            ]
        ]
    },
    {
        "id": "385c46cacb16a2de",
        "type": "rpi-gpio in",
        "z": "d3c5a098e31a8197",
        "name": "GPIO 14 - Blue Button",
        "pin": "14",
        "intype": "tri",
        "debounce": "100",
        "read": false,
        "bcm": true,
        "x": 420,
        "y": 240,
        "wires": [
            [
                "9f798fb32b25e613"
            ]
        ]
    },
    {
        "id": "cbe2d15907090351",
        "type": "rpi-gpio in",
        "z": "d3c5a098e31a8197",
        "name": "GPIO 15 - Blue Button",
        "pin": "15",
        "intype": "tri",
        "debounce": "100",
        "read": false,
        "bcm": true,
        "x": 420,
        "y": 320,
        "wires": [
            [
                "9f798fb32b25e613"
            ]
        ]
    },
    {
        "id": "b271497a7f24a41d",
        "type": "debug",
        "z": "d3c5a098e31a8197",
        "name": "relay 2",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 1230,
        "y": 240,
        "wires": []
    },
    {
        "id": "960a8d02ab062bf9",
        "type": "debug",
        "z": "d3c5a098e31a8197",
        "name": "relay 3",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 1230,
        "y": 300,
        "wires": []
    },
    {
        "id": "2c0402934caeea5e",
        "type": "switch",
        "z": "d3c5a098e31a8197",
        "name": "",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "eq",
                "v": "yellow",
                "vt": "str"
            },
            {
                "t": "eq",
                "v": "blue",
                "vt": "str"
            },
            {
                "t": "eq",
                "v": "red",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 3,
        "x": 870,
        "y": 240,
        "wires": [
            [
                "edfd7d4c17621f20",
                "896820eb684084ff"
            ],
            [
                "b271497a7f24a41d"
            ],
            [
                "960a8d02ab062bf9"
            ]
        ]
    },
    {
        "id": "9f798fb32b25e613",
        "type": "trigger",
        "z": "d3c5a098e31a8197",
        "name": "",
        "op1": "",
        "op2": "",
        "op1type": "pay",
        "op2type": "nul",
        "duration": "120",
        "extend": false,
        "overrideDelay": false,
        "units": "s",
        "reset": "",
        "bytopic": "all",
        "topic": "topic",
        "outputs": 1,
        "x": 670,
        "y": 240,
        "wires": [
            [
                "2c0402934caeea5e",
                "998d88a71351d13d"
            ]
        ]
    },
    {
        "id": "edfd7d4c17621f20",
        "type": "link out",
        "z": "d3c5a098e31a8197",
        "name": "Yellow process",
        "mode": "link",
        "links": [
            "0275a027facdae27"
        ],
        "x": 1240,
        "y": 180,
        "wires": [],
        "l": true
    },
    {
        "id": "f6963577c8444205",
        "type": "trigger",
        "z": "d3c5a098e31a8197",
        "name": "",
        "op1": "true",
        "op2": "false",
        "op1type": "bool",
        "op2type": "bool",
        "duration": "30",
        "extend": false,
        "overrideDelay": false,
        "units": "s",
        "reset": "",
        "bytopic": "all",
        "topic": "topic",
        "outputs": 2,
        "x": 630,
        "y": 460,
        "wires": [
            [
                "89e743dac3c7e99e"
            ],
            [
                "1a2ab29e73a1a1cf",
                "2bd41c0f5e75b0ec"
            ]
        ]
    },
    {
        "id": "1a2ab29e73a1a1cf",
        "type": "trigger",
        "z": "d3c5a098e31a8197",
        "name": "",
        "op1": "true",
        "op2": "false",
        "op1type": "bool",
        "op2type": "bool",
        "duration": "30",
        "extend": false,
        "overrideDelay": false,
        "units": "s",
        "reset": "",
        "bytopic": "all",
        "topic": "topic",
        "outputs": 2,
        "x": 630,
        "y": 600,
        "wires": [
            [
                "4b00923ae52c103c",
                "b0915a2b99a0aa4d"
            ],
            [
                "aa5fdf5c2329347c",
                "b0915a2b99a0aa4d",
                "4b00923ae52c103c"
            ]
        ]
    },
    {
        "id": "aa5fdf5c2329347c",
        "type": "trigger",
        "z": "d3c5a098e31a8197",
        "name": "",
        "op1": "true",
        "op2": "false",
        "op1type": "bool",
        "op2type": "bool",
        "duration": "30",
        "extend": false,
        "overrideDelay": false,
        "units": "s",
        "reset": "",
        "bytopic": "all",
        "topic": "topic",
        "outputs": 2,
        "x": 610,
        "y": 740,
        "wires": [
            [
                "6d4d43a58a010d92",
                "e9209b0c5164c904",
                "d0764df669ce1c53"
            ],
            [
                "e9209b0c5164c904",
                "6d4d43a58a010d92",
                "d0764df669ce1c53",
                "d53266dd3f104fbf"
            ]
        ]
    },
    {
        "id": "896820eb684084ff",
        "type": "debug",
        "z": "d3c5a098e31a8197",
        "name": "debug 6",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 1160,
        "y": 120,
        "wires": []
    },
    {
        "id": "998d88a71351d13d",
        "type": "debug",
        "z": "d3c5a098e31a8197",
        "name": "debug 7",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 900,
        "y": 120,
        "wires": []
    },
    {
        "id": "0275a027facdae27",
        "type": "link in",
        "z": "d3c5a098e31a8197",
        "name": "Yellow steps",
        "links": [
            "edfd7d4c17621f20"
        ],
        "x": 430,
        "y": 440,
        "wires": [
            [
                "f6963577c8444205"
            ]
        ],
        "l": true
    },
    {
        "id": "89e743dac3c7e99e",
        "type": "rpi-gpio out",
        "z": "d3c5a098e31a8197",
        "name": "GPIO 18 - 1 relay",
        "pin": "18",
        "set": true,
        "level": "1",
        "freq": "",
        "out": "out",
        "bcm": true,
        "x": 910,
        "y": 440,
        "wires": []
    },
    {
        "id": "2bd41c0f5e75b0ec",
        "type": "rpi-gpio out",
        "z": "d3c5a098e31a8197",
        "name": "GPIO 17 - RED",
        "pin": "17",
        "set": true,
        "level": "0",
        "freq": "",
        "out": "out",
        "bcm": true,
        "x": 900,
        "y": 500,
        "wires": []
    },
    {
        "id": "4b00923ae52c103c",
        "type": "rpi-gpio out",
        "z": "d3c5a098e31a8197",
        "name": "GPIO 4 - 2 relay",
        "pin": "4",
        "set": true,
        "level": "1",
        "freq": "",
        "out": "out",
        "bcm": true,
        "x": 900,
        "y": 600,
        "wires": []
    },
    {
        "id": "b0915a2b99a0aa4d",
        "type": "rpi-gpio out",
        "z": "d3c5a098e31a8197",
        "name": "GPIO 27 - BLUE",
        "pin": "27",
        "set": true,
        "level": "0",
        "freq": "",
        "out": "out",
        "bcm": true,
        "x": 910,
        "y": 660,
        "wires": []
    },
    {
        "id": "6d4d43a58a010d92",
        "type": "rpi-gpio out",
        "z": "d3c5a098e31a8197",
        "name": "GPIO 4 - 2 relay",
        "pin": "4",
        "set": true,
        "level": "1",
        "freq": "",
        "out": "out",
        "bcm": true,
        "x": 900,
        "y": 740,
        "wires": []
    },
    {
        "id": "e9209b0c5164c904",
        "type": "rpi-gpio out",
        "z": "d3c5a098e31a8197",
        "name": "GPIO 22 - 3 relay",
        "pin": "22",
        "set": true,
        "level": "1",
        "freq": "",
        "out": "out",
        "bcm": true,
        "x": 910,
        "y": 860,
        "wires": []
    },
    {
        "id": "d0764df669ce1c53",
        "type": "rpi-gpio out",
        "z": "d3c5a098e31a8197",
        "name": "GPIO 23 - GREEN",
        "pin": "23",
        "set": true,
        "level": "0",
        "freq": "",
        "out": "out",
        "bcm": true,
        "x": 910,
        "y": 960,
        "wires": []
    },
    {
        "id": "d53266dd3f104fbf",
        "type": "trigger",
        "z": "d3c5a098e31a8197",
        "name": "",
        "op1": "true",
        "op2": "false",
        "op1type": "bool",
        "op2type": "bool",
        "duration": "30",
        "extend": false,
        "overrideDelay": false,
        "units": "s",
        "reset": "",
        "bytopic": "all",
        "topic": "topic",
        "outputs": 2,
        "x": 610,
        "y": 1000,
        "wires": [
            [
                "27702bffc9371361",
                "301f34ca48545c63",
                "fcda6f55c25ad033",
                "f7f7506a061de8bb",
                "0e081b235d5a9fb1"
            ],
            [
                "27702bffc9371361",
                "301f34ca48545c63",
                "fcda6f55c25ad033",
                "f7f7506a061de8bb",
                "0e081b235d5a9fb1"
            ]
        ]
    },
    {
        "id": "f7f7506a061de8bb",
        "type": "rpi-gpio out",
        "z": "d3c5a098e31a8197",
        "name": "GPIO 26 - 13 relay",
        "pin": "26",
        "set": true,
        "level": "1",
        "freq": "",
        "out": "out",
        "bcm": true,
        "x": 910,
        "y": 1220,
        "wires": []
    },
    {
        "id": "fcda6f55c25ad033",
        "type": "rpi-gpio out",
        "z": "d3c5a098e31a8197",
        "name": "GPIO 20 - 12 relay",
        "pin": "20",
        "set": true,
        "level": "1",
        "freq": "",
        "out": "out",
        "bcm": true,
        "x": 910,
        "y": 1160,
        "wires": []
    },
    {
        "id": "301f34ca48545c63",
        "type": "rpi-gpio out",
        "z": "d3c5a098e31a8197",
        "name": "GPIO 16 - 11 relay",
        "pin": "16",
        "set": true,
        "level": "1",
        "freq": "",
        "out": "out",
        "bcm": true,
        "x": 910,
        "y": 1100,
        "wires": []
    },
    {
        "id": "27702bffc9371361",
        "type": "rpi-gpio out",
        "z": "d3c5a098e31a8197",
        "name": "GPIO 12 - 10 relay",
        "pin": "12",
        "set": true,
        "level": "1",
        "freq": "",
        "out": "out",
        "bcm": true,
        "x": 910,
        "y": 1040,
        "wires": []
    },
    {
        "id": "0e081b235d5a9fb1",
        "type": "rpi-gpio out",
        "z": "d3c5a098e31a8197",
        "name": "GPIO 27 - BLUE",
        "pin": "27",
        "set": true,
        "level": "0",
        "freq": "",
        "out": "out",
        "bcm": true,
        "x": 910,
        "y": 1280,
        "wires": []
    }
]

So what are you sending into the switch and what is it looking for?

also look at the trigger nodes in the "Yellow steps" part of the flow and tell me what they are doing.
(this is to make you think and understand what you have done)

the OFF state of GPIO is "1" when I push for example yellow button I send "0" msg to another GPIO which is connected to relay

when I push button the debug information is correct I am sending "0" but but stands for 120 seconds trigger node and now it stop without any further steps

what is the switch node testing for?

Please send me info how you paste code to this topic in one line. When I copy from node-red is so big

I add some change nodes to your code and for know the rgb lights working in sequence but not the relays. I am still looking why.

[
    {
        "id": "d3c5a098e31a8197",
        "type": "tab",
        "label": "Flow 4",
        "disabled": false,
        "info": "",
        "env": []
    },
    {
        "id": "aa28dcd62d2594ed",
        "type": "rpi-gpio in",
        "z": "d3c5a098e31a8197",
        "name": "GPIO 11 - Yellow Button",
        "pin": "11",
        "intype": "tri",
        "debounce": "100",
        "read": false,
        "bcm": true,
        "x": 220,
        "y": 160,
        "wires": [
            [
                "e5b677b45e22b0eb"
            ]
        ]
    },
    {
        "id": "385c46cacb16a2de",
        "type": "rpi-gpio in",
        "z": "d3c5a098e31a8197",
        "name": "GPIO 14 - Blue Button",
        "pin": "14",
        "intype": "tri",
        "debounce": "100",
        "read": false,
        "bcm": true,
        "x": 220,
        "y": 240,
        "wires": [
            [
                "c12bef46db99d7ed"
            ]
        ]
    },
    {
        "id": "cbe2d15907090351",
        "type": "rpi-gpio in",
        "z": "d3c5a098e31a8197",
        "name": "GPIO 15 - Red Button",
        "pin": "15",
        "intype": "tri",
        "debounce": "100",
        "read": false,
        "bcm": true,
        "x": 220,
        "y": 320,
        "wires": [
            [
                "f1d2cb8848fff7d5"
            ]
        ]
    },
    {
        "id": "b271497a7f24a41d",
        "type": "debug",
        "z": "d3c5a098e31a8197",
        "name": "relay 2",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 1230,
        "y": 240,
        "wires": []
    },
    {
        "id": "960a8d02ab062bf9",
        "type": "debug",
        "z": "d3c5a098e31a8197",
        "name": "relay 3",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 1230,
        "y": 300,
        "wires": []
    },
    {
        "id": "2c0402934caeea5e",
        "type": "switch",
        "z": "d3c5a098e31a8197",
        "name": "",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "eq",
                "v": "yellow",
                "vt": "str"
            },
            {
                "t": "eq",
                "v": "blue",
                "vt": "str"
            },
            {
                "t": "eq",
                "v": "red",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 3,
        "x": 870,
        "y": 240,
        "wires": [
            [
                "edfd7d4c17621f20",
                "896820eb684084ff"
            ],
            [
                "b271497a7f24a41d"
            ],
            [
                "960a8d02ab062bf9"
            ]
        ]
    },
    {
        "id": "9f798fb32b25e613",
        "type": "trigger",
        "z": "d3c5a098e31a8197",
        "name": "",
        "op1": "",
        "op2": "",
        "op1type": "pay",
        "op2type": "nul",
        "duration": "120",
        "extend": false,
        "overrideDelay": false,
        "units": "s",
        "reset": "",
        "bytopic": "all",
        "topic": "topic",
        "outputs": 1,
        "x": 670,
        "y": 220,
        "wires": [
            [
                "2c0402934caeea5e",
                "998d88a71351d13d"
            ]
        ]
    },
    {
        "id": "edfd7d4c17621f20",
        "type": "link out",
        "z": "d3c5a098e31a8197",
        "name": "Yellow process",
        "mode": "link",
        "links": [
            "0275a027facdae27"
        ],
        "x": 1240,
        "y": 180,
        "wires": [],
        "l": true
    },
    {
        "id": "f6963577c8444205",
        "type": "trigger",
        "z": "d3c5a098e31a8197",
        "name": "",
        "op1": "true",
        "op2": "false",
        "op1type": "bool",
        "op2type": "bool",
        "duration": "5",
        "extend": false,
        "overrideDelay": false,
        "units": "s",
        "reset": "",
        "bytopic": "all",
        "topic": "topic",
        "outputs": 2,
        "x": 620,
        "y": 460,
        "wires": [
            [
                "89e743dac3c7e99e"
            ],
            [
                "1a2ab29e73a1a1cf",
                "2bd41c0f5e75b0ec"
            ]
        ]
    },
    {
        "id": "1a2ab29e73a1a1cf",
        "type": "trigger",
        "z": "d3c5a098e31a8197",
        "name": "",
        "op1": "true",
        "op2": "false",
        "op1type": "bool",
        "op2type": "bool",
        "duration": "5",
        "extend": false,
        "overrideDelay": false,
        "units": "s",
        "reset": "",
        "bytopic": "all",
        "topic": "topic",
        "outputs": 2,
        "x": 620,
        "y": 600,
        "wires": [
            [
                "4b00923ae52c103c",
                "b0915a2b99a0aa4d"
            ],
            [
                "aa5fdf5c2329347c",
                "b0915a2b99a0aa4d",
                "4b00923ae52c103c"
            ]
        ]
    },
    {
        "id": "aa5fdf5c2329347c",
        "type": "trigger",
        "z": "d3c5a098e31a8197",
        "name": "",
        "op1": "true",
        "op2": "false",
        "op1type": "bool",
        "op2type": "bool",
        "duration": "5",
        "extend": false,
        "overrideDelay": false,
        "units": "s",
        "reset": "",
        "bytopic": "all",
        "topic": "topic",
        "outputs": 2,
        "x": 600,
        "y": 740,
        "wires": [
            [
                "6d4d43a58a010d92",
                "e9209b0c5164c904",
                "d0764df669ce1c53"
            ],
            [
                "e9209b0c5164c904",
                "6d4d43a58a010d92",
                "d0764df669ce1c53",
                "d53266dd3f104fbf"
            ]
        ]
    },
    {
        "id": "896820eb684084ff",
        "type": "debug",
        "z": "d3c5a098e31a8197",
        "name": "debug 6",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 1160,
        "y": 120,
        "wires": []
    },
    {
        "id": "998d88a71351d13d",
        "type": "debug",
        "z": "d3c5a098e31a8197",
        "name": "debug 7",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 900,
        "y": 120,
        "wires": []
    },
    {
        "id": "0275a027facdae27",
        "type": "link in",
        "z": "d3c5a098e31a8197",
        "name": "Yellow steps",
        "links": [
            "edfd7d4c17621f20"
        ],
        "x": 430,
        "y": 440,
        "wires": [
            [
                "f6963577c8444205"
            ]
        ],
        "l": true
    },
    {
        "id": "89e743dac3c7e99e",
        "type": "rpi-gpio out",
        "z": "d3c5a098e31a8197",
        "name": "GPIO 18 - 1 relay",
        "pin": "18",
        "set": true,
        "level": "1",
        "freq": "",
        "out": "out",
        "bcm": true,
        "x": 910,
        "y": 440,
        "wires": []
    },
    {
        "id": "2bd41c0f5e75b0ec",
        "type": "rpi-gpio out",
        "z": "d3c5a098e31a8197",
        "name": "GPIO 17 - RED",
        "pin": "17",
        "set": true,
        "level": "0",
        "freq": "",
        "out": "out",
        "bcm": true,
        "x": 900,
        "y": 520,
        "wires": []
    },
    {
        "id": "4b00923ae52c103c",
        "type": "rpi-gpio out",
        "z": "d3c5a098e31a8197",
        "name": "GPIO 4 - 2 relay",
        "pin": "4",
        "set": true,
        "level": "1",
        "freq": "",
        "out": "out",
        "bcm": true,
        "x": 900,
        "y": 600,
        "wires": []
    },
    {
        "id": "b0915a2b99a0aa4d",
        "type": "rpi-gpio out",
        "z": "d3c5a098e31a8197",
        "name": "GPIO 27 - BLUE",
        "pin": "27",
        "set": true,
        "level": "0",
        "freq": "",
        "out": "out",
        "bcm": true,
        "x": 910,
        "y": 660,
        "wires": []
    },
    {
        "id": "6d4d43a58a010d92",
        "type": "rpi-gpio out",
        "z": "d3c5a098e31a8197",
        "name": "GPIO 4 - 2 relay",
        "pin": "4",
        "set": true,
        "level": "1",
        "freq": "",
        "out": "out",
        "bcm": true,
        "x": 900,
        "y": 740,
        "wires": []
    },
    {
        "id": "e9209b0c5164c904",
        "type": "rpi-gpio out",
        "z": "d3c5a098e31a8197",
        "name": "GPIO 22 - 3 relay",
        "pin": "22",
        "set": true,
        "level": "1",
        "freq": "",
        "out": "out",
        "bcm": true,
        "x": 910,
        "y": 860,
        "wires": []
    },
    {
        "id": "d0764df669ce1c53",
        "type": "rpi-gpio out",
        "z": "d3c5a098e31a8197",
        "name": "GPIO 23 - GREEN",
        "pin": "23",
        "set": true,
        "level": "0",
        "freq": "",
        "out": "out",
        "bcm": true,
        "x": 910,
        "y": 960,
        "wires": []
    },
    {
        "id": "d53266dd3f104fbf",
        "type": "trigger",
        "z": "d3c5a098e31a8197",
        "name": "",
        "op1": "true",
        "op2": "false",
        "op1type": "bool",
        "op2type": "bool",
        "duration": "30",
        "extend": false,
        "overrideDelay": false,
        "units": "s",
        "reset": "",
        "bytopic": "all",
        "topic": "topic",
        "outputs": 2,
        "x": 610,
        "y": 1000,
        "wires": [
            [
                "27702bffc9371361",
                "301f34ca48545c63",
                "fcda6f55c25ad033",
                "f7f7506a061de8bb",
                "0e081b235d5a9fb1"
            ],
            [
                "27702bffc9371361",
                "301f34ca48545c63",
                "fcda6f55c25ad033",
                "f7f7506a061de8bb",
                "0e081b235d5a9fb1"
            ]
        ]
    },
    {
        "id": "f7f7506a061de8bb",
        "type": "rpi-gpio out",
        "z": "d3c5a098e31a8197",
        "name": "GPIO 26 - 13 relay",
        "pin": "26",
        "set": true,
        "level": "1",
        "freq": "",
        "out": "out",
        "bcm": true,
        "x": 910,
        "y": 1220,
        "wires": []
    },
    {
        "id": "fcda6f55c25ad033",
        "type": "rpi-gpio out",
        "z": "d3c5a098e31a8197",
        "name": "GPIO 20 - 12 relay",
        "pin": "20",
        "set": true,
        "level": "1",
        "freq": "",
        "out": "out",
        "bcm": true,
        "x": 910,
        "y": 1160,
        "wires": []
    },
    {
        "id": "301f34ca48545c63",
        "type": "rpi-gpio out",
        "z": "d3c5a098e31a8197",
        "name": "GPIO 16 - 11 relay",
        "pin": "16",
        "set": true,
        "level": "1",
        "freq": "",
        "out": "out",
        "bcm": true,
        "x": 910,
        "y": 1100,
        "wires": []
    },
    {
        "id": "27702bffc9371361",
        "type": "rpi-gpio out",
        "z": "d3c5a098e31a8197",
        "name": "GPIO 12 - 10 relay",
        "pin": "12",
        "set": true,
        "level": "1",
        "freq": "",
        "out": "out",
        "bcm": true,
        "x": 910,
        "y": 1040,
        "wires": []
    },
    {
        "id": "0e081b235d5a9fb1",
        "type": "rpi-gpio out",
        "z": "d3c5a098e31a8197",
        "name": "GPIO 27 - BLUE",
        "pin": "27",
        "set": true,
        "level": "0",
        "freq": "",
        "out": "out",
        "bcm": true,
        "x": 910,
        "y": 1280,
        "wires": []
    },
    {
        "id": "e5b677b45e22b0eb",
        "type": "change",
        "z": "d3c5a098e31a8197",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "yellow",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 460,
        "y": 160,
        "wires": [
            [
                "9f798fb32b25e613"
            ]
        ]
    },
    {
        "id": "c12bef46db99d7ed",
        "type": "change",
        "z": "d3c5a098e31a8197",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "blue",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 460,
        "y": 240,
        "wires": [
            [
                "9f798fb32b25e613"
            ]
        ]
    },
    {
        "id": "f1d2cb8848fff7d5",
        "type": "change",
        "z": "d3c5a098e31a8197",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "red",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 460,
        "y": 320,
        "wires": [
            [
                "9f798fb32b25e613"
            ]
        ]
    }
]

So I tested a few times and I shortened times of each trigger to quicker tests and RGB lights switch on great but when the second trigger is on the relay number 1 from first trigger is on and when the third trigger is on different relays are on and the same for the last step when fourth trigger is on.
The GPIO 15 - 1 relay work only on second trigger and the last trigger
so there are some problems with the each trigger there are mixing relays from incorrect trigger

1 Like

What do you need to send to the relay node in order for it to work? What are you sending it?

I am very grateful for your help and i am also will be looking the solution on the web
I will get information on Monday

Let me rephrase my last question:
What are you sending to the rpi-gpio out node and what is it expecting to get?

I am sorry that I don't get it but I am sending "0 / zero" massage to change the rpi-gpio out state from "1" to "0 / zero"
The all gpios in raspberry pi have only two states 0 ON and 1 OFF
I want to send to rpi-gpio out 0 for specific time and with you code I can turn rgb led light in sequence but I think there is problems with trigger nodes and their connection to rpi-gpio outs
I think that the problem is when trigger node have two connections because the rgb light is perfectly working on the seconds connections in trigger nodes

In the last flow you sent me, put a debug node on the first output of the first trigger node in the "Yellow steps" flow and run the flow. Now look at what is showing up in the debug node. Is that what the gpio-in node is expecting?

Unfortunately I can do that until Monday because I left the office. If you be so kind we return to this case in next week. Have a nice weekend

I have small tip for one of you who learn the node-red and raspberry pi and want to connect GPIO pins to simple non addressable RGB Led strip. There are many tutorials where in details someone connect RGB strip Led to Raspberry with specific Mosfets. There are also some tutorials where are tell you that you can use any of Mosfets on the market. But in some countries like in Middle Europe the Mosfets are different than posted on the websites
The below diagram (I found on website) is correct


And when you want to buy N-Mosfet is important to find one with the following parameter, which is highlighted

N-Mosfet with different voltage won't work

No problems, but now - after 10 hours - just a quick question:
Seeing you are sendign 0 for ON and 1 for OFF, my code will send an OFF first.

You will need to cycle the button two times to get the relay to turn ON.

Something is not right with trigger nodes because in the latest code the second connection work fine I mean the RGB lights. GPIO also work but not the right sequence I mean in the first trigger (up connection doesn't work), second trigger (up connection work and it switch on relay from first trigger and one relay from second trigger. They are all mixed.
When I removed for the test seconds connnections from all trigger nodes then the relays work fine. Maybe I have work / focus in this area and add some different nodes etc. but I can do that until Monday.
I searched yesterday also node-red forum for "sequence" stuff and there are some topics but any with GPIO raspberry and if so there are straight sequence.

Please explain me what does it mean to do a cycle?