A driver for supplying power to drive at least one LED light source , the driver comprising: a rectifier having an input and an output, wherein the rectifier is configured to receive an AC supply voltage at its input and configured to produce a rectified voltage, and wherein the rectifier output is connected to the at least one light source; and a capacitor having a first end connected to the rectifier output and a second end connected to a parallel combination of: a first branch arranged to provide a charging current path for the capacitor and arranged to block a discharging current of the capacitor from flowing through the first branch; and a switching device arranged to provide a controlled discharging current path for the capacitor , wherein the switching device has a first impedance when the switching device is open, and has a second impedance less than the first impedance when the switching device is closed; and wherein the switching device is open when the rectified voltage is greater than a threshold voltage (Vswitch-in), and wherein the switching device is closed when the rectified voltage is less than the threshold voltage (Vswitch-in); wherein the at least one light source is driven by the rectifier output during a first portion (T1) of a period (TM) of the AC supply voltage, wherein the at least one light source is driven by the capacitor during a second portion (T2) of the period of the AC supply voltage when the switching device is closed, wherein the first and second portions of the period of the AC supply voltage have approximately the same duration. a rectifier having an input and an output, wherein the rectifier is configured to receive an AC supply voltage at its input and configured to produce a rectified voltage, and wherein the rectifier output is connected to the at least one light source; and a capacitor having a first end connected to the rectifier output and a second end connected to a parallel combination of: a first branch arranged to provide a charging current path for the capacitor and arranged to block a discharging current of the capacitor from flowing through the first branch; and a switching device arranged to provide a controlled discharging current path for the capacitor , wherein the switching device has a first impedance when the switching device is open, and has a second impedance less than the first impedance when the switching device is closed; and a first branch arranged to provide a charging current path for the capacitor and arranged to block a discharging current of the capacitor from flowing through the first branch; and a switching device arranged to provide a controlled discharging current path for the capacitor , wherein the switching device has a first impedance when the switching device is open, and has a second impedance less than the first impedance when the switching device is closed; and wherein the switching device is open when the rectified voltage is greater than a threshold voltage (Vswitch-in), and wherein the switching device is closed when the rectified voltage is less than the threshold voltage (Vswitch-in); wherein the at least one light source is driven by the rectifier output during a first portion (T1) of a period (TM) of the AC supply voltage, wherein the at least one light source is driven by the capacitor during a second portion (T2) of the period of the AC supply voltage when the switching device is closed, wherein the first and second portions of the period of the AC supply voltage have approximately the same duration. <EOS>