The cooking temperature for smoking a ham on a pellet grill is 225 degrees F until it reaches an internal temperature of 140 degrees F.