Reviving dead smart bulbs with ESP8266, ESP32 and ESPHome
Dead smart bulbs may be recoverable by reflashing a working Wi-Fi chip or replacing it with an ESP32-C3, then connecting the bulb to Home Assistant through ESPHome.
A failed smart bulb is not necessarily unusable: if its LED driver and power supply still work, the original Wi-Fi board may be reflashed or replaced. Bulbs made unusable by a discontinued manufacturer app can also be moved to a local setup.
The first step is identifying the chip inside the bulb. Common possibilities include Espressif’s ESP8266EX, ESP32 and ESP-WROOM-02 modules, as well as Beken BK7231. The chip determines whether reflashing is possible and which repair method to use.
For a working ESP8266EX, the required connections typically include TX, RX, GND, 3.3V and GPIO0. The stock firmware should be backed up with esptool before installing firmware such as ESPHome. An ESP32-C3, which is recommended at about $6, can replace a dead board in compatible bulbs.
ESPHome can expose the bulb to Home Assistant and support local control without the manufacturer’s cloud app. Repair work involves soldering and must be performed with the bulb removed from its socket, capacitors discharged and mains power disconnected; a USB adapter or development board must never be connected while the bulb is on mains power.