A man was robbed and pistol whipped in his home by a group of men who tricked him into opening his door, police said.