# Delay time node red

**URL:** <https://discourse.nodered.org/t/delay-time-node-red/88159>\
**Category:** General\
**Tags:** function-node\
**Created:** [22 May 2024 09:00 UTC](https://discourse.nodered.org/t/delay-time-node-red/88159 "2024-05-22T09:00:09Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![ThaiMinh120](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/thaiminh120/32/90099_2.png) [@ThaiMinh120](https://discourse.nodered.org/u/ThaiMinh120)\
**Post date:** [23 May 2024 08:59 UTC](https://discourse.nodered.org/t/delay-time-node-red/88159/21 "2024-05-23T08:59:38Z")

</div>

Yes. I wil contact to you later.  
Thank you sir.

---

<div class="post-metadata">

**Author:** ![GogoVega](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gogovega/32/71313_2.png) [@GogoVega](https://discourse.nodered.org/u/GogoVega)\
**Post date:** [23 May 2024 09:20 UTC](https://discourse.nodered.org/t/delay-time-node-red/88159/22 "2024-05-23T09:20:24Z")

</div>

With pleasure,

Here is the link to my palette:

> **[@gogovega/node-red-contrib-firebase-realtime-database](https://flows.nodered.org/node/@gogovega/node-red-contrib-firebase-realtime-database)**
>
> Node-RED nodes to communicate with Google Firebase Realtime Databases

---

<div class="post-metadata">

**Author:** ![ThaiMinh120](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/thaiminh120/32/90099_2.png) [@ThaiMinh120](https://discourse.nodered.org/u/ThaiMinh120)\
**Post date:** [23 May 2024 15:51 UTC](https://discourse.nodered.org/t/delay-time-node-red/88159/23 "2024-05-23T15:51:29Z")

</div>

Oh my gosh, I have a problem.  
Now, I have 2 mode AUTO and MANUAL.  
Auto : when push "0" will delay 10s , "1" not delay  
Manual : push "0" or "1" will not delay.  
How to make the relay run in 1 of 2 modes?

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [23 May 2024 15:58 UTC](https://discourse.nodered.org/t/delay-time-node-red/88159/24 "2024-05-23T15:58:40Z")

</div>

Add a switch node before the trigger/delay  
Add 2 tests:

1. If mode == AUTO --\> go through delay
2. If mode == MANUAL --\> bypass the delay

* * *

Give it a go, see if you can solve it yourself (its the best way to learn)

* * *

I recommend watching this playlist: [Node-RED Essentials](https://www.youtube.com/playlist?list=PLyNBB9VCLmo1hyO-4fIZ08gqFcXBkHy-6). The videos are done by the developers of node-red. They're nice & short and to the point. You will understand a whole lot more in about 1 hour. A small investment for a lot of gain.

---

<div class="post-metadata">

**Author:** ![ThaiMinh120](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/thaiminh120/32/90099_2.png) [@ThaiMinh120](https://discourse.nodered.org/u/ThaiMinh120)\
**Post date:** [23 May 2024 16:04 UTC](https://discourse.nodered.org/t/delay-time-node-red/88159/25 "2024-05-23T16:04:53Z")

</div>

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/4/44d6b73d941474d174f4ba64225f65c96158cfc4.png)  
Can you make a node red for this solution?

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [23 May 2024 16:08 UTC](https://discourse.nodered.org/t/delay-time-node-red/88159/26 "2024-05-23T16:08:11Z")

</div>

> [@ThaiMinh120](#):
>
> ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/4/44d6b73d941474d174f4ba64225f65c96158cfc4.png)  
> Can you make a node red for this solution

Sorry, but why have you screenshot what i wrote?

I only wrote that 6 mins ago so it is doubtful you have tried for yourself.

Please give it a go. It is a quite basic Node-RED thing that users should get to grips with.

If you are struggling, watch the videos i linked to.

If you are still struggling, come back and ask again and tell us what you tried and where you got stuck.

Good luck.

---

<div class="post-metadata">

**Author:** ![ThaiMinh120](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/thaiminh120/32/90099_2.png) [@ThaiMinh120](https://discourse.nodered.org/u/ThaiMinh120)\
**Post date:** [23 May 2024 16:40 UTC](https://discourse.nodered.org/t/delay-time-node-red/88159/27 "2024-05-23T16:40:33Z")

</div>

[flows (2).json](https://discourse.nodered.org/uploads/short-url/wuvhXpg77gvsBuR6xvLTVCk1Icr.json) (5.4 KB)  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/8/483cb96fffa8d77ab449c035a7fa436e31ddf682.png)  
After testing the auto or manual mode, the 0 or 1 reading of each mode is faulty  
Can you help me fix it?

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [23 May 2024 17:00 UTC](https://discourse.nodered.org/t/delay-time-node-red/88159/28 "2024-05-23T17:00:11Z")

</div>

> [@ThaiMinh120](#):
>
> [flows (2).json](https://discourse.nodered.org/uploads/short-url/wuvhXpg77gvsBuR6xvLTVCk1Icr.json) (5.4 KB)

Please post small flows ↑ as a code block as explained before ↓

> [@Steve-Mcl](#):
>
> PS: for small demo flows, it is preferable to simply paste the flow into a code block like I did above.

* * *

As for the flows, I cannot help you - here is why:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/7/97b2f7025ffcac68ebeea187affa3dea8a67cc0e.png)

When preparing a flow for someone to help you, you should include dummy data instead of DB nodes.

---

<div class="post-metadata">

**Author:** ![ThaiMinh120](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/thaiminh120/32/90099_2.png) [@ThaiMinh120](https://discourse.nodered.org/u/ThaiMinh120)\
**Post date:** [23 May 2024 17:10 UTC](https://discourse.nodered.org/t/delay-time-node-red/88159/31 "2024-05-23T17:10:58Z")

</div>

```auto
[
    {
        "id": "fae193cd0dc8e980",
        "type": "tab",
        "label": "Flow 2",
        "disabled": false,
        "info": "",
        "env": []
    },
    {
        "id": "78b159310530c451",
        "type": "debug",
        "z": "fae193cd0dc8e980",
        "name": "",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 1350,
        "y": 340,
        "wires": []
    },
    {
        "id": "8e9928861d612c8c",
        "type": "switch",
        "z": "fae193cd0dc8e980",
        "name": "",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "eq",
                "v": "0",
                "vt": "num"
            },
            {
                "t": "eq",
                "v": "1",
                "vt": "num"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 2,
        "x": 710,
        "y": 240,
        "wires": [
            [
                "92142dd4cf3952c8"
            ],
            [
                "925b0d49ba99de1c"
            ]
        ]
    },
    {
        "id": "925b0d49ba99de1c",
        "type": "rbe",
        "z": "fae193cd0dc8e980",
        "name": "",
        "func": "rbe",
        "gap": "",
        "start": "",
        "inout": "out",
        "septopics": true,
        "property": "payload",
        "topi": "topic",
        "x": 1130,
        "y": 240,
        "wires": [
            [
                "78b159310530c451"
            ]
        ]
    },
    {
        "id": "92142dd4cf3952c8",
        "type": "trigger",
        "z": "fae193cd0dc8e980",
        "name": "",
        "op1": "",
        "op2": "",
        "op1type": "nul",
        "op2type": "payl",
        "duration": "10",
        "extend": false,
        "overrideDelay": false,
        "units": "s",
        "reset": "",
        "bytopic": "all",
        "topic": "topic",
        "outputs": 1,
        "x": 910,
        "y": 180,
        "wires": [
            [
                "925b0d49ba99de1c"
            ]
        ]
    },
    {
        "id": "ea92a825197434a6",
        "type": "switch",
        "z": "fae193cd0dc8e980",
        "name": "",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "eq",
                "v": "auto",
                "vt": "str"
            },
            {
                "t": "eq",
                "v": "manual",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 2,
        "x": 310,
        "y": 360,
        "wires": [
            [],
            []
        ]
    },
    {
        "id": "f0ebe68bf0cdbc05",
        "type": "debug",
        "z": "fae193cd0dc8e980",
        "name": "debug 1",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 1060,
        "y": 480,
        "wires": []
    },
    {
        "id": "820cbf5efd21e9d1",
        "type": "inject",
        "z": "fae193cd0dc8e980",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "1",
        "payloadType": "num",
        "x": 530,
        "y": 260,
        "wires": [
            [
                "8e9928861d612c8c"
            ]
        ]
    },
    {
        "id": "96538767676d14f8",
        "type": "inject",
        "z": "fae193cd0dc8e980",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "0",
        "payloadType": "num",
        "x": 530,
        "y": 200,
        "wires": [
            [
                "8e9928861d612c8c"
            ]
        ]
    },
    {
        "id": "f2dda7f370d27c0c",
        "type": "comment",
        "z": "fae193cd0dc8e980",
        "name": "Simulate Firebase RELAY",
        "info": "",
        "x": 550,
        "y": 300,
        "wires": []
    },
    {
        "id": "67d33e93d2b594b6",
        "type": "inject",
        "z": "fae193cd0dc8e980",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "1",
        "payloadType": "num",
        "x": 530,
        "y": 520,
        "wires": [
            [
                "f0ebe68bf0cdbc05"
            ]
        ]
    },
    {
        "id": "af4866c8ad435ccd",
        "type": "inject",
        "z": "fae193cd0dc8e980",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "0",
        "payloadType": "num",
        "x": 530,
        "y": 460,
        "wires": [
            [
                "f0ebe68bf0cdbc05"
            ]
        ]
    },
    {
        "id": "2d424ddbfdc54be1",
        "type": "comment",
        "z": "fae193cd0dc8e980",
        "name": "Simulate Firebase MODE",
        "info": "",
        "x": 130,
        "y": 420,
        "wires": []
    },
    {
        "id": "129b7a849c482a7b",
        "type": "inject",
        "z": "fae193cd0dc8e980",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "manual",
        "payloadType": "str",
        "x": 130,
        "y": 380,
        "wires": [
            [
                "ea92a825197434a6"
            ]
        ]
    },
    {
        "id": "75abfd18c6320064",
        "type": "inject",
        "z": "fae193cd0dc8e980",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "auto",
        "payloadType": "str",
        "x": 130,
        "y": 320,
        "wires": [
            [
                "ea92a825197434a6"
            ]
        ]
    },
    {
        "id": "82b75818fecd0530",
        "type": "comment",
        "z": "fae193cd0dc8e980",
        "name": "Simulate Firebase RELAY",
        "info": "",
        "x": 530,
        "y": 580,
        "wires": []
    }
]

```

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [23 May 2024 17:12 UTC](https://discourse.nodered.org/t/delay-time-node-red/88159/32 "2024-05-23T17:12:17Z")

</div>

unfortunately, that does not help.

please use debug nodes to capture REAL data coming out of the firebase nodes.

There’s a great page in the docs ([Working with messages : Node-RED](https://nodered.org/docs/user-guide/messages)) that will explain how to use the debug panel to find the right path/value for any data item.

Pay particular attention to the part about the buttons that appear under your mouse pointer when you over hover a debug message property in the sidebar.

![BX00Cy7yHi](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/d/bd1f333a9e043b061b39917c328b0094d3e52d30.gif)

---

<div class="post-metadata">

**Author:** ![ThaiMinh120](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/thaiminh120/32/90099_2.png) [@ThaiMinh120](https://discourse.nodered.org/u/ThaiMinh120)\
**Post date:** [23 May 2024 17:12 UTC](https://discourse.nodered.org/t/delay-time-node-red/88159/33 "2024-05-23T17:12:43Z")

</div>

help me fix it.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [23 May 2024 17:13 UTC](https://discourse.nodered.org/t/delay-time-node-red/88159/34 "2024-05-23T17:13:21Z")

</div>

> [@ThaiMinh120](#):
>
> help me fix it

I am trying, but you are not following instructions. please try again.

> [@Steve-Mcl](#):
>
> please use debug nodes to capture REAL data coming out of the firebase nodes.

---

<div class="post-metadata">

**Author:** ![ThaiMinh120](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/thaiminh120/32/90099_2.png) [@ThaiMinh120](https://discourse.nodered.org/u/ThaiMinh120)\
**Post date:** [23 May 2024 17:17 UTC](https://discourse.nodered.org/t/delay-time-node-red/88159/35 "2024-05-23T17:17:02Z")

</div>

I don't have that error.  
Are you confused with another article?

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [23 May 2024 17:23 UTC](https://discourse.nodered.org/t/delay-time-node-red/88159/36 "2024-05-23T17:23:45Z")

</div>

> [@ThaiMinh120](#):
>
> don't have that error

What error? I did not mention an error.

I cannot help you if you do not provide REAL sample data that comes out of the firebase nodes.

Add debug node after EVERY firebase node & capture sample data using the `Copy Value` button.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/a/7aa9b888ca5a7e357ddb76b9604337ab05340708.png)

  

> [@ThaiMinh120](#):
>
> Are you confused with another article?

Nope. I am not. I never said there was an "error", I did not type the word "error" - search the page if you wish.

---

<div class="post-metadata">

**Author:** ![ThaiMinh120](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/thaiminh120/32/90099_2.png) [@ThaiMinh120](https://discourse.nodered.org/u/ThaiMinh120)\
**Post date:** [23 May 2024 17:28 UTC](https://discourse.nodered.org/t/delay-time-node-red/88159/37 "2024-05-23T17:28:33Z")

</div>

Yah  
Sorry, i get you  
I have sent the function node

---

<div class="post-metadata">

**Author:** ![ThaiMinh120](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/thaiminh120/32/90099_2.png) [@ThaiMinh120](https://discourse.nodered.org/u/ThaiMinh120)\
**Post date:** [23 May 2024 17:33 UTC](https://discourse.nodered.org/t/delay-time-node-red/88159/40 "2024-05-23T17:33:13Z")

</div>

```auto
    {
        "id": "fae193cd0dc8e980",
        "type": "tab",
        "label": "Flow 2",
        "disabled": false,
        "info": "",
        "env": []
    },
    {
        "id": "78b159310530c451",
        "type": "debug",
        "z": "fae193cd0dc8e980",
        "name": "",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 1350,
        "y": 340,
        "wires": []
    },
    {
        "id": "8e9928861d612c8c",
        "type": "switch",
        "z": "fae193cd0dc8e980",
        "name": "",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "eq",
                "v": "0",
                "vt": "num"
            },
            {
                "t": "eq",
                "v": "1",
                "vt": "num"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 2,
        "x": 710,
        "y": 240,
        "wires": [
            [
                "92142dd4cf3952c8"
            ],
            [
                "925b0d49ba99de1c"
            ]
        ]
    },
    {
        "id": "925b0d49ba99de1c",
        "type": "rbe",
        "z": "fae193cd0dc8e980",
        "name": "",
        "func": "rbe",
        "gap": "",
        "start": "",
        "inout": "out",
        "septopics": true,
        "property": "payload",
        "topi": "topic",
        "x": 1130,
        "y": 240,
        "wires": [
            [
                "78b159310530c451"
            ]
        ]
    },
    {
        "id": "92142dd4cf3952c8",
        "type": "trigger",
        "z": "fae193cd0dc8e980",
        "name": "",
        "op1": "",
        "op2": "",
        "op1type": "nul",
        "op2type": "payl",
        "duration": "10",
        "extend": false,
        "overrideDelay": false,
        "units": "s",
        "reset": "",
        "bytopic": "all",
        "topic": "topic",
        "outputs": 1,
        "x": 910,
        "y": 180,
        "wires": [
            [
                "925b0d49ba99de1c"
            ]
        ]
    },
    {
        "id": "ea92a825197434a6",
        "type": "switch",
        "z": "fae193cd0dc8e980",
        "name": "",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "eq",
                "v": "auto",
                "vt": "str"
            },
            {
                "t": "eq",
                "v": "manual",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 2,
        "x": 310,
        "y": 360,
        "wires": [
            [],
            []
        ]
    },
    {
        "id": "f0ebe68bf0cdbc05",
        "type": "debug",
        "z": "fae193cd0dc8e980",
        "name": "debug 1",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 1060,
        "y": 480,
        "wires": []
    },
    {
        "id": "820cbf5efd21e9d1",
        "type": "inject",
        "z": "fae193cd0dc8e980",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "1",
        "payloadType": "num",
        "x": 530,
        "y": 260,
        "wires": [
            [
                "8e9928861d612c8c"
            ]
        ]
    },
    {
        "id": "96538767676d14f8",
        "type": "inject",
        "z": "fae193cd0dc8e980",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "0",
        "payloadType": "num",
        "x": 530,
        "y": 200,
        "wires": [
            [
                "8e9928861d612c8c"
            ]
        ]
    },
    {
        "id": "f2dda7f370d27c0c",
        "type": "comment",
        "z": "fae193cd0dc8e980",
        "name": "Simulate Firebase RELAY",
        "info": "",
        "x": 550,
        "y": 300,
        "wires": []
    },
    {
        "id": "67d33e93d2b594b6",
        "type": "inject",
        "z": "fae193cd0dc8e980",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "1",
        "payloadType": "num",
        "x": 530,
        "y": 520,
        "wires": [
            [
                "f0ebe68bf0cdbc05"
            ]
        ]
    },
    {
        "id": "af4866c8ad435ccd",
        "type": "inject",
        "z": "fae193cd0dc8e980",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "0",
        "payloadType": "num",
        "x": 530,
        "y": 460,
        "wires": [
            [
                "f0ebe68bf0cdbc05"
            ]
        ]
    },
    {
        "id": "2d424ddbfdc54be1",
        "type": "comment",
        "z": "fae193cd0dc8e980",
        "name": "Simulate Firebase MODE",
        "info": "",
        "x": 130,
        "y": 420,
        "wires": []
    },
    {
        "id": "129b7a849c482a7b",
        "type": "inject",
        "z": "fae193cd0dc8e980",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "manual",
        "payloadType": "str",
        "x": 130,
        "y": 380,
        "wires": [
            [
                "ea92a825197434a6"
            ]
        ]
    },
    {
        "id": "75abfd18c6320064",
        "type": "inject",
        "z": "fae193cd0dc8e980",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "auto",
        "payloadType": "str",
        "x": 130,
        "y": 320,
        "wires": [
            [
                "ea92a825197434a6"
            ]
        ]
    },
    {
        "id": "82b75818fecd0530",
        "type": "comment",
        "z": "fae193cd0dc8e980",
        "name": "Simulate Firebase RELAY",
        "info": "",
        "x": 530,
        "y": 580,
        "wires": []
    }
]

```

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [23 May 2024 17:39 UTC](https://discourse.nodered.org/t/delay-time-node-red/88159/41 "2024-05-23T17:39:24Z")

</div>

that is also no good. You did not do what i asked ☹ I asked

Instead, please add debug nodes and just show me what comes out of those firebase nodes.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/7/774571376c9b9e69e38869966d30af4348753f78.png)

---

<div class="post-metadata">

**Author:** ![ThaiMinh120](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/thaiminh120/32/90099_2.png) [@ThaiMinh120](https://discourse.nodered.org/u/ThaiMinh120)\
**Post date:** [23 May 2024 17:52 UTC](https://discourse.nodered.org/t/delay-time-node-red/88159/42 "2024-05-23T17:52:13Z")

</div>

Omg,sorry for not understanding but now I understand  
I will send it to you later

---

<div class="post-metadata">

**Author:** ![ThaiMinh120](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/thaiminh120/32/90099_2.png) [@ThaiMinh120](https://discourse.nodered.org/u/ThaiMinh120)\
**Post date:** [24 May 2024 01:28 UTC](https://discourse.nodered.org/t/delay-time-node-red/88159/43 "2024-05-24T01:28:36Z")

</div>

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/e/de73487d445a781351c96d8a134595dfc1f26440.png)  
I think before firebase RELAY must have 1 clock pulse for firebase RELAY to push the value down to RELAY

---

<div class="post-metadata">

**Author:** ![GogoVega](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gogovega/32/71313_2.png) [@GogoVega](https://discourse.nodered.org/u/GogoVega)\
**Post date:** [25 May 2024 11:29 UTC](https://discourse.nodered.org/t/delay-time-node-red/88159/44 "2024-05-25T11:29:35Z")

</div>

It's not that complicated...

 ![Capture d’écran 2024-05-25 à 13.22.44](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/1/51c9d59c293b217bafdef36fe0de88a6a607a6ad.png)

Note: This database has a JSON architecture, use it.  
i.e.:

```json
{
  "your-lamp": {
    "value": 0,
    "mode": "auto"
  }
}

```

Note2: I already said you can replace your recurring reading node with an event.

[Previous page](https://discourse.nodered.org/t/delay-time-node-red/88159.md?page=1)

[Next page](https://discourse.nodered.org/t/delay-time-node-red/88159.md?page=3)
