Dimmer switch for led downlights