# WaitUntil function

**URL:** <https://community.homey.app/t/waituntil-function/105099>\
**Category:** Questions & Help\
**Tags:** app, tools\
**Created:** [February 28, 2024, 8:54am UTC](https://community.homey.app/t/waituntil-function/105099 "2024-02-28T08:54:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![peav](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peav/32/34205_2.png) [@peav](https://community.homey.app/u/peav)\
**Post date:** [February 28, 2024, 8:54am UTC](https://community.homey.app/t/waituntil-function/105099/1 "2024-02-28T08:54:52Z")

</div>

I 'm looking for a function like: ‘Wait Until’ a specefic time of day. Ex.: Wait until 02:20 PM.

I cannot find a function/app with this possibilities, but has anybody a useful workaround.

/Poul-Erik

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [February 28, 2024, 9:10am UTC](https://community.homey.app/t/waituntil-function/105099/2 "2024-02-28T09:10:24Z")

</div>

Sounds like an [XY problem](https://en.wikipedia.org/wiki/XY_problem). What is your goal?

---

<div class="post-metadata">

**Author:** ![DirkH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkh/32/78952_2.png) [@DirkH](https://community.homey.app/u/DirkH)\
**Post date:** [February 28, 2024, 9:32am UTC](https://community.homey.app/t/waituntil-function/105099/3 "2024-02-28T09:32:19Z")

</div>

Hi @peav ,  
usually you don’t wait until a specific time, but just stop the flow and write another flow that starts _When … At 2:20 PM Do something else_.  
If you do not want this to start every day, but only when before the other flow has ended with a specific state/property/result, you can either do it by _activate/deactivate_ or you use a binary (yes/no) variable **RundFlow2**.

---

<div class="post-metadata">

**Author:** ![peav](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peav/32/34205_2.png) [@peav](https://community.homey.app/u/peav)\
**Post date:** [March 2, 2024, 2:25pm UTC](https://community.homey.app/t/waituntil-function/105099/4 "2024-03-02T14:25:34Z")

</div>

The goal was to wait for an action to happing befor a specific time. I would not like to have a notification during the night.  
Trigger start - It’s after 10PM - Wait Until 6AM - Action start

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [March 2, 2024, 3:48pm UTC](https://community.homey.app/t/waituntil-function/105099/5 "2024-03-02T15:48:38Z")

</div>

> [@peav](#):
>
> Trigger start - It’s after 10PM - Wait Until 6AM - Action start

- Flow 1:
  - WHEN trigger occurs
  - AND after 10PM OR before 6AM
  - THEN set variable “X happened” to true
  - ELSE do action

- Flow 2:
  - WHEN it’s 6AM
  - AND “X happened” is true
  - THEN do action
  - THEN set “X happened” to false
