ESPHome firmware for the Xiaomi Mijia Bedside Lamp 2
Custom ESPHome components that give the Xiaomi/Yeelight Bedside Lamp 2 full local Home Assistant control with no Mijia cloud.

Key Facts
- Hardware: Xiaomi Mijia Bedside Lamp 2 (Yeelight)
- Firmware: ESPHome custom components
- Integration: Home Assistant, fully local
- Flashing: open the lamp, serial adapter on the board
About This Project
The Mijia Bedside Lamp 2 is an RGBWW Wi-Fi lamp made by Yeelight for Xiaomi, with a touch panel for power, color and a brightness slider. This project replaces its stock firmware with ESPHome custom components, so every part of the lamp shows up in Home Assistant: the light itself, the touch buttons, the slider and the front-panel LEDs. The lamp stops phoning home to the Mijia cloud, no longer depends on the LAN control option Xiaomi removed, gains a multi-color night light and smooth color transitions. Because the parts are exposed as ESPHome components you can rewire the behavior, for example using the slider as a volume control. Flashing means opening the lamp and connecting a USB-to-serial adapter to the board, which the repo documents step by step with photos.
Source & Attribution

Available as a complete kit
Yeelight-made RGBWW Wi-Fi bedside lamp with touch controls
Related Projects





