Arduino UK Mains Light Switch 230v to 5v
Here is a paper from ST Microelectronics about capacitive zener AC voltage droppers. Here's a picture from this document: -



TAKE NOTE - THIS IS NOT ISOLATED FROM THE INCOMING AC POWER MAINS - TAKE EXTREME CARE.