# Need help with presence logic – delay before turning lights off

**URL:** <https://community.homey.app/t/need-help-with-presence-logic-delay-before-turning-lights-off/150831>\
**Category:** Flows\
**Tags:** flow, homey-pro, homey-bridge\
**Created:** [February 9, 2026, 10:20am UTC](https://community.homey.app/t/need-help-with-presence-logic-delay-before-turning-lights-off/150831 "2026-02-09T10:20:56Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roman\_Soos](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/roman_soos/32/120735_2.png) [@Roman\_Soos](https://community.homey.app/u/Roman_Soos)\
**Post date:** [February 9, 2026, 10:20am UTC](https://community.homey.app/t/need-help-with-presence-logic-delay-before-turning-lights-off/150831/1 "2026-02-09T10:20:56Z")

</div>

**Goal:**  
I want the lights in my living room **NOT to turn off** if I leave the room only briefly (e.g. for 60 seconds).  
They should turn off **only if the room is really empty**.

**Setup:**

- Aqara presence sensor (mmWave)

- Homey Pro 2023

- Lights controlled via Shelly

**What I want to achieve (logic):**

1. When _no presence_ is detected → wait 60 seconds

2. If there is still _no presence_ after 60 seconds → mark the room as empty

3. Only then allow any flow to turn the lights off

4. If presence is detected again within those 30 seconds → do nothing

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [February 9, 2026, 10:35am UTC](https://community.homey.app/t/need-help-with-presence-logic-delay-before-turning-lights-off/150831/2 "2026-02-09T10:35:31Z")

</div>

> [@Roman\_Soos](#):
>
> **What I want to achieve (logic):**
> 
> 1. When _no presence_ is detected → wait 60 seconds
> 2. If there is still _no presence_ after 60 seconds → mark the room as empty
> 3. Only then allow any flow to turn the lights off
> 4. If presence is detected again within those 30 seconds → do nothing

This can be boiled down to one flow:

WHEN the “living room” zone has been inactive for 1 minute THEN turn off the light

---

<div class="post-metadata">

**Author:** ![Roman\_Soos](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/roman_soos/32/120735_2.png) [@Roman\_Soos](https://community.homey.app/u/Roman_Soos)\
**Post date:** [February 9, 2026, 11:14am UTC](https://community.homey.app/t/need-help-with-presence-logic-delay-before-turning-lights-off/150831/3 "2026-02-09T11:14:36Z")

</div>

```auto
Can you please send me a photo/screenshot of where exactly this is set in Flows or Logic?
I'm a new user of Homey Pro - I've already added the devices and they work properly, but setting up Logic is more challenging for me so far.
That's why I want to fine-tune it: when I leave the living room for the kitchen, the light turns off immediately, and I would like it to stay on for a certain amount of time.

Thanks !!! :) 

```

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [February 9, 2026, 11:17am UTC](https://community.homey.app/t/need-help-with-presence-logic-delay-before-turning-lights-off/150831/4 "2026-02-09T11:17:23Z")

</div>

Just search for “zone”:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/7/6706afa3d49bee0706ae716b75ec2842644fd89a.png)

FWIW, this obviously depends on you having set up a “living room” zone, and placed the sensor and the lights in it.

---

<div class="post-metadata">

**Author:** ![Roman\_Soos](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/roman_soos/32/120735_2.png) [@Roman\_Soos](https://community.homey.app/u/Roman_Soos)\
**Post date:** [February 9, 2026, 11:27am UTC](https://community.homey.app/t/need-help-with-presence-logic-delay-before-turning-lights-off/150831/5 "2026-02-09T11:27:05Z")

</div>

![IMG_3828.PNG](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/7/c740536537e28cd6b6a6396e592a54dc1014ca08.jpeg)

So far I have it like this. FP300 - LED OFF - GOVEE LED OFF

So should I go where you sent me now? ….

---

<div class="post-metadata">

**Author:** ![Wim\_Post](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wim_post/32/56793_2.png) [@Wim\_Post](https://community.homey.app/u/Wim_Post)\
**Post date:** [February 9, 2026, 11:35am UTC](https://community.homey.app/t/need-help-with-presence-logic-delay-before-turning-lights-off/150831/6 "2026-02-09T11:35:26Z")

</div>

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

(I copied the time-condition from your flow. Be aware that outside this time frame the lights will stay on when the zone is inactive for more than 1 minute. I don’t think that’s what you want)

---

<div class="post-metadata">

**Author:** ![Roman\_Soos](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/roman_soos/32/120735_2.png) [@Roman\_Soos](https://community.homey.app/u/Roman_Soos)\
**Post date:** [February 9, 2026, 12:55pm UTC](https://community.homey.app/t/need-help-with-presence-logic-delay-before-turning-lights-off/150831/7 "2026-02-09T12:55:12Z")

</div>

Thanks, I’m going to try everything and let you know later tonight if it responds and works properly.  
Thanks everyone, if anything happens, I’ll get back to you.

---

<div class="post-metadata">

**Author:** ![DoctorBazinga](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/doctorbazinga/32/39686_2.png) [@DoctorBazinga](https://community.homey.app/u/DoctorBazinga)\
**Post date:** [February 10, 2026, 2:44pm UTC](https://community.homey.app/t/need-help-with-presence-logic-delay-before-turning-lights-off/150831/8 "2026-02-10T14:44:04Z")

</div>

You should also have a trigger possibility like when presence us iff/deactivated for … (a duration/time period) like my SwitchBot presence sensor has (if you have the latest Homey pro firmware:

 ![IMG_8338](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/1/016a746fd63bb1e751a7dd12e81fadcf493a7a0b.jpeg)

So you van set an amount of seconds or minutes a certain state should last to trigger a flow.

So set a trigger of “When presence is de-activated for 60 seconds …” Then ….

Using the zone not active for …. Like other users above have mentioned is an other possibility but other sensors(door/windows cotact sensors or other IR motion sensors with longer period of time till they report a “no motion” with alarms might still jeep that zone active while nobody is in the zone anymore.on the other side : using zone (in)activity might prevent false negatives(=false “no motion/presence”).

I always combine an IR motion sensor with a seperate presence sensor in zones/rooms where its very important to make sure that any false positives ir negatives are being prevented as most as possible. (Like my living room / computer desk/ sleeping room, lavatory & bathroom. (Nothing is more annoying when the lights turn of while showering with shampoo 🧴 on your head/in your hair and almost closed eyes to prevent shampoo getting into your eyes. All this because the only motion sensor is a IR sensor without the capability to sense your presence in the shower (behind the glass or shower curtain).

I also recommend a vibration sensor (from Third Reality brand) on your gaming chair , bed/matrass and/or couch as redundancy precaution.

---

<div class="post-metadata">

**Author:** ![dsdevries](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dsdevries/32/80220_2.png) [@dsdevries](https://community.homey.app/u/dsdevries)\
**Post date:** [February 17, 2026, 10:05am UTC](https://community.homey.app/t/need-help-with-presence-logic-delay-before-turning-lights-off/150831/9 "2026-02-17T10:05:14Z")

</div>

@Roman_Soos  
Please also see my full tutorial on presence sensors. It also covers how how to do what you want.

> [@\[HOW TO\] Gain full control over Zone Activity using Motion Sensors (PIR), Presence Sensors (Aqara FP300) and Virtual Motion Triggers](https://community.homey.app/t/how-to-gain-full-control-over-zone-activity-using-motion-sensors-pir-presence-sensors-aqara-fp300-and-virtual-motion-triggers/144082/):
>
> UPDATE: Added implementation using AQARA FP300 presence sensor below Introduction This is not a guide on how to implement a specific use case, but rather a framework that will give you full control over zone activity. Many flows like turning on/off lights could be done much simpler. However, when my personal flows became more complex, I ran into a lot of caveats and quirks that caused me to rethink how I work with motion sensors. I came up with this system which allowed me to solve all the bugs …
