# Wait until certain time

**URL:** <https://community.homey.app/t/wait-until-certain-time/130142>\
**Category:** Devices\
**Tags:** flow\
**Created:** [February 9, 2025, 3:23pm UTC](https://community.homey.app/t/wait-until-certain-time/130142 "2025-02-09T15:23:46Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luigi\_Colancecco](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/luigi_colancecco/32/82268_2.png) [@Luigi\_Colancecco](https://community.homey.app/u/Luigi_Colancecco)\
**Post date:** [February 9, 2025, 3:23pm UTC](https://community.homey.app/t/wait-until-certain-time/130142/1 "2025-02-09T15:23:46Z")

</div>

As you see in the picture, I’m trying to set myself “Luigi” as sleeping at 10:00pm regardless on when when wife and daughter go to sleep which is usually earlier. I prefer to do this in 1 flow and not have to enable/disable other flows to make this happen

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/f/5ff38c7c4b5aff10e4802f9b67d2e10c4f07a21a.png)

---

<div class="post-metadata">

**Author:** ![SunBeech](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sunbeech/32/111391_2.png) [@SunBeech](https://community.homey.app/u/SunBeech)\
**Post date:** [February 9, 2025, 3:29pm UTC](https://community.homey.app/t/wait-until-certain-time/130142/2 "2025-02-09T15:29:44Z")

</div>

Wouldn’t it be simpler to just use the WHEN card ‘Time is 22:00’ followed by the Mark yourself asleep card? As a separate flow on the same canvas?

 ![IMG_1688](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/8/b8b5b5973c84d9c3fc71c53f2f11db3f98c862c7.jpeg)

---

<div class="post-metadata">

**Author:** ![FKey](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fkey/32/14793_2.png) [@FKey](https://community.homey.app/u/FKey)\
**Post date:** [February 9, 2025, 3:49pm UTC](https://community.homey.app/t/wait-until-certain-time/130142/3 "2025-02-09T15:49:45Z")

</div>

> [@Luigi\_Colancecco](#):
>
> I prefer to do this in 1 flow

Why? Normally splitting up in more flows makes things easier to understand and less error-prone.

> [@Luigi\_Colancecco](#):
>
> _regardless_ on when when wife and daughter go to sleep

You already state yourself _regardless_…  
in that case you should not connect it to other flow

@SunBeech has a nice and simple proposal…

---

<div class="post-metadata">

**Author:** ![OH2TH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oh2th/32/111414_2.png) [@OH2TH](https://community.homey.app/u/OH2TH)\
**Post date:** [February 9, 2025, 4:07pm UTC](https://community.homey.app/t/wait-until-certain-time/130142/4 "2025-02-09T16:07:25Z")

</div>

As you are using advanced flows, you can use the trigger  
[![](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/8/b8b5b5973c84d9c3fc71c53f2f11db3f98c862c7.jpeg) ](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/8/b8b5b5973c84d9c3fc71c53f2f11db3f98c862c7.jpeg)

in your advanced flow and just link yourself to that.

---

<div class="post-metadata">

**Author:** ![Luigi\_Colancecco](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/luigi_colancecco/32/82268_2.png) [@Luigi\_Colancecco](https://community.homey.app/u/Luigi_Colancecco)\
**Post date:** [February 9, 2025, 4:11pm UTC](https://community.homey.app/t/wait-until-certain-time/130142/5 "2025-02-09T16:11:10Z")

</div>

I had this originally on an AND command, but it would only work if it was triggered during that specific set time frame. I did not use the time command on a WHEN command because I would have to disable it if/when I had a day off

---

<div class="post-metadata">

**Author:** ![SunBeech](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sunbeech/32/111391_2.png) [@SunBeech](https://community.homey.app/u/SunBeech)\
**Post date:** [February 9, 2025, 4:26pm UTC](https://community.homey.app/t/wait-until-certain-time/130142/6 "2025-02-09T16:26:02Z")

</div>

Okay. As an alternative you could add a logic card to your original flow that sets a yes/no variable (e.g. ‘BED TIME AT 22’) to Yes when you manually run it (after the cards that mark your wife/daughter asleep). Remove your own asleep card.

In a second flow you use the time card I mention before and next an additional check (via a logic card) on the value of the variable ‘BED TIME AT 22’. If Yes then mark yourself as asleep + set the variable to No. If no, do nothing.

---

<div class="post-metadata">

**Author:** ![Luigi\_Colancecco](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/luigi_colancecco/32/82268_2.png) [@Luigi\_Colancecco](https://community.homey.app/u/Luigi_Colancecco)\
**Post date:** [February 9, 2025, 4:38pm UTC](https://community.homey.app/t/wait-until-certain-time/130142/7 "2025-02-09T16:38:53Z")

</div>

Something like this?  
Where the "Set BED TIME @ 22 to Yes, is the end of the 1st flow.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/2/2269fa9bb6109adcab002d718fe6d8e6b78dc502.png)

---

<div class="post-metadata">

**Author:** ![SunBeech](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sunbeech/32/111391_2.png) [@SunBeech](https://community.homey.app/u/SunBeech)\
**Post date:** [February 9, 2025, 4:49pm UTC](https://community.homey.app/t/wait-until-certain-time/130142/8 "2025-02-09T16:49:47Z")

</div>

Indeed. This way you will only be set to asleep automatically at 22:00, when you triggered the first flow manually.

---

<div class="post-metadata">

**Author:** ![Luigi\_Colancecco](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/luigi_colancecco/32/82268_2.png) [@Luigi\_Colancecco](https://community.homey.app/u/Luigi_Colancecco)\
**Post date:** [February 9, 2025, 4:50pm UTC](https://community.homey.app/t/wait-until-certain-time/130142/9 "2025-02-09T16:50:37Z")

</div>

Thank You!
