Getting 5V D/C from single live wire A/C light switch

the way he planned

Although "planned" might be too kind a word: "expected" maybe? Or even "hoped"....