Returns the number of seconds since the unit was last changed state or value.
time delta of (name of Unit)
write log "it has been " & (time delta of "Kitchen Motion") & " seconds since motion in the kitchen"