Energy saving controls for lighting