# Simple flow

**URL:** <https://community.homey.app/t/simple-flow/8136>\
**Category:** Questions & Help\
**Created:** [January 28, 2019, 8:27am UTC](https://community.homey.app/t/simple-flow/8136 "2019-01-28T08:27:36Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![gwilliamb](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gwilliamb/32/4302_2.png) [@gwilliamb](https://community.homey.app/u/gwilliamb)\
**Post date:** [January 28, 2019, 8:27am UTC](https://community.homey.app/t/simple-flow/8136/1 "2019-01-28T08:27:37Z")

</div>

Hi,  
I have created a couple of flows that should not be difficult to perform. I want to complicate it latter however I can’t seen to get this easy part working correctly as yet. These two flows are turn on driveway lights and turn off driveway lights. I am using an Aeotec Multisensor 4 in 1and an Aeotec Smart Switch. So the first flow is

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/4/4e9f3721cbc3fae5fddec17fd0af1f006c845db8.jpeg) ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/2/283d16bcf0d45aa467f8ee48162c2969e8a20314.jpeg) ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/8/848ec357eef8112a737946edd006a0e94613c742.jpeg)  
So to turn of the lights it’s basically the opposite.  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/3/3959998b2dbb86730db18a534796e3048f57b09e.jpeg) ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/3/3ccb3c912c8d2f52a32aa9b3f2bda4962b9a2ff9.jpeg) ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/7/72786a82534a983504e59436d5f00c847f703616.jpeg)  
This works sometimes going on and sometimes not.  
Same for turning the lights off. Sometimes they turn off automatically,others not. What can I do? This should be simple, shouldn’t it?  
Thanks  
Glenn

---

<div class="post-metadata">

