# Wait until Node - Bug? Timeout definition

**URL:** https://discourse.nodered.org/t/wait-until-node-bug-timeout-definition/31289
**Category:** General
**Created:** [7 August 2020 21:25 UTC](https://discourse.nodered.org/t/wait-until-node-bug-timeout-definition/31289 "2020-08-07T21:25:55Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![ThisisIO](https://avatars.discourse-cdn.com/v4/letter/t/22d042/32.png) [@ThisisIO](https://discourse.nodered.org/u/ThisisIO)
#### Post date: [7 August 2020 21:25 UTC](https://discourse.nodered.org/t/wait-until-node-bug-timeout-definition/31289/1 "2020-08-07T21:25:55Z")

</div>

Hello,

i'm trying to put the custom timeout in Wait until Node.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/f/8f6e0e9a4c4c2128775a58a38d9ea3a33d9a7123.png)

In best way i would like to out there a msg.data.timeout or somtrhing like this. But it do not work.  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/b/0b9606ffc7f65a063740d3f24ef04ab9ff48f817.png)

I have read manual

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/d/2dd4ac8ba294ad5ba132a6089169393dba9d497d.png)

and tried to do this way. But it also do not work. Here if inject Node

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/6/d66a473d003fd898546d39b2fba5528b2592122d.png)

All the same it do not override given timeout.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/c/8c36a0a05c414fcdaa6e53635ef91ff96b838d24.png)

Is it a bug in Wait until Node or i'm doing smth wrong?

Here is the complete code

```auto

[{"id":"cf239ad9.c76598","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"7b200786.6e8a88","type":"inject","z":"cf239ad9.c76598","name":"","props":[{"p":"payload.timeout","v":"5","vt":"num"},{"p":"payload.timeoutUnits","v":"seconds","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":200,"y":210,"wires":[["ed6806b2.ea1bd8","88f77850.edce78"]]},{"id":"ed6806b2.ea1bd8","type":"debug","z":"cf239ad9.c76598","name":"1","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":470,"y":135,"wires":[]},{"id":"bcf5d455.be4718","type":"debug","z":"cf239ad9.c76598","name":"2","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":515,"y":285,"wires":[]},{"id":"1c399e9c.2c8f91","type":"function","z":"cf239ad9.c76598","name":"Cancellation Message","func":"msg.tts = {}\nmsg.tts.message = \"Действие отменено!\"\nmsg.tts.speaker = \"media_player.google_home_mini_livingroom\"\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":610,"y":195,"wires":[["ed6806b2.ea1bd8"]]},{"id":"88f77850.edce78","type":"ha-wait-until","z":"cf239ad9.c76598","name":"CANCEL Action","server":"63f11f83.adf4c","outputs":2,"entityId":"script.system_cancel_trigger","entityIdFilterType":"exact","property":"state","comparator":"is","value":"on","valueType":"str","timeout":"111","timeoutType":"num","timeoutUnits":"seconds","entityLocation":"","entityLocationType":"none","checkCurrentState":true,"blockInputOverrides":true,"x":380,"y":210,"wires":[["1c399e9c.2c8f91","ed6806b2.ea1bd8"],[]]},{"id":"63f11f83.adf4c","type":"server","z":"","name":"Home Assistant","legacy":false,"addon":false,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]

```

Thanks a lot!

