# Flow: act upon device is on for period of time

**URL:** <https://community.homey.app/t/flow-act-upon-device-is-on-for-period-of-time/49768>\
**Category:** Questions & Help\
**Tags:** flow\
**Created:** [July 25, 2021, 12:05pm UTC](https://community.homey.app/t/flow-act-upon-device-is-on-for-period-of-time/49768 "2021-07-25T12:05:59Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Caseda](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/caseda/32/138695_2.png) [@Caseda](https://community.homey.app/u/Caseda)\
**Post date:** [July 25, 2021, 12:40pm UTC](https://community.homey.app/t/flow-act-upon-device-is-on-for-period-of-time/49768/2 "2021-07-25T12:40:46Z")

</div>

Flow 1:  
IF light turned on  
THEN start timer (countdown) of 5400 seconds

Flow 2:  
IF light turned off  
THEN stop timer

Flow 3:  
IF timer gets empty  
THEN turn light off

Pretty much the same way as any other light trigger that is given in [this thread](https://community.homey.app/t/simple-lights-turning-on-off-based-on-motion/10889) where the default zone activity can’t be used.

---

_[View the full topic](https://community.homey.app/t/flow-act-upon-device-is-on-for-period-of-time/49768)._
