# SmartThings Motion Sensor and Flow

**URL:** <https://discourse.nodered.org/t/smartthings-motion-sensor-and-flow/23692>\
**Category:** General\
**Created:** [26 March 2020 19:06 UTC](https://discourse.nodered.org/t/smartthings-motion-sensor-and-flow/23692 "2020-03-26T19:06:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sidneyki](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sidneyki/32/18904_2.png) [@sidneyki](https://discourse.nodered.org/u/sidneyki)\
**Post date:** [26 March 2020 19:06 UTC](https://discourse.nodered.org/t/smartthings-motion-sensor-and-flow/23692/1 "2020-03-26T19:06:02Z")

</div>

Hello,  
I am stuck on creating a flow for a Smart Things motion sensor. I am able to get a kitchen light to come on when there is motion. The issue is that when standing still the light turns off a short time later.  
I like for the flow to check if there is no motion and wait for five minutes. if in that time there is a motion to start the time over until there is no motion at all. That away the lights stay on while I'm in the kitchen and not turn off when I need them.

The flow I have now the light will not come back on after 5 minutes then the flow works again.  
event state "kitchen motion", Switch "Detect Motion" on or off. on output goes to BigTimer time range 17:00 on to 09:00 off, Call service "On Kitchen Light", debug.

From the switch to off goes to delay 5 min, call service "Off Kitchen Light", debug

I think the off to delay is what is causing the kitchen light not to come back on until 5 minutes. it will then restart the flow and turn back on the light because it sees motion. this is not good flow setup.

Thanks for the help

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [26 March 2020 19:14 UTC](https://discourse.nodered.org/t/smartthings-motion-sensor-and-flow/23692/2 "2020-03-26T19:14:50Z")

</div>

Look at the trigger node. With extend turned on

---

<div class="post-metadata">

**Author:** ![sidneyki](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sidneyki/32/18904_2.png) [@sidneyki](https://discourse.nodered.org/u/sidneyki)\
**Post date:** [27 March 2020 11:56 UTC](https://discourse.nodered.org/t/smartthings-motion-sensor-and-flow/23692/3 "2020-03-27T11:56:41Z")

</div>

Hello,  
I am not familiar with how to configure the trigger. There is a trigger:state and trigger 250ms node. Do you know which one to pick or how to configure them?

Thank You

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [27 March 2020 13:27 UTC](https://discourse.nodered.org/t/smartthings-motion-sensor-and-flow/23692/4 "2020-03-27T13:27:57Z")

</div>

Start by reading Info tab for the node by clicking the `i` tab in the right hand pane.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [26 May 2020 13:28 UTC](https://discourse.nodered.org/t/smartthings-motion-sensor-and-flow/23692/5 "2020-05-26T13:28:00Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
