# Use variable for timeout in wait until node

**URL:** <https://discourse.nodered.org/t/use-variable-for-timeout-in-wait-until-node/25255>\
**Category:** General\
**Created:** [21 April 2020 18:04 UTC](https://discourse.nodered.org/t/use-variable-for-timeout-in-wait-until-node/25255 "2020-04-21T18:04:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kanke](https://avatars.discourse-cdn.com/v4/letter/k/a698b9/32.png) [@kanke](https://discourse.nodered.org/u/kanke)\
**Post date:** [21 April 2020 18:04 UTC](https://discourse.nodered.org/t/use-variable-for-timeout-in-wait-until-node/25255/1 "2020-04-21T18:04:47Z")

</div>

I am using a couple of "wait util" node in my flows. Is it possible to get the "timeout" value from a variable? what should be the syntax?

"wait util" is from node-red-contrib-home-assistant-websocket

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [21 April 2020 18:31 UTC](https://discourse.nodered.org/t/use-variable-for-timeout-in-wait-until-node/25255/2 "2020-04-21T18:31:29Z")

</div>

it would help to know the full name (node-red-contrib-???) of the "wait until" nodes you are talking about.

---

<div class="post-metadata">

**Author:** ![kanke](https://avatars.discourse-cdn.com/v4/letter/k/a698b9/32.png) [@kanke](https://discourse.nodered.org/u/kanke)\
**Post date:** [21 April 2020 18:43 UTC](https://discourse.nodered.org/t/use-variable-for-timeout-in-wait-until-node/25255/3 "2020-04-21T18:43:18Z")

</div>

Sorry I forgot that, it is from node-red-contrib-home-assistant-websocket. Added to the post.  
Thanks.

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [21 April 2020 19:02 UTC](https://discourse.nodered.org/t/use-variable-for-timeout-in-wait-until-node/25255/4 "2020-04-21T19:02:04Z")

</div>

If you are trying to `get` the time out value I'd put a debug node set to display the complete msg object and see what shows up.

If you want to `set` the vaalut in a msg being sent to the node, I'd consult with the documentation for the node (I haven't used) or if no one else chimes in here, raise an issue in Github.

---

<div class="post-metadata">

**Author:** ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)\
**Post date:** [21 April 2020 21:56 UTC](https://discourse.nodered.org/t/use-variable-for-timeout-in-wait-until-node/25255/5 "2020-04-21T21:56:44Z")

</div>

It would be good to post a link to the node in the NPM repository.

Are you trying to wait until a time or wait until a certain amount of time has passed ?

You may get more answers on the HA forum as i am sure others would be using this node

Craig

---

<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:** [20 June 2020 21:56 UTC](https://discourse.nodered.org/t/use-variable-for-timeout-in-wait-until-node/25255/6 "2020-06-20T21:56:53Z")

</div>

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