Returns the date of the last change of state or update of value for the Unit.
last timestamp of (name of unit)
set MyDate to last timestamp of "Kitchen Motion" write log "last kitchen motion was on " & (MyDate as text)