mirror of
https://github.com/mtan93/SmartThingsPublic.git
synced 2026-05-11 22:07:07 +01:00
[DVCSMP-2595] Set scheduled executions for Lights off with no motion SA to overwrite
This commit is contained in:
+2
-2
@@ -41,14 +41,14 @@ def updated() {
|
||||
def motionHandler(evt) {
|
||||
log.debug "handler $evt.name: $evt.value"
|
||||
if (evt.value == "inactive") {
|
||||
runIn(delayMins * 60, scheduleCheck, [overwrite: false])
|
||||
runIn(delayMins * 60, scheduleCheck, [overwrite: true])
|
||||
}
|
||||
}
|
||||
|
||||
def presenceHandler(evt) {
|
||||
log.debug "handler $evt.name: $evt.value"
|
||||
if (evt.value == "not present") {
|
||||
runIn(delayMins * 60, scheduleCheck, [overwrite: false])
|
||||
runIn(delayMins * 60, scheduleCheck, [overwrite: true])
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user