When the lamp is on, use the wall switch to turn OFF and ON continuously for more than 8 times (each time the lamp is ON for no more than 2 seconds), and the lamp flashes for 3 times, indicating that the factory reset is successful and the the device is restored to unprovision mode.