# Aqara Sensor - turn off lights if no motion for x seconds

**URL:** <https://community.homey.app/t/aqara-sensor-turn-off-lights-if-no-motion-for-x-seconds/26176>\
**Category:** Questions & Help\
**Created:** [February 20, 2020, 9:54pm UTC](https://community.homey.app/t/aqara-sensor-turn-off-lights-if-no-motion-for-x-seconds/26176 "2020-02-20T21:54:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tembelreis](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tembelreis/32/3945_2.png) [@tembelreis](https://community.homey.app/u/tembelreis)\
**Post date:** [February 20, 2020, 9:54pm UTC](https://community.homey.app/t/aqara-sensor-turn-off-lights-if-no-motion-for-x-seconds/26176/1 "2020-02-20T21:54:26Z")

</div>

Hi there,

I have the timer app and have been trying to set up a simple flow:

If there is motion a d lux less than 9 turn on light  
Start timer for 180 seconds and if no motion for a full 180 second turn off the light.

Please can you suggest a solution?

Thanks

Gunay
