From c051d719cca7c7d64512fd2149d62332232fa486 Mon Sep 17 00:00:00 2001 From: twack Date: Wed, 7 Sep 2016 09:14:19 -0700 Subject: [PATCH 1/2] 20160907_update_its_to_hot_for_security --- smartapps/smartthings/its-too-hot.src/its-too-hot.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/smartapps/smartthings/its-too-hot.src/its-too-hot.groovy b/smartapps/smartthings/its-too-hot.src/its-too-hot.groovy index 5b8e10d..3ac1ab0 100644 --- a/smartapps/smartthings/its-too-hot.src/its-too-hot.groovy +++ b/smartapps/smartthings/its-too-hot.src/its-too-hot.groovy @@ -69,10 +69,10 @@ def temperatureHandler(evt) { def alreadySentSms = recentEvents.count { it.doubleValue >= tooHot } > 1 if (alreadySentSms) { - log.debug "SMS already sent to $phone1 within the last $deltaMinutes minutes" + log.debug "SMS already sent to within the last $delta Minutes minutes" // TODO: Send "Temperature back to normal" SMS, turn switch off } else { - log.debug "Temperature rose above $tooHot: sending SMS to $phone1 and activating $mySwitch" + log.debug "Temperature rose above $tooHot: sending SMS and activating $mySwitch" def tempScale = location.temperatureScale ?: "F" send("${temperatureSensor1.displayName} is too hot, reporting a temperature of ${evt.value}${evt.unit?:tempScale}") switch1?.on() From dedb0f8465cbe97dc1fecb279a1a64ecf2b6fe3f Mon Sep 17 00:00:00 2001 From: twack Date: Wed, 7 Sep 2016 09:20:13 -0700 Subject: [PATCH 2/2] Update its-too-hot.groovy --- smartapps/smartthings/its-too-hot.src/its-too-hot.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smartapps/smartthings/its-too-hot.src/its-too-hot.groovy b/smartapps/smartthings/its-too-hot.src/its-too-hot.groovy index 3ac1ab0..6ffcebf 100644 --- a/smartapps/smartthings/its-too-hot.src/its-too-hot.groovy +++ b/smartapps/smartthings/its-too-hot.src/its-too-hot.groovy @@ -69,7 +69,7 @@ def temperatureHandler(evt) { def alreadySentSms = recentEvents.count { it.doubleValue >= tooHot } > 1 if (alreadySentSms) { - log.debug "SMS already sent to within the last $delta Minutes minutes" + log.debug "SMS already sent within the last $deltaMinutes minutes" // TODO: Send "Temperature back to normal" SMS, turn switch off } else { log.debug "Temperature rose above $tooHot: sending SMS and activating $mySwitch"