How to design an AC current detection switch?
You can use the Hall sensor. The AC signal you convert to a DC signal with a diode and a capacitance. 

A problem with the Hall sensor can be that they have a offset drift.