Automatic lighting lamp and control method thereof

The invention discloses an automatic lighting lamp belonging to the technical field of lighting and comprises a lamp and a power supply. The automatic lighting lamp also comprises a microprocessor, an electronic switch and an ambient brightness detection module, the electronic switch is serially connected to a power supply loop formed by the lamp and the power supply, the control end of the electronic switch is connected with the microprocessor through signals, and the signal output end of the ambient brightness detection module is connected with the microprocessor through signals. Further, the electronic switch is a power switch tube. The invention also discloses a control method of the automatic lighting lamp. The automatic lighting lamp is automatically closed and opened according to outside actual luminance, can be used for regulating the lighting luminance of the lamp automatically without manual control, and can reduce the energy consumption under the premise of ensuring the lighting.