Event detected
Fires when PIR sensor has detected heat source or movement (when eventState transitions to 5) or when a Nest Thermostat transitions from away to home state.Assign a function to this event to handle it. For example
<#tag#>.detected=function(tag){ KumoApp.Log(tag.name + " detected movement"); <~phone~>.push(tag.name + " detected movement", ""); };