---

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [7 August 2020 21:31 UTC](https://discourse.nodered.org/t/wait-until-node-bug-timeout-definition/31289/2 "2020-08-07T21:31:44Z")

</div>

It make it difficult for people to help if you don't declare the full name of the node.

I just looked in the library and entered `wait` and did not see anything like `wait` and `until`.

---

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [7 August 2020 21:42 UTC](https://discourse.nodered.org/t/wait-until-node-bug-timeout-definition/31289/3 "2020-08-07T21:42:52Z")

</div>

[![](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/6/d66a473d003fd898546d39b2fba5528b2592122d.png) ](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/6/d66a473d003fd898546d39b2fba5528b2592122d.png)

[![](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/b/0b9606ffc7f65a063740d3f24ef04ab9ff48f817.png) ](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/b/0b9606ffc7f65a063740d3f24ef04ab9ff48f817.png)

This looks like a misunderstanding and explanation of what is wanted/expected.

It is wanting `msg.payload.timeout` and `msg.payload.timeoutUnits` from where I stand.

Though the error message says:

`{{data.timeout}}`

Try the way I suggested.

(And the full name of the node)

---

<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: [7 August 2020 21:45 UTC](https://discourse.nodered.org/t/wait-until-node-bug-timeout-definition/31289/4 "2020-08-07T21:45:00Z")

</div>

> [@ThisisIO](#):
>
> i'm trying to put the custom timeout in Wait until Node.
> 
> ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/f/8f6e0e9a4c4c2128775a58a38d9ea3a33d9a7123.png)

click the dropdown - choose `msg` & then enter `data.timeout`

If you view the [8th video](https://www.youtube.com/watch?v=TDxL02SInps&list=PLyNBB9VCLmo1hyO-4fIZ08gqFcXBkHy-6&index=8) in the excellent "node-red essentials" playlist, at about the 1:10 mark, you will see where Nick hovers over the debug message and copies the path to an item.

that is essentially what you need to do to get the path to the value you are interested in

---

<div class="post-metadata">

### Author: ![ThisisIO](https://avatars.discourse-cdn.com/v4/letter/t/22d042/32.png) [@ThisisIO](https://discourse.nodered.org/u/ThisisIO)
#### Post date: [7 August 2020 22:20 UTC](https://discourse.nodered.org/t/wait-until-node-bug-timeout-definition/31289/5 "2020-08-07T22:20:44Z")

</div>

> [@Trying\_to\_learn](#):
>
> It make it difficult for people to help if you don't declare the full name of the node.
> 
> I just looked in the library and entered `wait` and did not see anything like `wait` and `until` .

As i said it is Wait Until Node - sorry i do not know where to find the full name of it. Looks like standart Node, as for me i did not installed it, it was in package.

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

---

<div class="post-metadata">

### Author: ![ThisisIO](https://avatars.discourse-cdn.com/v4/letter/t/22d042/32.png) [@ThisisIO](https://discourse.nodered.org/u/ThisisIO)
#### Post date: [7 August 2020 22:22 UTC](https://discourse.nodered.org/t/wait-until-node-bug-timeout-definition/31289/6 "2020-08-07T22:22:03Z")

</div>

> [@Steve-Mcl](#):
>
> click the dropdown - choose `msg` & then enter `data.timeout`

First of all i thought also this way, but, please take a look at it

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/8/b8f76047e6551e6bd7c930fba7d92006539e4d7d.png)

---

<div class="post-metadata">

### Author: ![ThisisIO](https://avatars.discourse-cdn.com/v4/letter/t/22d042/32.png) [@ThisisIO](https://discourse.nodered.org/u/ThisisIO)
#### Post date: [7 August 2020 22:24 UTC](https://discourse.nodered.org/t/wait-until-node-bug-timeout-definition/31289/7 "2020-08-07T22:24:37Z")

</div>

> [@Trying\_to\_learn](#):
>
> It is wanting `msg.payload.timeout` and `msg.payload.timeoutUnits` from where I stand.

In my explanation on next step i did it, but without susscess

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/6/663c7dbe3711ee0208b31ef17a628ed5f9f99063.png)

---

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [7 August 2020 22:34 UTC](https://discourse.nodered.org/t/wait-until-node-bug-timeout-definition/31289/8 "2020-08-07T22:34:27Z")

</div>

Well, I can't find such a node in my pallet.

So I can't help you further than this.

Open your pallet manager and find the node.  
Take a screen show and post it so the full name of the node can be seen.

Here is what I see if I go to the library and search for `wait`.

 ![Screenshot from 2020-08-08 08-41-26](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/0/307d54b60ca25f13ffb967e2db521a33ce37c5f7.png)

None of those are this `wait until` node.

---

<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: [8 August 2020 05:23 UTC](https://discourse.nodered.org/t/wait-until-node-bug-timeout-definition/31289/9 "2020-08-08T05:23:11Z")

</div>

My apologies, I thought it was a different node.

Is this a home assistant node? If so, have you tried asking on the HA forum?

---

<div class="post-metadata">

### Author: ![ThisisIO](https://avatars.discourse-cdn.com/v4/letter/t/22d042/32.png) [@ThisisIO](https://discourse.nodered.org/u/ThisisIO)
#### Post date: [8 August 2020 11:02 UTC](https://discourse.nodered.org/t/wait-until-node-bug-timeout-definition/31289/10 "2020-08-08T11:02:01Z")

</div>

> [@Trying\_to\_learn](#):
>
> Well, I can't find such a node in my pallet.

I understood, it it in package of Home Assistant

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

---

<div class="post-metadata">

### Author: ![ThisisIO](https://avatars.discourse-cdn.com/v4/letter/t/22d042/32.png) [@ThisisIO](https://discourse.nodered.org/u/ThisisIO)
#### Post date: [8 August 2020 15:34 UTC](https://discourse.nodered.org/t/wait-until-node-bug-timeout-definition/31289/11 "2020-08-08T15:34:24Z")

</div>

I solved it!

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/5/153a3b5e14dde40479fd7b988e195d4ebacf404a.png)  
It must be of course unchecked!

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [7 October 2020 15:34 UTC](https://discourse.nodered.org/t/wait-until-node-bug-timeout-definition/31289/12 "2020-10-07T15:34:33Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
