Patent attributes
Provided is a controller and a luminaire having the controller. The controller is provided in the luminaire, and may include a switch assembly provided on a side where a light outlet of the luminaire is located and configured to receive a selecting signal that is input from the outside, and a control board connected with the switch assembly and configured to generate a corresponding control signal on the basis of the selecting signal, so as to control a plurality of light sources of the luminaire to form at least two types of Correlated Color Temperatures (CCT), brightness and/or colors respectively. By the disclosure, the problem that it is hard for a user to adjust the CCT, the brightness and/or the color of the luminaire in the prior art is solved, and operating convenience of the user is improved.