[Flow] One time during a specific time

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

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]’
1 Like

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”:

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

Sorry for dumb question :frowning:

Have a nice day,

Julien

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’
1 Like

Thank you so much Maikel !

I’ll try it later and I’ll keep you in touch :slight_smile:

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:

Regards,

Julien

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.

Hello Maikel !

Thank for answer and yes this is what I did:

image