From: Rahmadi Trimananda Date: Sun, 11 Aug 2019 15:51:47 +0000 (-0700) Subject: Update greetings-earthling.groovy X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=68fe7d9f5805389af964890379551963230105da;p=smartapps.git Update greetings-earthling.groovy --- diff --git a/official/greetings-earthling.groovy b/official/greetings-earthling.groovy index e97c684..dec848b 100755 --- a/official/greetings-earthling.groovy +++ b/official/greetings-earthling.groovy @@ -71,7 +71,9 @@ def presence(evt) def person = getPerson(evt) def recentNotPresent = person.statesSince("presence", t0).find{it.value == "not present"} if (recentNotPresent) { - log.debug "skipping notification of arrival of Person because last departure was only ${now() - recentNotPresent.date.time} msec ago" + //log.debug "skipping notification of arrival of Person because last departure was only ${now() - recentNotPresent.date.time} msec ago" + // Commenting this out since there could be a null value error + log.debug "skipping notification of arrival of Person" } else { def message = "${person.displayName} arrived at home, changing mode to '${newMode}'"