A lighting apparatus, comprising: a connector; a light housing connecting to the connector; a light source assembly configured within the light housing , wherein the light source assembly comprises a driving board and a light source board , the driving board electrically connects to the light source board , and a switch is configured on the driving board ; and a ring-shaped element movably fixed on an outer surface of the light housing , wherein the ring-shaped element interferes with the switch; wherein a first end of the light housing has a rim forming an opening, a second end of the light housing is fixed within the connector; a first protrusion ring and a latch are formed on an inner side of the ring-shaped element, the first protrusion ring and the latch are configured in sequence along an axial direction of the opening away from the connector, the second end of the light housing has a second protrusion ring movably fixed between the first protrusion ring and the latch , and a first ring-shaped slot is formed between the first protrusion ring and the second protrusion ring ; and two fixing blocks are formed on the inner side of the ring-shaped element, the fixing blocks protrudes toward the driving board , and the switch is located between the two fixing blocks; characterized in that the ring-shaped element is slidable along the axial direction of the opening, the fixing blocks are configured to push the switch to different positions to selectively control the driving board to output different control signals in response to a distance between the ring-shaped element and the connector. a connector; a light housing connecting to the connector; a light source assembly configured within the light housing , wherein the light source assembly comprises a driving board and a light source board , the driving board electrically connects to the light source board , and a switch is configured on the driving board ; and a ring-shaped element movably fixed on an outer surface of the light housing , wherein the ring-shaped element interferes with the switch; wherein a first end of the light housing has a rim forming an opening, a second end of the light housing is fixed within the connector; a first protrusion ring and a latch are formed on an inner side of the ring-shaped element, the first protrusion ring and the latch are configured in sequence along an axial direction of the opening away from the connector, the second end of the light housing has a second protrusion ring movably fixed between the first protrusion ring and the latch , and a first ring-shaped slot is formed between the first protrusion ring and the second protrusion ring ; and two fixing blocks are formed on the inner side of the ring-shaped element, the fixing blocks protrudes toward the driving board , and the switch is located between the two fixing blocks; characterized in that the ring-shaped element is slidable along the axial direction of the opening, the fixing blocks are configured to push the switch to different positions to selectively control the driving board to output different control signals in response to a distance between the ring-shaped element and the connector. <EOS>