# Stop flow

**URL:** <https://community.homey.app/t/stop-flow/26185>\
**Category:** Questions & Help\
**Created:** [February 21, 2020, 7:34am UTC](https://community.homey.app/t/stop-flow/26185 "2020-02-21T07:34:45Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Norbert](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/norbert/32/15120_2.png) [@Norbert](https://community.homey.app/u/Norbert)\
**Post date:** [February 21, 2020, 7:34am UTC](https://community.homey.app/t/stop-flow/26185/1 "2020-02-21T07:34:45Z")

</div>

I have made a flow that warns to take medicine. It makes Homey say take your medicine and also lets the ledring flash for an hour and sends a message tot the phone and after an hour another message.

Is there way that when the medicine is taken the flow can be stopped in a way that the ledring reverts to default and the second message isn’t send?

---

<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:** [February 21, 2020, 7:56am UTC](https://community.homey.app/t/stop-flow/26185/2 "2020-02-21T07:56:57Z")

</div>

Of course. But to stop the flow an action must be taken, e.g. a button must be pressed. Maybe it is also possible with Alexa or Google TTS, but I am not familiar with that.

Please post your flow. Then it is easier to modify it or create another flow.

---

<div class="post-metadata">

**Author:** ![Norbert](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/norbert/32/15120_2.png) [@Norbert](https://community.homey.app/u/Norbert)\
**Post date:** [February 21, 2020, 8:03am UTC](https://community.homey.app/t/stop-flow/26185/3 "2020-02-21T08:03:12Z")

</div>

A button will be fine. I have a z-wave switch van Robbshop. Here is the flow

 ![Schermafbeelding 2020-02-21 om 09.00.19](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/2/a2bf3c4fbb2e6292b6309f1933d8701ff9553021.png) ![Schermafbeelding 2020-02-21 om 09.00.41](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/0/d0c2d8ade9421d4ae9aea2545719cd5ee5506237.png)

---

<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:** [February 21, 2020, 8:23am UTC](https://community.homey.app/t/stop-flow/26185/4 "2020-02-21T08:23:33Z")

</div>

You need a second flow.

If…

- Button was pressed

Then…

- Deactivate the flow “take medicine”
- Activate (do not start!) the flow “Take medicine” after e.g. 60 seconds

I am not sure if it really works, if Homey stops glowing and the second message is not sent.  
If it doesn’t work we have to change the first flow a bit and also the second flow.  
What should the LED ring of Homey do when the flow is stopped? You write that the LED-Ring should go to the default state. What is the initial state for you? For me it is off.

Translated with [www.DeepL.com/Translator](http://www.DeepL.com/Translator) (free version)

---

<div class="post-metadata">

**Author:** ![Norbert](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/norbert/32/15120_2.png) [@Norbert](https://community.homey.app/u/Norbert)\
**Post date:** [February 21, 2020, 8:36am UTC](https://community.homey.app/t/stop-flow/26185/5 "2020-02-21T08:36:40Z")

</div>

It doesn’t work. Led ring stays pulsing. The default led ring setting for me is screensaver spectrum.

 ![Schermafbeelding 2020-02-21 om 09.34.13](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/1/11bee8bdf427b1f2908456883da01a5d010a040a.png)

---

<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:** [February 21, 2020, 8:47am UTC](https://community.homey.app/t/stop-flow/26185/6 "2020-02-21T08:47:16Z")

</div>

Ok, then you have to insert the following command between the two commands (Disable / Enable)

- LED-Ring -\> Set Screen Saver -\> Spectrum

---

<div class="post-metadata">

**Author:** ![Osorkon](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/osorkon/32/43026_2.png) [@Osorkon](https://community.homey.app/u/Osorkon)\
**Post date:** [February 21, 2020, 8:57am UTC](https://community.homey.app/t/stop-flow/26185/7 "2020-02-21T08:57:20Z")

</div>

Just on the edge.  
A flow cannot be stopped. A flow that contains delayed actions runs until the end, even if it is deactivated. Just restarting homey stops all running flows. Deactivating a flow only prevents the flow from being started again.  
Homey also allows multiple instances of a flow to run simultaneously.

---

<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:** [February 21, 2020, 9:08am UTC](https://community.homey.app/t/stop-flow/26185/8 "2020-02-21T09:08:12Z")

</div>

Okay, good to know or I keep forgetting. Shame on me…  
But you can “interrupt” the pulsing of the LED ring with a new command, right?  
Then we have the problem of the second notification to the smartphone. We have to solve that with the chronograph app and variables if necessary.

---

<div class="post-metadata">

**Author:** ![Cory](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/cory/32/12997_2.png) [@Cory](https://community.homey.app/u/Cory)\
**Post date:** [February 21, 2020, 9:22am UTC](https://community.homey.app/t/stop-flow/26185/9 "2020-02-21T09:22:00Z")

</div>

You can solve that with extra flows, too.

Current flow, instead of:  
“after X minutes repeat reminder”  
Use “after X minutes, run flow 1”

Flow 1 =  
When: this flow is started  
And: “medication taken?” value is “no”  
Then: “repeat reminder”

Flow 2 =  
When: button pressed  
Then:  
set LED ring to normal  
set “medication taken?” logic value to “yes”  
After X time, set “medication taken?” logic value back to “no”

There might be a more straightforward way to do it but this seems like it’d work.

---

<div class="post-metadata">

**Author:** ![Norbert](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/norbert/32/15120_2.png) [@Norbert](https://community.homey.app/u/Norbert)\
**Post date:** [February 21, 2020, 9:31am UTC](https://community.homey.app/t/stop-flow/26185/10 "2020-02-21T09:31:33Z")

</div>

Thats too bad a flow can’t be stopped. The interupting of the ledring can’t be stopped. It stays pulsing even if I add the card that should revert it to screensaver.

 ![Schermafbeelding 2020-02-21 om 10.12.41](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/d/8d4eb2b136ca896f42ec3821c3f325a382071573.png)  
I will try what corry writes for the reminder.

---

<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:** [February 21, 2020, 10:06am UTC](https://community.homey.app/t/stop-flow/26185/12 "2020-02-21T10:06:58Z")

</div>

Unfortunately, the LED ring is not set to its default setting. Probably there will be no solution for this either!?

Otherwise the flow works perfect!

---

<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:** [February 21, 2020, 10:09am UTC](https://community.homey.app/t/stop-flow/26185/13 "2020-02-21T10:09:56Z")

</div>

Maybe you could work with a timer and a short repetition frequency (e.g. 1 minute). Then the LED ring would continue flashing for a maximum of one minute before returning to its default setting.

---

<div class="post-metadata">

**Author:** ![Norbert](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/norbert/32/15120_2.png) [@Norbert](https://community.homey.app/u/Norbert)\
**Post date:** [February 21, 2020, 10:10am UTC](https://community.homey.app/t/stop-flow/26185/14 "2020-02-21T10:10:14Z")

</div>

I have now create the flows as Cory described them and I think that will work. The led ring I worked around bt changing the screensaver to pulse. It will than start pulsing white and change as soon as spectrum is actived. I would like to change the color to red, but I guess this will do.

---

<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:** [February 21, 2020, 10:13am UTC](https://community.homey.app/t/stop-flow/26185/15 "2020-02-21T10:13:16Z")

</div>

In my case the LED ring is still flashing, although the LED ring has already been set to default (off) by the 3rd flow.  
I would be interested to know if it works for you.

---

<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:** [February 21, 2020, 11:26am UTC](https://community.homey.app/t/stop-flow/26185/16 "2020-02-21T11:26:33Z")

</div>

I tried something. Now you need a total of 5 flows, but the LED ring is set back to the default setting after a relatively short time. The time depends on the time interval (chronograph app) in which the flow is repeated. In my opinion, an interval of 1 minute is okay.  
Another advantage of this flow is that you can have further reminders sent to you at freely selectable intervals (interval of at least 1 minute) (see examples with 60 and 120 minutes in flow 4).  
For the flow you also need the chronograph app and a numeric variable (e.g. Pil\_Counter).

Maybe you would like to test this flow too… 🤷🏽‍♂️
