Detect presence of 230v - not measure

I had just found these, which are the X2 type.

I've always thought it would be interesting to do some testing on that circuit, simulate a shorted capacitor, etc. :smiley: