An intelligent mains power supply dimmer unit and LED lamp combination with improved power factor. The dimmer applies phase-cutting at a first angle for a first period to a mains voltage supplied to the lamp, whereafter the dimmer removes the phase-cutting. The lamp interprets the first angle as a first power level, which is then stored. The lamp retrieves the level after the first period and regulates its consumption accordingly.