The invention provides a color temperature chip for detecting an LED wall switch. The chip comprises a power supply management module, a chip logic control module, a filter and power failure detection module and a drive module. The chip is provided with (N+4) groups of pins, and comprises a VDD pin, a CAP pin, a GND pin, a CS pin, and N drive output pins D1, D2, D3, ..., Dn. The VDD pin is connected with the CAP pin through a PMOS tube back-to-back structure inside the chip. N output ends of the drive module are connected with N drive output pins D1, D2, D3, ..., Dn of the chip. According to the invention, a resistor, a diode and a capacitor component outside the chip are reduced on the original application system, which saves the application cost of the system; the chip can be used for a variety of isolated or non-isolated different applications, which breaks the application limitation of the original scheme; groups of selectable ports are arranged on the drive output end of the chip; a variety of different drive tubes are packaged in the chip, and different voltage withstand values can meet the needs of a variety of different applications; and the chip can be in drive connection with N LED light strings (N is greater than 2) to realize multi-channel drive control.