See if this works…
val KitchenLM = new DateTime(KitchenMotionSensorLastMotion.state.toString) if( KitchenLM.isAfter(now.minusMinutes(5)) ) {