# The lights turn off when the zone is active

**URL:** <https://community.homey.app/t/the-lights-turn-off-when-the-zone-is-active/59005>\
**Category:** Flows\
**Tags:** flow\
**Created:** [January 23, 2022, 11:15pm UTC](https://community.homey.app/t/the-lights-turn-off-when-the-zone-is-active/59005 "2022-01-23T23:15:37Z")\
**Posts on this page:** 1\
**Showing post:** 10

<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:** [April 24, 2023, 7:12am UTC](https://community.homey.app/t/the-lights-turn-off-when-the-zone-is-active/59005/10 "2023-04-24T07:12:52Z")

</div>

The reason why your flow doesn’t work as you wish is, because you use the delay card instead of a timer, like Peter does.  
The problem with the delay card is, once the flow has been started because the zone became inactive for a short moment, the light will be switched off after 30 seconds, independent of if the zone was activated again within the 30 seconds.

So you can use the card “Zone is inactive for x minutes”, or you can use a timer (see Peter’s example, or this [tutorial](https://community.homey.app/t/simple-lights-turning-on-off-based-on-motion/10889)).

---

_[View the full topic](https://community.homey.app/t/the-lights-turn-off-when-the-zone-is-active/59005)._
