mirror of
https://github.com/mtan93/SmartThingsPublic.git
synced 2026-03-08 05:31:56 +00:00
DVCSMP-2665 Prevent 'Smart Nightlight' from over scheduling
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user