# Beginner: how to design a good flow | like prevent repetition when its unwanted

**URL:** https://community.homey.app/t/beginner-how-to-design-a-good-flow-like-prevent-repetition-when-its-unwanted/30388
**Category:** Flows
**Created:** [May 25, 2020, 2:05pm UTC](https://community.homey.app/t/beginner-how-to-design-a-good-flow-like-prevent-repetition-when-its-unwanted/30388 "2020-05-25T14:05:50Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![anon61197305](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@anon61197305](https://community.homey.app/u/anon61197305)
#### Post date: [May 25, 2020, 2:05pm UTC](https://community.homey.app/t/beginner-how-to-design-a-good-flow-like-prevent-repetition-when-its-unwanted/30388/1 "2020-05-25T14:05:50Z")

</div>

It’s quite hard to get an overview of the possibilities because of the absence of a full list of WHEN, AND, THEN-cards and the options for each card.

I want a vacuum to clean if everyone has left the house. But not always when we leave the house (that is: just once a day (first time) instead of every time we leave that day).  
I can imagine that you set a boulean. And reset that every night?

So is that a good flow? And where is good documentation about all the options, cards and settings? 🙂

---

<div class="post-metadata">

### Author: ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)
#### Post date: [May 25, 2020, 3:55pm UTC](https://community.homey.app/t/beginner-how-to-design-a-good-flow-like-prevent-repetition-when-its-unwanted/30388/2 "2020-05-25T15:55:13Z")

</div>

Whether it is a good or a bad flow is probably something everyone has to decide for himself. Some create their routines with few flows but at the same time with many cards. Others create multiple flows with a smaller number of cards per flow.

But yes, the flow will work and I would probably do the same.

Rudimentary instructions can be found on the Athom website.  
If there is a documentation of all build-in possibilities, I don’t know.  
But in the community there are several tutorials and you will always get help.

---

<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: [May 25, 2020, 6:43pm UTC](https://community.homey.app/t/beginner-how-to-design-a-good-flow-like-prevent-repetition-when-its-unwanted/30388/3 "2020-05-25T18:43:39Z")

</div>

What I would do:

> [@anon61197305](#):
>
> I want a vacuum to clean if everyone has left the house.

1.You need to set up presence detection (search the forum, many ways to do that

> [@anon61197305](#):
>
> But not always when we leave the house (that is: just once a day (first time) instead of every time we leave that day).  
> I can imagine that you set a boulean. And reset that every night?

1. Create a boolean or virtual device “cleaning is done”
2. when everybody has left the house and “cleaning is done”=Off activate the flow that starts the cleaner,
3. In that same flow set The virtual device “cleaning is done” to On  
[/quote]
4. Reset the “cleaning is done” at a specific time

Like fantross mentioned, how you build your flow is very personal.I am a huge fan of many flow with a few cards. Want to know why?nread my post _[“how to structure your flows”](https://community.homey.app/t/how-to-structure-your-flows/25109)_

---

<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: [May 26, 2020, 5:48am UTC](https://community.homey.app/t/beginner-how-to-design-a-good-flow-like-prevent-repetition-when-its-unwanted/30388/4 "2020-05-26T05:48:44Z")

</div>

Perhaps a good place to start. Some random guy decided he had enough time to create these tutorials. Don’t ask me why he did it:

1. 

> [@Getting Started - Creating flows](https://community.homey.app/t/getting-started-creating-flows/20051):
>
> In this tutorial you will learn to: create simple flows, using ‘when’ and ‘then’ learn to use tags in flows learn to expand your flows with ‘and’ learn to add multiple ‘then’ and ‘and’ cards learn to ‘invert’ cards Adding ‘or’ and ‘else’ will be part of the next tutorial. First, I assume that you have a Homey (pro) installed, a few apps and devices set-up and ready to go and some basic knowledge the English language. Furthermore, I assume that you have Homey’s location enabled. There are ot…

1. 

> [@Getting Started - The 'or' and 'else' parts of a flow](https://community.homey.app/t/getting-started-the-or-and-else-parts-of-a-flow/20059/4):
>
> I think what you are looking for is: When Trigger A happened And Condition 1 is met Condition 2 is met Then Execute action x Else Execute action z Like @JPe4619 states, this is explained in the tutorial. But no worries, feel free to ask. In the flow above, the action x will only execute when both conditions 1 and 2 are met. If only one is met, or when none is met, action z will execute. I hope this clarifies things? If it doesn’t, please post printscreens of your flow and tell us wha…

1. 

> [@Getting Started - Logic variables](https://community.homey.app/t/getting-started-logic-variables/20132/11):
>
> Hi, Many thanks for explaining this subject, very helpful in understanding this subject. The examples gives you a clou what can be done. I’m still in the KAKU modus where on/off was my main option. Grtz,. Hans

---

<div class="post-metadata">

### Author: ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)
#### Post date: [May 26, 2020, 6:37am UTC](https://community.homey.app/t/beginner-how-to-design-a-good-flow-like-prevent-repetition-when-its-unwanted/30388/5 "2020-05-26T06:37:40Z")

</div>

😂 👍🏼
