# Exiting an advanced flow by pushing a physical HUE button

**URL:** <https://community.homey.app/t/exiting-an-advanced-flow-by-pushing-a-physical-hue-button/94396>\
**Category:** Questions & Help\
**Tags:** advancedflow\
**Created:** [November 12, 2023, 9:23am UTC](https://community.homey.app/t/exiting-an-advanced-flow-by-pushing-a-physical-hue-button/94396 "2023-11-12T09:23:36Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![TMS\_TMS](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tms_tms/32/89175_2.png) [@TMS\_TMS](https://community.homey.app/u/TMS_TMS)\
**Post date:** [November 12, 2023, 9:23am UTC](https://community.homey.app/t/exiting-an-advanced-flow-by-pushing-a-physical-hue-button/94396/1 "2023-11-12T09:23:36Z")

</div>

hi guys

I created a flow that gradually increases a HUE light bulb in my sleeping room for waking me up.  
it increases the luminosity in 4 steps to 20%.

the thing is, when I wake up at e.g. 10% and push the off-button on my HUE dimmer, the bulb turns off (expected) but the flow keeps going on after that and turns the light on again, increasing gradually to 20%.

how can I exit the flow if I push the HUE dimmer button? all I can find is a ‘turn off the flow’ card, which totally disables the flow which is not what I’m looking for.

thanks a lot!

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/f/ffb7e68c3cae984d5c2033bf63f9ceb5f40a6e18.png)

---

<div class="post-metadata">

**Author:** ![Paul\_van\_Ulft](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/paul_van_ulft/32/56539_2.png) [@Paul\_van\_Ulft](https://community.homey.app/u/Paul_van_Ulft)\
**Post date:** [November 12, 2023, 10:31am UTC](https://community.homey.app/t/exiting-an-advanced-flow-by-pushing-a-physical-hue-button/94396/2 "2023-11-12T10:31:48Z")

</div>

If you use the dim to button you can right click on the card. Then you can set the duration. In your case 5 minutes. The lamp will dum to 20% in 5 minutes. You can switch the light off with the button. I don’t know for sure but I presume the light will stay off

---

<div class="post-metadata">

**Author:** ![Rmb](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rmb/32/79135_2.png) [@Rmb](https://community.homey.app/u/Rmb)\
**Post date:** [November 12, 2023, 10:37am UTC](https://community.homey.app/t/exiting-an-advanced-flow-by-pushing-a-physical-hue-button/94396/3 "2023-11-12T10:37:31Z")

</div>

You may try to disable the flow, but I am not sure the flow will abort. Otherwise you have to add some checks in your flow at several places if the button is pressed, and then exit the flow.

---

<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:** [November 12, 2023, 11:33am UTC](https://community.homey.app/t/exiting-an-advanced-flow-by-pushing-a-physical-hue-button/94396/4 "2023-11-12T11:33:38Z")

</div>

First of all, this is completely wrong:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/3/1390805e2e2d2bae9a9ebfe250e35f69460c2003.png)

The flow card _ **Vandaag…** _ is no trigger card, it’s an condition card (And…).  
Two trigger cards connected to a **ALL** card never works, because to different trigger will never be triggered at the exact same time (please also have a look at the topic [[FAQ][Advanced Flow] Infinite canvas. Infinite creativity)](https://community.homey.app/t/faq-advanced-flow-infinite-canvas-infinite-creativity/65145)

So it must look like this:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/9/5939580028d0a190ec4119237be08571e23e37d4.png)

* * *

The reason why the flow can’t be stopped is because of the use of the build-in delay flow cards. It’s not possible to stop them. If the delay card has been started and you switch off the lamp, the lamp will be switched on again when the delay card has expired.

It’s possible to stop this flow with a variable or a timer app, but in my opinion the most useful variant is @Paul_van_Ulft suggestion.

---

<div class="post-metadata">

**Author:** ![TMS\_TMS](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tms_tms/32/89175_2.png) [@TMS\_TMS](https://community.homey.app/u/TMS_TMS)\
**Post date:** [November 12, 2023, 11:43am UTC](https://community.homey.app/t/exiting-an-advanced-flow-by-pushing-a-physical-hue-button/94396/5 "2023-11-12T11:43:38Z")

</div>

thanks for all your suggestions!

how about this?

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/1/41b5171f1463ae5bdb3b06b9c85ac3e7f1f1027d.png)

---

<div class="post-metadata">

**Author:** ![TMS\_TMS](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tms_tms/32/89175_2.png) [@TMS\_TMS](https://community.homey.app/u/TMS_TMS)\
**Post date:** [November 12, 2023, 11:45am UTC](https://community.homey.app/t/exiting-an-advanced-flow-by-pushing-a-physical-hue-button/94396/6 "2023-11-12T11:45:57Z")

</div>

didn’t know about the right-click option, thanks!

---

<div class="post-metadata">

**Author:** ![Rmb](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rmb/32/79135_2.png) [@Rmb](https://community.homey.app/u/Rmb)\
**Post date:** [November 12, 2023, 12:03pm UTC](https://community.homey.app/t/exiting-an-advanced-flow-by-pushing-a-physical-hue-button/94396/7 "2023-11-12T12:03:36Z")

</div>

When you think you have a smart idee, some body else has most likely already implemented it. You just have to find it and search the forum an internet😁

---

<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:** [November 12, 2023, 12:20pm UTC](https://community.homey.app/t/exiting-an-advanced-flow-by-pushing-a-physical-hue-button/94396/8 "2023-11-12T12:20:34Z")

</div>

Test yourself, don’t ask… 😉

But why do you do this that way?

 ![SCR-20231112-ltzt](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/d/5d6f57ae4f4db40fe90744dc19ff956af0ca34ac.png)

The lamp is switched on. In **parallel** you the lamp is dimmed to 1 %. And after the lamp is switched on, the lamp is dimmed again to 1 %.

If lamps are able to be switched on directly via a dimming card depends on the lamps. If this is the case with the Hue lamps, you don’t need the card to switch them on. If the lamps don’t support this function, these lamps must first be switched on and then dimmed.

---

<div class="post-metadata">

**Author:** ![TMS\_TMS](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tms_tms/32/89175_2.png) [@TMS\_TMS](https://community.homey.app/u/TMS_TMS)\
**Post date:** [November 12, 2023, 3:16pm UTC](https://community.homey.app/t/exiting-an-advanced-flow-by-pushing-a-physical-hue-button/94396/9 "2023-11-12T15:16:49Z")

</div>

ah yes; so I noticed that without the parallel 1% brightness command, the bulb switched on at much more than 1%. and I’d like to wake up gradually, not like this 😉 so that’s why I’m giving the 1% command as quickly as possible, which is parallel IMO.

---

<div class="post-metadata">

**Author:** ![Wim\_Post](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wim_post/32/56793_2.png) [@Wim\_Post](https://community.homey.app/u/Wim_Post)\
**Post date:** [November 12, 2023, 9:56pm UTC](https://community.homey.app/t/exiting-an-advanced-flow-by-pushing-a-physical-hue-button/94396/10 "2023-11-12T21:56:37Z")

</div>

I think in this case its important to have de dimlevel set to zero before turning off the light.

 ![Schermafbeelding 2023-11-12 om 22.51.56](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/c/6ce47f28c4fff99982628c3740fdbb823757dc1f.jpeg)

---

<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:** [November 13, 2023, 9:20am UTC](https://community.homey.app/t/exiting-an-advanced-flow-by-pushing-a-physical-hue-button/94396/11 "2023-11-13T09:20:41Z")

</div>

I have also some Philips Hue bulbs in use, but directly connected with Homey, so not via Hue Bridge. If I start a flow and set the dimm level to 1 % without turning the bulb (E27 W&C Ambiance, LCT010) on before, the bulb starts with 1 % dimm level. Before I did this, the dimm level of the bulb was set to 100 % and then turned off.  
I guess this will also work with the Hue Bridge.

---

<div class="post-metadata">

**Author:** ![Wim\_Post](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wim_post/32/56793_2.png) [@Wim\_Post](https://community.homey.app/u/Wim_Post)\
**Post date:** [November 13, 2023, 10:45am UTC](https://community.homey.app/t/exiting-an-advanced-flow-by-pushing-a-physical-hue-button/94396/12 "2023-11-13T10:45:05Z")

</div>

FYI: In the Hue-bridge-app these settings are available:

 ![IMG_1654](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/3/c37017ee2d5afbd57dbc0438fd503aecbc7d3703.jpeg)

I did some testing. Without dimming to 0% before turning off, the lamp starts slightly brighter (≈8%?) (Laatste aan-status ‘on’)

With the last option ’on’ and set to 1% the lamp starts with 1%(Duh)
