Police found a man found sleeping in a Subaru that he did not own, then discovered the he had also entered two properties carrying a knife.
Karl Harry Ranginui was sentenced to 40 hours of community work and six months' supervision over the incident by Judge Dugald Matheson in Whanganui District Court this week.
Defence lawyer Richard Leith said Ranginui fell asleep in the stolen car due to a medical condition.
"He has a sleeping condition that causes him to become very tired, very quickly," Leith said.
"There was nothing taken and there was no damage caused."