# Help on how to create flow

**URL:** <https://community.homey.app/t/help-on-how-to-create-flow/32699>\
**Category:** Questions & Help\
**Created:** [July 23, 2020, 12:16am UTC](https://community.homey.app/t/help-on-how-to-create-flow/32699 "2020-07-23T00:16:09Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![Oren\_Malki](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oren_malki/32/13766_2.png) [@Oren\_Malki](https://community.homey.app/u/Oren_Malki)\
**Post date:** [July 23, 2020, 12:16am UTC](https://community.homey.app/t/help-on-how-to-create-flow/32699/1 "2020-07-23T00:16:09Z")

</div>

so it’s a bit complicated  
i hope u understand me 😃

i have motion sensor  
i want to set a flow:

if this time is between 07:00 and10:00  
set logic to  
i am up

but i want it to work only once and not evry time the sensor will sense a motion between the hours…how do i do it ?  
thanks!

---

<div class="post-metadata">

**Author:** ![peltsi51](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peltsi51/32/12564_2.png) [@peltsi51](https://community.homey.app/u/peltsi51)\
**Post date:** [July 23, 2020, 1:37am UTC](https://community.homey.app/t/help-on-how-to-create-flow/32699/2 "2020-07-23T01:37:03Z")

</div>

Set following flows

Flow1  
When  
motion is detected

And  
time is between 7.00-10.00 and  
logic variable “happened today” is false

Then  
set logic variable “I am awake” true  
set logic variable “happened today” true

Flow 2  
When  
Every 1d

Then  
Set logic variable “happened today” false

---

<div class="post-metadata">

**Author:** ![Rocodamelshekima](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rocodamelshekima/32/8209_2.png) [@Rocodamelshekima](https://community.homey.app/u/Rocodamelshekima)\
**Post date:** [July 23, 2020, 4:49am UTC](https://community.homey.app/t/help-on-how-to-create-flow/32699/3 "2020-07-23T04:49:15Z")

</div>

WHEN motion is detected  
AND time is between 7 and 10  
THEN set logic to true AND disable this flow

WHEN time is 7  
THEN enable first flow

(Please keep in mind that there’s a difference between enabling a flow and starting a flow!)

---

<div class="post-metadata">

**Author:** ![Oren\_Malki](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oren_malki/32/13766_2.png) [@Oren\_Malki](https://community.homey.app/u/Oren_Malki)\
**Post date:** [July 23, 2020, 7:51am UTC](https://community.homey.app/t/help-on-how-to-create-flow/32699/4 "2020-07-23T07:51:21Z")

</div>

Im sorry but i am not sure i understand.  
How do i do flow:  
When  
Every 1d

How do i do it?  
And y do i need both i am a wake and heppend today ? Y not just 1?

---

<div class="post-metadata">

**Author:** ![Neuron44](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/neuron44/32/9492_2.png) [@Neuron44](https://community.homey.app/u/Neuron44)\
**Post date:** [July 23, 2020, 9:32am UTC](https://community.homey.app/t/help-on-how-to-create-flow/32699/5 "2020-07-23T09:32:46Z")

</div>

@peltsi51 used ‘happened today’ to prevent the flow from running twice.

@Rocodamelshekima used disabling and enabling the flow to accomplish the same goal.

It’s up to you to decide which one you prefer.

---

<div class="post-metadata">

**Author:** ![Oren\_Malki](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oren_malki/32/13766_2.png) [@Oren\_Malki](https://community.homey.app/u/Oren_Malki)\
**Post date:** [July 23, 2020, 10:23am UTC](https://community.homey.app/t/help-on-how-to-create-flow/32699/6 "2020-07-23T10:23:41Z")

</div>

so lets say i disable the flow  
how will i set it to be disable for XXX time…?  
i mean lets say i did the flow wich disable the first flew so it will not reapet itself…how do i set it to start working again?

im hope u can understand me…my english is…comsi comsa 😃

---

<div class="post-metadata">

**Author:** ![Oren\_Malki](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oren_malki/32/13766_2.png) [@Oren\_Malki](https://community.homey.app/u/Oren_Malki)\
**Post date:** [July 23, 2020, 11:07am UTC](https://community.homey.app/t/help-on-how-to-create-flow/32699/7 "2020-07-23T11:07:28Z")

</div>

i try to do as u say  
i added pic of first flow  
is it correct?

 ![1](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/5/b543ebc9306b15927b204e4b758dda8e8a635312.jpeg)

---

<div class="post-metadata">

**Author:** ![Oren\_Malki](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oren_malki/32/13766_2.png) [@Oren\_Malki](https://community.homey.app/u/Oren_Malki)\
**Post date:** [July 23, 2020, 11:19am UTC](https://community.homey.app/t/help-on-how-to-create-flow/32699/8 "2020-07-23T11:19:41Z")

</div>

ok so this is what i did  
is it correct?  
im still not sure how it will not repet itself again lets say at 7:15 and in 7:30 and so on…  
really apriciate if u can help me and offcurse thankyou for all ur help so far 😃

 ![1](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/4/24e30a4347496cfadff5c815602bb655d1894e78.jpeg) ![2](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/c/9c935d66fdc7e1e832d2e3f09d1b7bf2d2c36420.jpeg)

---

<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:** [July 23, 2020, 11:43am UTC](https://community.homey.app/t/help-on-how-to-create-flow/32699/9 "2020-07-23T11:43:44Z")

</div>

`no` (which you are using in the first flow) is not the same as `No` (which you are using in the second flow).

---

<div class="post-metadata">

**Author:** ![peltsi51](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peltsi51/32/12564_2.png) [@peltsi51](https://community.homey.app/u/peltsi51)\
**Post date:** [July 23, 2020, 11:47am UTC](https://community.homey.app/t/help-on-how-to-create-flow/32699/10 "2020-07-23T11:47:30Z")

</div>

You also have to add in the then part of second flow that you set the “Im up” into no. I forgot that from the previous post.

---

<div class="post-metadata">

**Author:** ![Oren\_Malki](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oren_malki/32/13766_2.png) [@Oren\_Malki](https://community.homey.app/u/Oren_Malki)\
**Post date:** [July 24, 2020, 8:25am UTC](https://community.homey.app/t/help-on-how-to-create-flow/32699/11 "2020-07-24T08:25:15Z")

</div>

What do u mean? Where did i go wrong?

---

<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:** [July 24, 2020, 9:08am UTC](https://community.homey.app/t/help-on-how-to-create-flow/32699/12 "2020-07-24T09:08:22Z")

</div>

You are setting the value of the variable to “No” (uppercase N, lowercase o) in the second flow, but in the first flow you are comparing its value against “backtick-lowercase n-lowercase o-backtick”. That comparison will always fail, both the value and the comparison need to be exactly the same.

---

<div class="post-metadata">

**Author:** ![Oren\_Malki](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oren_malki/32/13766_2.png) [@Oren\_Malki](https://community.homey.app/u/Oren_Malki)\
**Post date:** [July 24, 2020, 7:20pm UTC](https://community.homey.app/t/help-on-how-to-create-flow/32699/13 "2020-07-24T19:20:46Z")

</div>

I cant control if it is capital No or no…

 ![Screenshot_20200724-221843_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/a/8af45d72c105cdae65f8f6901b317a2066230511.jpeg) ![Screenshot_20200724-221955_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/e/ee52811ea3b8bbbdd9dfece69b7cb9100b754522.jpeg)

---

<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:** [July 25, 2020, 6:00am UTC](https://community.homey.app/t/help-on-how-to-create-flow/32699/14 "2020-07-25T06:00:50Z")

</div>

And you also can’t change the “is equal to” value?

---

<div class="post-metadata">

**Author:** ![Szergely](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/szergely/32/24419_2.png) [@Szergely](https://community.homey.app/u/Szergely)\
**Post date:** [July 26, 2020, 2:54pm UTC](https://community.homey.app/t/help-on-how-to-create-flow/32699/15 "2020-07-26T14:54:41Z")

</div>

Hi @Oren_Malki!

I have a similar solution for this. When you click on your profile in Homey you can see “wake-up” or not. My setting for this is if its daytime and I’m home (based on GPS) and I open the IKEA smart blinds between 8 AM and 12 AM - then I’m awake and the morning flow starts with the coffee machine, TV, music etc.

At night if the time is between 6PM - 11 PM, I’m home (based on GPS) and the TV is off (which is always on usually) then Homey knows its nighttime and I’m asleep.

---

<div class="post-metadata">

**Author:** ![Oren\_Malki](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oren_malki/32/13766_2.png) [@Oren\_Malki](https://community.homey.app/u/Oren_Malki)\
**Post date:** [July 27, 2020, 11:34pm UTC](https://community.homey.app/t/help-on-how-to-create-flow/32699/16 "2020-07-27T23:34:03Z")

</div>

i can make it equl to… but equl to what?

---

<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:** [July 28, 2020, 5:31am UTC](https://community.homey.app/t/help-on-how-to-create-flow/32699/17 "2020-07-28T05:31:20Z")

</div>

Ah never mind, you used the inverted `is equal to "yes"` card. I don’t understand why that wouldn’t work…
