Help with smartthings motion sensor trigger

The easy answer is to use a CoRE piston, basically creating a rule that states:

If KitchenLight is off {
If MotionSensor is active {
with KitchenLight {
turn on
}
If MotionSensor is inactive for 2 minutes{
with KitchenLight {
turn off
}
}
}
}

Pardon for the lack of translation to CoRE, I am new at CoRE, not to programming.

Or you could learn to write your own app. (What I did before discovering CoRE)

1 Like