# Wait until two states

**URL:** https://discourse.nodered.org/t/wait-until-two-states/87926
**Category:** General
**Created:** [14 May 2024 05:21 UTC](https://discourse.nodered.org/t/wait-until-two-states/87926 "2024-05-14T05:21:07Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![etmomoabc](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/etmomoabc/32/53077_2.png) [@etmomoabc](https://discourse.nodered.org/u/etmomoabc)
#### Post date: [14 May 2024 05:21 UTC](https://discourse.nodered.org/t/wait-until-two-states/87926/1 "2024-05-14T05:21:07Z")

</div>

Hope to get help! How to configure wait until node an entity appears not\_home or unavailable. One of two states.

---

<div class="post-metadata">

### Author: ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)
#### Post date: [14 May 2024 05:25 UTC](https://discourse.nodered.org/t/wait-until-two-states/87926/2 "2024-05-14T05:25:24Z")

</div>

Use two switch ~~nodes in parallel~~ rules connected to same node. Brain not engaged yet need coffee.

---

<div class="post-metadata">

### Author: ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)
#### Post date: [14 May 2024 05:48 UTC](https://discourse.nodered.org/t/wait-until-two-states/87926/3 "2024-05-14T05:48:31Z")

</div>

One switch node can have two outputs. Just wire them to the same place.

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

---

<div class="post-metadata">

### Author: ![etmomoabc](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/etmomoabc/32/53077_2.png) [@etmomoabc](https://discourse.nodered.org/u/etmomoabc)
#### Post date: [14 May 2024 08:13 UTC](https://discourse.nodered.org/t/wait-until-two-states/87926/4 "2024-05-14T08:13:14Z")

</div>

Yes! But how can "wait until" effect?

---

<div class="post-metadata">

### Author: ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)
#### Post date: [14 May 2024 08:24 UTC](https://discourse.nodered.org/t/wait-until-two-states/87926/5 "2024-05-14T08:24:26Z")

</div>

Edit: I have no idea why I mentioned Docker. Corrected!

Are you using ~~Docker~~ Home Assistant?

I get the impression that entities in ~~Docker~~ Home Assistant have a continuously available status, while in Node-red an entity exists only in a message which passes through the flow and is gone.

So everything about Node-red is "wait until" - it only does anything at all when a message arrives.

Clearly there are ways to make the two models work together, but without more information about your flow I can't see how to advise you.

---

<div class="post-metadata">

### Author: ![etmomoabc](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/etmomoabc/32/53077_2.png) [@etmomoabc](https://discourse.nodered.org/u/etmomoabc)
#### Post date: [14 May 2024 08:47 UTC](https://discourse.nodered.org/t/wait-until-two-states/87926/6 "2024-05-14T08:47:22Z")

</div>

Yes! I see. I am using using Docker Home Assistant?

---

<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: [12 August 2024 08:47 UTC](https://discourse.nodered.org/t/wait-until-two-states/87926/7 "2024-08-12T08:47:24Z")

</div>

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