# Pushbutton to extend time of flow

**URL:** <https://community.homey.app/t/pushbutton-to-extend-time-of-flow/105453>\
**Category:** Questions & Help\
**Created:** [March 3, 2024, 7:03pm UTC](https://community.homey.app/t/pushbutton-to-extend-time-of-flow/105453 "2024-03-03T19:03:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roel\_den\_Hond](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/roel_den_hond/32/33904_2.png) [@Roel\_den\_Hond](https://community.homey.app/u/Roel_den_Hond)\
**Post date:** [March 3, 2024, 7:03pm UTC](https://community.homey.app/t/pushbutton-to-extend-time-of-flow/105453/1 "2024-03-03T19:03:28Z")

</div>

Hallo  
I have several flow how finished on a preset time  
How can I extended the the during a party  
Normally the flow ends about 23:45 but during a party or visitors I want to extend the time by using a pushbutton on my phone

---

<div class="post-metadata">

**Author:** ![Theo\_de\_Koning](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/theo_de_koning/32/136062_2.png) [@Theo\_de\_Koning](https://community.homey.app/u/Theo_de_Koning)\
**Post date:** [March 3, 2024, 7:35pm UTC](https://community.homey.app/t/pushbutton-to-extend-time-of-flow/105453/2 "2024-03-03T19:35:34Z")

</div>

Here I use virtuele switch’s.  
They can be selected as a favourite device on your phone.

---

<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:** [March 4, 2024, 7:17am UTC](https://community.homey.app/t/pushbutton-to-extend-time-of-flow/105453/3 "2024-03-04T07:17:43Z")

</div>

Yup, also using a virtual device for this

---

<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:** [March 4, 2024, 11:19am UTC](https://community.homey.app/t/pushbutton-to-extend-time-of-flow/105453/4 "2024-03-04T11:19:37Z")

</div>

“the flow ends” is maybe not exactly the right wording/meaning, because a flow can only be triggered/started at a particular time or event. A flow can’t be stopped at a particular time, e.g. with a flow card “At 23:45 stop the flow”.  
Of course, the ending of a flow can be influenced by a timer, a build-in delay flow card or something else. But this exactly the important thing what we need to know. What does your flow end at 23:45?  
So it would be helpful if you post a flow as example.

---

<div class="post-metadata">

**Author:** ![Roel\_den\_Hond](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/roel_den_hond/32/33904_2.png) [@Roel\_den\_Hond](https://community.homey.app/u/Roel_den_Hond)\
**Post date:** [March 4, 2024, 2:30pm UTC](https://community.homey.app/t/pushbutton-to-extend-time-of-flow/105453/5 "2024-03-04T14:30:04Z")

</div>

[https://homey.app/f/hsWS9U/](https://homey.app/f/hsWS9U/)  
this 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:** [March 4, 2024, 3:06pm UTC](https://community.homey.app/t/pushbutton-to-extend-time-of-flow/105453/6 "2024-03-04T15:06:29Z")

</div>

So you actually don’t use any timer or delay function to let end the flow at 23:45.  
Then in my opinion the easiest way is indeed to use a virtual switch to ensure, that the flow isn’t triggered at 23:43 at all if there is a party going on.  
A flow card of the virtual switch must be added in the section _ **And…** _ to the flow as _ **Is not switched/turned on** _.  
Then you also need a second flow. Copy the flow and exchange the first flow card _ **The time is** _ with a flow card of the virtual switch _ **Turned off** _. In addition add a flow card _ **Time is later than 23:43** _.  
The standard state of the virtual switch must be disabled.

How it works  
If you have invited guests or are having a party, you need to turn on the virtual switch. This ensures that the flow doesn’t start at 23:43.  
When all the guests have left, turn off the virtual switch. If it’s already after 23:43, the new flow is started immediately. If it’s still before 23:43, the “old” flow will start as usual at 23:43.
