From 31c037e7ab773d47e6fb4480c453606b8388d614 Mon Sep 17 00:00:00 2001 From: rappleg Date: Sat, 25 Feb 2017 11:05:08 -0600 Subject: [PATCH] DVCSMP-2474 Arrival Sensor HA schedule needs jitter to avoid all firing at top of minute --- .../smartthings/arrival-sensor-ha.src/arrival-sensor-ha.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devicetypes/smartthings/arrival-sensor-ha.src/arrival-sensor-ha.groovy b/devicetypes/smartthings/arrival-sensor-ha.src/arrival-sensor-ha.groovy index f13b89b..6b772b3 100644 --- a/devicetypes/smartthings/arrival-sensor-ha.src/arrival-sensor-ha.groovy +++ b/devicetypes/smartthings/arrival-sensor-ha.src/arrival-sensor-ha.groovy @@ -151,7 +151,7 @@ private handlePresenceEvent(present) { private startTimer() { log.debug "Scheduling periodic timer" - schedule("0 * * * * ?", checkPresenceCallback) + runEvery1Minute("checkPresenceCallback") } private stopTimer() {