| Brand | Yeelight |
| Manufacturer | — |
| Model Number | YLAI002 |
| Also Known As | — |
| ASIN | — |
| Price | — |
| Official Site | — |
| Dimensions | — |
| Weight | — |
| Color / Material | — / — |
| Cloud Control | — |
| Local Control | Yes |
| Hardware Requirements | — |
| Requirement Notes | — |
| Release / Discontinued | — / Active |
| Connectivity | |
| Power Types | — |
| USB Type | — |
| Battery | — |
| Sensors | — |
| Voice Assistants | — |
| Compatible Apps | — |
| Compatible Services | |
| Source | blakadder_templates |
Description
Pry open the lid in the middle and lift the ESP32 module PCB with pliers from the mains PCB.
<iframe width="560" height="315" src="https://www.youtube.com/embed/aeNiFpzwE1A" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
## Serial Flashing
All pins necessary for flashing are labelled on the module PCB.

## Pins
| GPIO | Function | Label
| --- | --- |
| GPIO12 | Button_i | Button (not working)
| GPIO14 | Relay2 | L2
| GPIO17 | Ledi 1 | Blue LED (connection status)
| GPIO18 | Ledi 2 | Red LED (relay 1 and 2 status)
| GPIO27 | Relay1 | L1
| GPIO19 | Switch2 | S2
| GPIO21 | Switch1 | S1
| GPIO33 | Switch3 | K2
| GPIO32 | Switch4 | K1 (not triggering)
K1 is not triggering on switch toggles. If you want to show relay status on its respective LED, set any unused GPIO as LedLink.
Unlike the origin
Additional Attributes
| Device Type | Switch Module |
|---|
| Electrical Standard | global |
|---|