A drug addict dressed up as a police officer before storming an associate's home screaming "This is a police raid" and "Where are your drugs?"

Thinking he was the real deal, Daniel Thomas' two victims handed over their ice and cannabis stash before being beaten so badly with a hammer that the real police thought they had died.

A view through the front door at the house in Lilydale after the home invasion. Credit:Luis Ascui

"This is a police raid. Get on the floor face down. Where are your drugs?" Thomas and a co-accused yelled as they walked into the unlocked Lilydale home on July 25, 2016.

Thomas, 36, believed the men were holding back and beat one of them with a hammer until he passed out.