DVCSMP-2665 Prevent 'Smart Nightlight' from over scheduling

This commit is contained in:
Aaron Miller
2017-05-19 14:09:08 -05:00
parent 01c2968f91
commit e7713caec9

View File

@@ -98,7 +98,7 @@ def motionHandler(evt) {
else {
state.motionStopTime = now()
if(delayMinutes) {
runIn(delayMinutes*60, turnOffMotionAfterDelay, [overwrite: false])
runIn(delayMinutes*60, turnOffMotionAfterDelay, [overwrite: true])
} else {
turnOffMotionAfterDelay()
}