Two men wearing ski-masks smashed in the front door of a home on Town Hall Street at around 2.50am on Sunday.
One of the men brandishing a knife starting threatening the homeowner.
Det Insp Andy Leonard, of Kirklees CID, said: “After making the threats the men then realised they got the wrong house.”
The 45-year-old homeowner was left shaken but uninjured.
And police are now appealing for witnesses.
The first suspect is slim and around 5ft 11ins. The second suspect is also slim and around 5ft 8ins.
Anyone with any information should contact Kirklees CID on 101 or Crimestoppers on 0800 555111.