I'm glad you have a low voltage (safe) solution.

Then running an LED from 240V AC a small capacitor is normally used in place of the current limiting resistor and a diode connected in parallel with the LED with opposite polarity to the LED.

The capacitor MUST be rated for continual mains (AC) operation. I don't recommend you try this without experience in mains wiring which is why I'm not mentioning any capacitance values.

Rod