Ac mains current detector

A relay is the easiest way to do this.