//def elapsed = now() - motionState.rawDateCreated.time
//def threshold = 1000 * 60 * minutes1 - 1000
if (/*elapsed >= threshold*/true) {
//def elapsed = now() - motionState.rawDateCreated.time
//def threshold = 1000 * 60 * minutes1 - 1000
if (/*elapsed >= threshold*/true) {