Good day!
I have the task to build smart light switch. Is there any reference design for powering up the MSP430 board from power line like on the picture below? The key problem is there is no zero power line, just the ligt switch breaking the hot power line going to light bulb. Of course, then light is off, it is very easy to get power by consuming small current thru the bulb. But this controller also should work then light is on.

