A method for regulating a DC power supply, said DC power supply being adaptable for use with a motion sensor switch and having a power supply input terminal adapted to receive a source AC voltage, at least one power supply output terminal adapted to output at least one DC output voltage, first and second elements coupled between said input and output terminals, and a ground terminal, said DC power supply generating in response to said source AC voltage a leakage current flowing to said ground terminal, said method comprising;
- limiting said leakage current to a predetermined magnitude, as governed by a value of said first element in relation to a value of said second element, and maintaining said predetermined magnitude of said leakage current substantially constant in response to variations in said source AC voltage within an AC voltage range;
- generating a DC voltage based on said source AC voltage;
- and
- maintaining a magnitude of said DC voltage substantially constant in response to a variation in said source AC voltage within said AC voltage range.