From 11c7fb59b4c1cf74bb129d62381fb343d4557ad6 Mon Sep 17 00:00:00 2001 From: Seyed Amir Hossein Aqajari Date: Tue, 6 Aug 2019 12:40:42 -0700 Subject: [PATCH 1/1] Update good-night.groovy --- official/good-night.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/official/good-night.groovy b/official/good-night.groovy index 3561eab..5d8d1da 100755 --- a/official/good-night.groovy +++ b/official/good-night.groovy @@ -163,7 +163,7 @@ private allQuiet() { false } else { def sensor = states.first() - def elapsed = now() - sensor.rawDateCreated.time + def elapsed = now() - 0//sensor.rawDateCreated.time if (elapsed >= threshold) { log.debug "No active states, and enough time has passed" true -- 2.34.1