# Variables in flow delays

**URL:** <https://community.homey.app/t/variables-in-flow-delays/53805>\
**Category:** Questions & Help\
**Created:** [October 27, 2021, 7:15am UTC](https://community.homey.app/t/variables-in-flow-delays/53805 "2021-10-27T07:15:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DavidH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/davidh/32/46160_2.png) [@DavidH](https://community.homey.app/u/DavidH)\
**Post date:** [October 27, 2021, 7:15am UTC](https://community.homey.app/t/variables-in-flow-delays/53805/1 "2021-10-27T07:15:22Z")

</div>

I was playing around with my KAKU ASUN-650 shutter switches which are not smart enough te remember the position of the shutter like other brands do. I figured if I knew how long the shutter takes to competely close/completely open, I’d be able to instruct it to close a certain percentage by some basic calculations. (example: if the shutter takes 20 seconds, and I want it to close 50%, I set a stop-delay after 10 seconds.)

I have this completely working, have a Siri voice automation that sends the percentage, and a flow that handles the percentage given, decides if the shutter needs to go up or down based on input and the last know input stored in a variable.

The only thing that’s left for me to do is set the ‘stop’-flow after a delay. And I can’t, because as far as I know flow-cards do not accept variables as input. Is there any workaround for this when using the regular flow cards? Or should I give up flow-cards and move to Homeyscript?

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [October 27, 2021, 5:26pm UTC](https://community.homey.app/t/variables-in-flow-delays/53805/2 "2021-10-27T17:26:43Z")

</div>

Maybe you can use a timer, which starts the “stop flow” when it’s finished (after the time which was set in your variable).

> ![Screenshot_20211027-192530_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/d/cdd42f24ea068d6a2e898bc747a461b925d75f46.jpeg)

The “Stop flow” trigger “when timer has finished”

> ![Screenshot_20211027-193424_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/7/8715172f7175d5b44fdc27df10d7442b946ef024.jpeg)
