1 Introduction The role of smart home lighting control is not only to create a good light environment, but also to save energy. Therefore, a good lighting control system should be able to make full use of the natural light outside and dynamically control the luminaires to achieve the best results with minimal energy consumption. Most of the existing smart home lighting control systems only use preset multiple modes to utilize the user's switching between different modes to meet different needs of users. Once the illumination of the surrounding environment changes, such systems can not be adaptively adjusted, and the preset illumination will still be maintained. In fact, these lighting control systems cannot be called the true smart home lighting control system. The organism is attacked by various antigens all the time. The biological immune system can recognize itself and the alien antigen, and exclude the antigenic foreign body through the immune response, maintaining the physiological balance of the body [1]. The artificial immune system is a means and method for solving various engineering problems developed by using and utilizing the information processing mechanism of the biological immune system [2]. If the ever-changing natural light and user demand are compared to antigen, the real-time illumination of the relevant lamps that meet the user's needs is compared to antibodies. The structure and function of the smart home lighting control system are highly similar to the biological immune system. The system designed in this paper is a new type of smart home lighting control system. Simulate the biological immune system, use the knowledge of the artificial immune system, continuously match the antibody and antigen, and dynamically control the luminaire to achieve the purpose of adaptively satisfying the user's needs in the changing natural light environment. This paper adopts ZigBee wireless communication technology to form a network, which realizes the communication between each lamp, remote controller and controller. It can control the lamps intelligently according to the different needs of users, make full use of natural light, and achieve the most with minimum energy consumption. Good results. 2 overall system design In the smart home lighting control system, the ZigBee wireless networking method with low cost, low power consumption and large network capacity [3] is selected. The control system consists of an immune controller, a lighting control terminal and a remote control. It follows a unified network protocol. With various "pre-set" and "online setting" control modes, the user can accurately control the brightness of different scenes at different times. Set up and manage reasonably, make full use of the natural light outside, extend the life of the lamps and save energy consumption. The intelligent home lighting control system not only realizes simple operation and convenient maintenance, but also meets the diversity requirements of work and life. The overall structure of the system is shown in Figure 1. The immune controller is both a network coordinator in the entire network and a central processing unit of the artificial immune system. It is responsible for tasks such as maintaining the system network, handling events, and storing data. The node includes ZigBee RF transceiver modules, illuminance sensors, and embedded control systems. Each luminaire control terminal is connected to the corresponding luminaire. Its main function is to receive the commands issued by the immune controller, control the work of the luminaire, and adjust the brightness of the light. The node is mainly composed of a control circuit and a ZigBee RF transceiver module. The remote control can realize mobile control and is mainly composed of ZigBee RF transceiver module and embedded control system. The ZigBee wireless network is constructed in a star topology, the immune controller acts as a network coordinator, and each luminaire control terminal and remote controller acts as a terminal device. By controlling the remote control, the user can issue commands such as switching and dimming the lamps, and can edit the scene according to his own needs and the natural illumination at that time, and can select his own preset scene at any time. The immune controller receives the command from the remote controller and uses the artificial immune system to select the scene that best meets the user's requirements based on the current natural light level. Each luminaire control terminal receives the control information sent by the immune controller through the ZigBee network, and controls the luminaire to perform corresponding operations through the control circuit. 3 immune controller structure and function The structure of the immune controller is shown in Figure 2. It consists mainly of three parts: a central processing unit, an immune response zone, and bone marrow. The central processing unit acts as an interface for exchanging information with other parts of the system, and is mainly responsible for receiving information transmitted from the remote controller and the illuminance sensor and generating antigen using the information, and also translating the output antibody of the immune reaction area into instructions for transmission to the respective lamp control terminals. The bone marrow is responsible for the production of B cells and conforms to the requirements of the immune response zone, ie the bone marrow only delivers mature B cells to the immune response zone. The immunoreactive region is a site where the antigen and the antibody match, and the optimal antibody is determined to be delivered to the central processing unit by operations such as selection based on affinity.