|The as built schematic except one resistor. I put a 470 Ohm resistor in series with the diode to avoid inrush on power up.|
|I ran the sim to see how it would compare to the actual circuit.|
One caution if you try it.
BE CAREFUL ABOUT THE NEUTRAL ON THE POWER LINE.
Use a polarized plug and be sure not to ground the hot line.