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