An electronic ballast (100) for powering at least one gas discharge lamp (30) at two light levels includes a full-wave rectifier circuit (120) and a detector circuit (200). Detector circuit (200) provides an output voltage that is dependent on the states of two on-off switches (S1,S2), but that is substantially unaffected by typical X capacitances that are present between the hot and neutral input connections of the ballast.