# \[Flow\] One time during a specific time

**URL:** https://community.homey.app/t/flow-one-time-during-a-specific-time/2870
**Category:** Apps
**Created:** [October 16, 2018, 7:42am UTC](https://community.homey.app/t/flow-one-time-during-a-specific-time/2870 "2018-10-16T07:42:02Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Julien\_Moors](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/julien_moors/32/26538_2.png) [@Julien\_Moors](https://community.homey.app/u/Julien_Moors)
#### Post date: [October 16, 2018, 7:42am UTC](https://community.homey.app/t/flow-one-time-during-a-specific-time/2870/1 "2018-10-16T07:42:02Z")

</div>

Hello !!!

I’m looking to trigger a flow only one time between two dates but I don’t know how to ?

For example:

When the motion sensor motion alarm is acivated for the first time between 16/10/18 and 20/10/18, activate “Welcome” flow (only ones between 16/10/18 and 20/10/18).

have you got an idea for me ?

Have a nice day all !

Julien

---

<div class="post-metadata">

### Author: ![Maikel](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/maikel/32/12410_2.png) [@Maikel](https://community.homey.app/u/Maikel)
#### Post date: [October 16, 2018, 8:05am UTC](https://community.homey.app/t/flow-one-time-during-a-specific-time/2870/2 "2018-10-16T08:05:42Z")

</div>

This can be done using the following flow:

When:

- motion detected

And:

- date between 16/10/2018 and 20/10/2018

Then:

- start flow ‘Welcome’
- disable flow ‘[current flow]’

---

<div class="post-metadata">

### Author: ![Julien\_Moors](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/julien_moors/32/26538_2.png) [@Julien\_Moors](https://community.homey.app/u/Julien_Moors)
#### Post date: [October 16, 2018, 8:27am UTC](https://community.homey.app/t/flow-one-time-during-a-specific-time/2870/3 "2018-10-16T08:27:35Z")

</div>

Hello Maikel and thank you for your answer !

The problem is I don’t find the “Welcome” flow when I add “Disable flow” in the “Then” of “Welcome flow”:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/1/1b26c2e5ec9f641dcb90d284d6f10a835c526fb5.jpeg)

Do I have to write “[current flow]” manually ?

Sorry for dumb question ☹

Have a nice day,

Julien

---

<div class="post-metadata">

### Author: ![Maikel](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/maikel/32/12410_2.png) [@Maikel](https://community.homey.app/u/Maikel)
#### Post date: [October 16, 2018, 9:20am UTC](https://community.homey.app/t/flow-one-time-during-a-specific-time/2870/4 "2018-10-16T09:20:54Z")

</div>

I assumed you wanted to use two flows: one that triggers by the motion sensor and one (called ‘Welcome’) that sets the scene. In that case get two flows:  
**1. Motion triggered**  
When:

- motion detected

And:

- date between 16/10/2018 and 20/10/2018

Then:

- start flow ‘Welcome’
- disable flow ‘Motion triggered’

**2. Welcome**  
When:

- This flow is started

Then:

- Activate a scene: Soft Lights

There’s no need to check for the motion sensor again, since the flow was activated by the motion sensor.  
This way you can reuse the ‘Welcome’ flow from other flows as well.

If you don’t need that, you can do this in a single flow as well:

**Welcome**  
When:

- motion detected

And:

- date between 16/10/2018 and 20/10/2018

Then:

- Activate a scene: Soft Lights
- disable flow ‘Welcome’

---

<div class="post-metadata">

### Author: ![Julien\_Moors](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/julien_moors/32/26538_2.png) [@Julien\_Moors](https://community.homey.app/u/Julien_Moors)
#### Post date: [October 16, 2018, 9:29am UTC](https://community.homey.app/t/flow-one-time-during-a-specific-time/2870/5 "2018-10-16T09:29:54Z")

</div>

Thank you so much Maikel !

I’ll try it later and I’ll keep you in touch 🙂

---

<div class="post-metadata">

### Author: ![Julien\_Moors](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/julien_moors/32/26538_2.png) [@Julien\_Moors](https://community.homey.app/u/Julien_Moors)
#### Post date: [October 16, 2018, 9:23pm UTC](https://community.homey.app/t/flow-one-time-during-a-specific-time/2870/6 "2018-10-16T21:23:06Z")

</div>

It works perfectly ! Thanks !

Do you know a way to launch a flow at the end of the “Between date” ?

In fact I want to launch flows the first date and flows the last day of my “between dates” but I want to introduce dates only one time in one flow card like this:

 ![08](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/e/ef81bfeb17841a1035111c4e584570913c9ebd83.png)

Regards,

Julien

---

<div class="post-metadata">

### Author: ![Maikel](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/maikel/32/12410_2.png) [@Maikel](https://community.homey.app/u/Maikel)
#### Post date: [October 29, 2018, 11:14am UTC](https://community.homey.app/t/flow-one-time-during-a-specific-time/2870/7 "2018-10-29T11:14:06Z")

</div>

If you want to start flows on the begin- and end-date of the between-range, I guess you need to create two separate flows for that: one with the begin-date (and time) as the trigger and a second one for the end-date.

---

<div class="post-metadata">

### Author: ![Julien\_Moors](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/julien_moors/32/26538_2.png) [@Julien\_Moors](https://community.homey.app/u/Julien_Moors)
#### Post date: [October 29, 2018, 12:17pm UTC](https://community.homey.app/t/flow-one-time-during-a-specific-time/2870/8 "2018-10-29T12:17:46Z")

</div>

Hello Maikel !

Thank for answer and yes this is what I did:

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/8/8a72bd5f6f24281b0f42b339691838803ff2feb0.jpeg)
