Idrees Ismail, 32, who was caught red-handed admitted he was so “off his face” he could not even remember how he got into his victim’s house.
Idrees Ismail was standing in the living room looking for things to steal in the early hours when the victim, who had just woken up, came in and shouted: “Thief.”
Cardiff Crown Court heard the incident happened in Arabella Street in Roath at 4.50am on June 25. Tony Trigg, prosecuting, said the householder Abdul Rahman heard a noise when he got up to use the bathroom as his wife slept.
He told the court: “Mr Rahman went downstairs to investigate and he was confronted by the defendant.”
Prosecutors said Ismail got in through an open window and was looking for things to steal. The victim shut him inside the living room and called the police but the defendant climbed back out of the window.
A police officer who was in the area went to the house immediately and saw the defendant acting suspiciously by being “nervous and fidgety” in Pen-y-Wain Place.
Ismail was arrested and told officers he was addicted to drugs and needed money. He accepted he had been walking around the area looking for things to steal.
Prosecutors said he had been before the courts for 31 previous offences including assault, burglary, robbery, theft, and supplying cannabis.
The 32-year-old, who does not have a permanent address, admitted burglary and possessing cannabis.
Nadeem Majid, defending, suggested his client showed remorse by making full admissions and pleading guilty at the first opportunity.
He told the court Ismail was addicted to Class A and Class B drugs and was, in his own words, so “off his face” he did not know how he got into the victim’s home.
Mr Majid said there had been an escalation in the defendant’s drug use since he started having relationship problems.
Judge Eleri Rees jailed him for 12 months. He must serve half of that in prison before he can be released on licence.