# Can I use a logic variable in as value for a delay in a Then card?

**URL:** <https://community.homey.app/t/can-i-use-a-logic-variable-in-as-value-for-a-delay-in-a-then-card/52687>\
**Category:** Questions & Help\
**Tags:** flow\
**Created:** [October 4, 2021, 10:07pm UTC](https://community.homey.app/t/can-i-use-a-logic-variable-in-as-value-for-a-delay-in-a-then-card/52687 "2021-10-04T22:07:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![spoorend](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/spoorend/32/45645_2.png) [@spoorend](https://community.homey.app/u/spoorend)\
**Post date:** [October 4, 2021, 10:07pm UTC](https://community.homey.app/t/can-i-use-a-logic-variable-in-as-value-for-a-delay-in-a-then-card/52687/1 "2021-10-04T22:07:11Z")

</div>

I have multiple flows which turns on Hue lights and after 300 seconds turn them off again.

I would like to use a number variable for the delay (time) instead of a fixed value so I can change the timeout more easily (for example to 360 instead of 300 seconds).

But at the then card I can input between - random but I don’t know how to enter a variable which I declared in the logic section.

Is this possible or could this be a feature request?

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/3/b3ba8fa35f7e3466ad8a40bc3c953cdbe99e9653.jpeg)

---

<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 4, 2021, 10:44pm UTC](https://community.homey.app/t/can-i-use-a-logic-variable-in-as-value-for-a-delay-in-a-then-card/52687/2 "2021-10-04T22:44:10Z")

</div>

A thought, using Chronograph, you can use a numeric variable for adjustable timer values (not tested);  
The 1st flow starts timer X and turns the light on;  
The 2nd flow should trigger when timer X has finished, and this flow then turns the light off.

> ![Screenshot_20211005-005051_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/e/de3d638ff7009bb8438bcbecc12031b215634ea5.jpeg)

.

> ![Screenshot_20211005-004102_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/9/698b3709330bd9bfeea6e0491776c8ea8232fcee.jpeg)

---

<div class="post-metadata">

**Author:** ![spoorend](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/spoorend/32/45645_2.png) [@spoorend](https://community.homey.app/u/spoorend)\
**Post date:** [October 5, 2021, 5:19pm UTC](https://community.homey.app/t/can-i-use-a-logic-variable-in-as-value-for-a-delay-in-a-then-card/52687/3 "2021-10-05T17:19:28Z")

</div>

Thanks a lot Peter for this suggestion!

I tried by making two test flows with a lamp inside the house and it works as you described!!
