# How do delay and duration work in relation to each other

**URL:** <https://community.homey.app/t/how-do-delay-and-duration-work-in-relation-to-each-other/9381>\
**Category:** Questions & Help\
**Created:** [February 19, 2019, 6:20am UTC](https://community.homey.app/t/how-do-delay-and-duration-work-in-relation-to-each-other/9381 "2019-02-19T06:20:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![victoroos](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/victoroos/32/8344_2.png) [@victoroos](https://community.homey.app/u/victoroos)\
**Post date:** [February 19, 2019, 6:20am UTC](https://community.homey.app/t/how-do-delay-and-duration-work-in-relation-to-each-other/9381/1 "2019-02-19T06:20:53Z")

</div>

Dear all  
I’m trying to make a good Wakeup light based on my alarm for sleep as android.  
I want to start with one LIGHT, Ander after 28 minutes I want the next light tot urn on and also start slowly to get brighter.  
Do I fill in:  
Turn on  
Delay: 28

Set brightness to  
70%  
Delay:28  
Duration:22

Or do I put nothing at delay because it counts from the moment the light is turned on?

Vkr  
Victor

---

<div class="post-metadata">

**Author:** ![Marcel\_Ubels](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcel_ubels/32/18860_2.png) [@Marcel\_Ubels](https://community.homey.app/u/Marcel_Ubels)\
**Post date:** [February 19, 2019, 7:11am UTC](https://community.homey.app/t/how-do-delay-and-duration-work-in-relation-to-each-other/9381/2 "2019-02-19T07:11:40Z")

</div>

Yep it starts at the first delay, so you have to put the 28 minutes delay in the next THEN

---

<div class="post-metadata">

**Author:** ![victoroos](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/victoroos/32/8344_2.png) [@victoroos](https://community.homey.app/u/victoroos)\
**Post date:** [February 19, 2019, 7:43am UTC](https://community.homey.app/t/how-do-delay-and-duration-work-in-relation-to-each-other/9381/3 "2019-02-19T07:43:43Z")

</div>

How do you mean first delay? From what? 🙂

---

<div class="post-metadata">

**Author:** ![Rocodamelshekima](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rocodamelshekima/32/8209_2.png) [@Rocodamelshekima](https://community.homey.app/u/Rocodamelshekima)\
**Post date:** [February 19, 2019, 7:46am UTC](https://community.homey.app/t/how-do-delay-and-duration-work-in-relation-to-each-other/9381/4 "2019-02-19T07:46:30Z")

</div>

The delay is the time that it will take BEFORE the card fires. The duration is the time it will take the lamp to get from 0 to 80% brightness. So first card is lamp 1 on. Next card is lamp 2 on with a delay of 28 minutes. And so on. For the slowly getting brighter part u choose “dim lamp to “ card and with the duration u will give the time to get from 0 to 80% for example.
