# Flow to turn on and off lights by room occupancy

**URL:** <https://community.homey.app/t/flow-to-turn-on-and-off-lights-by-room-occupancy/155719>\
**Category:** Flows\
**Tags:** flow, advancedflow\
**Created:** [June 3, 2026, 6:47pm UTC](https://community.homey.app/t/flow-to-turn-on-and-off-lights-by-room-occupancy/155719 "2026-06-03T18:47:30Z")\
**Posts on this page:** 1\
**Showing post:** 17

<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:** [June 8, 2026, 11:31am UTC](https://community.homey.app/t/flow-to-turn-on-and-off-lights-by-room-occupancy/155719/17 "2026-06-08T11:31:40Z")

</div>

@Darren_Barton  
I have written an extensive tutorial about how to implement presence detection and use it to control lights. You can read it down below.  
However, for this specific use case I don’t think you’ll need that complex setup, nor any third party app. The Aqara apps allow you to just configure the reset time in the advanced settings of the presence sensor. Just increase the presence sensor reset time to 10 minutes (600 seconds) and you’re done.

 ![Screenshot 2026-06-08 at 13.30.27](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/c/4c3c58ebf2e58d425faad3bc294335d6518367fc.png)

here’s the link to my tutorial, in case you want to build more complex automation in the future:

> [@\[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 …

---

_[View the full topic](https://community.homey.app/t/flow-to-turn-on-and-off-lights-by-room-occupancy/155719)._
