I did something like that for one user here that use a 10Meg directly from the main to a PIC input. The PIC internal diode do their job. As now it seems to works. The user is still alive... Just make sure you properly insulate your stuff.....

The 30VAC you get is without load...just your voltmeter.