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}'"