**Author:** ![CyberSponk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/cybersponk/32/8334_2.png) [@CyberSponk](https://community.homey.app/u/CyberSponk)\
**Post date:** [January 28, 2019, 9:20am UTC](https://community.homey.app/t/simple-flow/8136/2 "2019-01-28T09:20:15Z")

</div>

Have you checked that you Motion-Sensor is working correct \> Did you see the Motion-Alarm on the Device-Card of your Motion-Sensor?

---

<div class="post-metadata">

**Author:** ![Bob\_Mijwaard](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bob_mijwaard/32/11736_2.png) [@Bob\_Mijwaard](https://community.homey.app/u/Bob_Mijwaard)\
**Post date:** [January 28, 2019, 9:40am UTC](https://community.homey.app/t/simple-flow/8136/3 "2019-01-28T09:40:25Z")

</div>

why not turn the light off in the first flow with a delay of a few minutes

---

<div class="post-metadata">

**Author:** ![Jeroen\_Somhorst](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jeroen_somhorst/32/184_2.png) [@Jeroen\_Somhorst](https://community.homey.app/u/Jeroen_Somhorst)\
**Post date:** [January 28, 2019, 10:45am UTC](https://community.homey.app/t/simple-flow/8136/4 "2019-01-28T10:45:31Z")

</div>

Because that would leave people in the dark after x seconds? 😉

---

<div class="post-metadata">

**Author:** ![gwilliamb](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gwilliamb/32/4302_2.png) [@gwilliamb](https://community.homey.app/u/gwilliamb)\
**Post date:** [January 28, 2019, 11:29am UTC](https://community.homey.app/t/simple-flow/8136/5 "2019-01-28T11:29:32Z")

</div>

Yes the motion sensor is showing.

---

<div class="post-metadata">

**Author:** ![gwilliamb](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gwilliamb/32/4302_2.png) [@gwilliamb](https://community.homey.app/u/gwilliamb)\
**Post date:** [January 28, 2019, 11:32am UTC](https://community.homey.app/t/simple-flow/8136/6 "2019-01-28T11:32:22Z")

</div>

It would go dark after x seconds but wouldn’t it restart again with movement. I can see that as having the same effect as the two flows combined. How do I do this? It’s worth a try.

---

<div class="post-metadata">

**Author:** ![Jeroen\_Somhorst](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jeroen_somhorst/32/184_2.png) [@Jeroen\_Somhorst](https://community.homey.app/u/Jeroen_Somhorst)\
**Post date:** [January 28, 2019, 11:36am UTC](https://community.homey.app/t/simple-flow/8136/7 "2019-01-28T11:36:28Z")

</div>

Nope not always. Because if the alarm goes on the light turns on. After 5 seconds it will ALWAYS kill the light. So if someone is moving right after 5 seconds the light will turn on again. But if someone moved just before the light will still go off.

So that is something you don’t want, I guess.

---

<div class="post-metadata">

**Author:** ![gwilliamb](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gwilliamb/32/4302_2.png) [@gwilliamb](https://community.homey.app/u/gwilliamb)\
**Post date:** [January 28, 2019, 12:53pm UTC](https://community.homey.app/t/simple-flow/8136/8 "2019-01-28T12:53:17Z")

</div>

No you are correct. It would not be the best solution then

---

<div class="post-metadata">

**Author:** ![gwilliamb](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gwilliamb/32/4302_2.png) [@gwilliamb](https://community.homey.app/u/gwilliamb)\
**Post date:** [January 30, 2019, 12:11pm UTC](https://community.homey.app/t/simple-flow/8136/9 "2019-01-30T12:11:17Z")

</div>

I don’t know why but the lights seem to be working now without a problem. I’ll post my next problem soon.

---

<div class="post-metadata">

**Author:** ![gwilliamb](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gwilliamb/32/4302_2.png) [@gwilliamb](https://community.homey.app/u/gwilliamb)\
**Post date:** [February 2, 2019, 12:19pm UTC](https://community.homey.app/t/simple-flow/8136/10 "2019-02-02T12:19:56Z")

</div>

I was wrong. It is playing up again. Bob, or anyone, how do I set up the lights to stay on for say 5 minutes? Please see previous flow and help me add the 5 minute addition. I can’t think of any way of making it work even though it probably won’t be perfect as Jeroen\_Somhorst commented.

---

<div class="post-metadata">

**Author:** ![Bob\_Mijwaard](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bob_mijwaard/32/11736_2.png) [@Bob\_Mijwaard](https://community.homey.app/u/Bob_Mijwaard)\
**Post date:** [February 2, 2019, 2:27pm UTC](https://community.homey.app/t/simple-flow/8136/12 "2019-02-02T14:27:52Z")

</div>

You can solve this by using the app countdown. Make a variable set it to x minutes. When the variable is -1 the light will turn off, you have to make a flow for that process.

---

<div class="post-metadata">

**Author:** ![gwilliamb](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gwilliamb/32/4302_2.png) [@gwilliamb](https://community.homey.app/u/gwilliamb)\
**Post date:** [February 2, 2019, 11:50pm UTC](https://community.homey.app/t/simple-flow/8136/13 "2019-02-02T23:50:33Z")

</div>

Hi Bob ,  
I’m only new at this. Could you please give me more detailed instructions on doing this please and maybe a picture of flow. Sorry but I must not be that bright.

---

<div class="post-metadata">

**Author:** ![seiko](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/seiko/32/10963_2.png) [@seiko](https://community.homey.app/u/seiko)\
**Post date:** [February 3, 2019, 7:33am UTC](https://community.homey.app/t/simple-flow/8136/14 "2019-02-03T07:33:36Z")

</div>

install the[Countdown app](https://apps.athom.com/app/nl.bevlogenheid.countdown)  
Add a counter at more…settings…countdown…and give it the name e.g. driveway.

make 3 flows

1. **IF** motion alarm is goes on **AND** lights are off **AND** sunset is true **THEN** turn on lights. **THEN** stop _driveway_ counter  
**ELSE** stop _driveway_ counter

2. **IF** _driveway_ counter is empty **THEN** turn off the lights.

3. **IF** motion alarm goes off **THEN** turn _driveway_ counter to e.g. 60 sec.

---

<div class="post-metadata">

**Author:** ![Bob\_Mijwaard](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bob_mijwaard/32/11736_2.png) [@Bob\_Mijwaard](https://community.homey.app/u/Bob_Mijwaard)\
**Post date:** [February 3, 2019, 1:25pm UTC](https://community.homey.app/t/simple-flow/8136/15 "2019-02-03T13:25:59Z")

</div>

Here is an (dutch) example. First install the app countdown and set a variable, like @seiko described.  
With this variable you turn the light off when it has counted down.  
The advantage of using this is that the light only turns off when there is no movement anymore.

 ![Screenshot_20190203-140412_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/c/cd50bf30852a28542795d7af3978a18fc77bad85.jpeg) ![Screenshot_20190203-140436_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/6/6d3d56f139e9373b85852dcc740adcaa423cf848.jpeg) ![Screenshot_20190203-140510_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/f/fcd74892aca37d1aa42433709c3440aa1b33a42e.jpeg) ![Screenshot_20190203-140521_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/6/636f17b90fc5bbcb1f52c34843306b6a949005b4.jpeg)

---

<div class="post-metadata">

**Author:** ![seiko](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/seiko/32/10963_2.png) [@seiko](https://community.homey.app/u/seiko)\
**Post date:** [February 3, 2019, 7:08pm UTC](https://community.homey.app/t/simple-flow/8136/16 "2019-02-03T19:08:40Z")

</div>

Your approach maybe works but I think when you are going to have a party your lights wil go off.  
because if erverybody is jumping the motion sensor does not go off…in the meantime your counter is going to be zero and you are in the dark.

And its not logical to turn on your light when they are already on, each time your motion sensor alarm goes on

---

<div class="post-metadata">

**Author:** ![gwilliamb](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gwilliamb/32/4302_2.png) [@gwilliamb](https://community.homey.app/u/gwilliamb)\
**Post date:** [February 4, 2019, 10:34am UTC](https://community.homey.app/t/simple-flow/8136/17 "2019-02-04T10:34:09Z")

</div>

I must have done something wrong because the lights just stay on now.

---

<div class="post-metadata">

**Author:** ![gwilliamb](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gwilliamb/32/4302_2.png) [@gwilliamb](https://community.homey.app/u/gwilliamb)\
**Post date:** [February 4, 2019, 10:36am UTC](https://community.homey.app/t/simple-flow/8136/18 "2019-02-04T10:36:21Z")

</div>

Unfortunately my Dutch is non existent. I’m not understanding I’m sorry.

---

<div class="post-metadata">

**Author:** ![seiko](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/seiko/32/10963_2.png) [@seiko](https://community.homey.app/u/seiko)\
**Post date:** [February 4, 2019, 5:16pm UTC](https://community.homey.app/t/simple-flow/8136/19 "2019-02-04T17:16:23Z")

</div>

yes then something is wrong, if you show what you have done then we also know 🤔

---

<div class="post-metadata">

**Author:** ![gwilliamb](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gwilliamb/32/4302_2.png) [@gwilliamb](https://community.homey.app/u/gwilliamb)\
**Post date:** [February 5, 2019, 12:41pm UTC](https://community.homey.app/t/simple-flow/8136/20 "2019-02-05T12:41:06Z")

</div>

Hi Seiko,  
I think it is working now. I will test it over the next few nights and let you know how I go. Thanks Glenn

---

<div class="post-metadata">

**Author:** ![gwilliamb](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gwilliamb/32/4302_2.png) [@gwilliamb](https://community.homey.app/u/gwilliamb)\
**Post date:** [February 8, 2019, 1:49pm UTC](https://community.homey.app/t/simple-flow/8136/21 "2019-02-08T13:49:18Z")

</div>

Yep Seiko it’s definitely working. Thank you so much. Much appreciated.  
Glenn

[Next page](https://community.homey.app/t/simple-flow/8136.md?page=2)
