# Help with creating an advanced flow

**URL:** <https://community.homey.app/t/help-with-creating-an-advanced-flow/106096>\
**Category:** Flows\
**Tags:** advancedflow\
**Created:** [March 12, 2024, 7:57am UTC](https://community.homey.app/t/help-with-creating-an-advanced-flow/106096 "2024-03-12T07:57:28Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![DirkH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkh/32/78952_2.png) [@DirkH](https://community.homey.app/u/DirkH)\
**Post date:** [March 12, 2024, 9:30am UTC](https://community.homey.app/t/help-with-creating-an-advanced-flow/106096/8 "2024-03-12T09:30:26Z")

</div>

Hi @Jari_Peuhkurinen ,  
Most important is that the first card _When…_ is only a trigger that fires at an incident. Then the flow is works off and stops. It starts only again if the next incident occurs, in your case - the alarm changes from off to on.  
Usually you should avoid _ **busy-wait** _, but in some cases it might be useful or an easy start.

 ![Busy-Wait](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/7/d7636ecdfa7271639e014399ea786c62b55d774b.jpeg)  
_yellow_ lines after the _And…_ cards mean **in case of _NO_**  
That is not anything I would suggest. But it is more or less how you looked on the problem - and it would work.  
Then you could check how others solve similar problems and which solution you like the best.

---

_[View the full topic](https://community.homey.app/t/help-with-creating-an-advanced-flow/106096)._
