Your Yeelight bulbs
already speak LAN
This is the part most owners never find out: Yeelight published the protocol themselves. The bulb listens on your own network and takes plain JSON commands. ⇒ No account, no cloud, and no app deciding whether today is a good day to connect.
How the bulb actually listensStraight from Yeelight's own specification
Each command is one line of JSON with three fields, ending in a carriage return and a line feed.
{"id":1,"method":"set_power","params":["on","smooth",500]}
The methods you will actually use: set_power on or off · toggle · set_bright 1 to 100 · set_rgb as a single integer 0 to 16777215 · set_ct_abx for white from 1700 K to 6500 K. Each one also takes an effect, sudden or smooth, and a duration in milliseconds. ⇒ That is why a Yeelight can fade rather than snap, and why a button here can do the same.
Pointing READYWARE at itOne device entry, every button
Turn on LAN Control
In the Yeelight app, open the bulb and enable LAN Control. The bulb will not listen until you do, and this is the step people miss.
Give the bulb a fixed address
A reservation in your router. A bulb that moves address is a button that stops working on a Tuesday.
Add a Generic TCP device
Settings → Device Settings → Device Setup → Generic TCP. Host is the bulb's address, port is 55443, and set the line ending to CRLF, which is what the specification requires.
Put the JSON on the buttons
🔑 The command lives on the button, not on the device entry. ⇒ One entry serves an entire remote: on, off, warm, cool, bright, dim, a color per button.
ⓘ If a button does nothing, it is almost always one of three things, in this order: LAN Control is still off in the Yeelight app, the line ending is not CRLF, or the bulb has picked up a different address since you set it up. ⇒ Check those three and it comes straight up.
Which Yeelights this is aboutThe protocol describes families, not part numbers
Yeelight's own specification groups its lights into a handful of families, and a bulb advertises the methods it supports.
mono, the plain white bulbs · color, the RGB ones including the W3 and W4 multicolor · stripe, the light strips · ceiling, the ceiling fixtures, which also have a night light mode the others do not · bslamp, the bedside lamps.
⇒ A color bulb takes more methods than a white one, which is the whole reason the specification has a support list. If a command does nothing, that family probably does not carry it.
Or go further and reflash itNot our project, and worth knowing about
Several Yeelight bulbs have an ESP32 inside, which means the firmware can be replaced entirely.
People do this to get rid of the vendor firmware altogether and run ESPHome on the bulb. One recent example is Moonlight for the Yeelight W4L, which recovers the factory color calibration out of the stock flash rather than mixing PWM generically, and runs circadian lighting on the bulb itself. ⓘ Not ours, MIT licensed, and the author documented two real traps: the APP CPU is disabled in eFuse so it is single core, and the factory MAC CRC is invalid, which boot loops newer ESP‑IDF unless you bypass the check.
🔴 That is line-voltage hardware and a soldering-adjacent job. Treat the driver board as live, flash only from 3.3 V on the bench with the bulb unplugged, and accept that you own whatever happens next. ⇒ Once it runs ESPHome, READYWARE drives it over HTTP instead, and the Generic TCP route above no longer applies.
The bulbs are not the pointThey are one row on a screen that runs everything
A bulb-specific app gives you bulbs. That is the ceiling of it.
Here the Yeelights sit beside Hue, LIFX, WiZ, Govee, Kasa and Tapo, the television, the receiver, the fan and the blinds. ⇒ One press can dim the Yeelights, drop the blinds and start the movie, which no lighting app will ever do for you.
And it runs on a phone, a tablet on the wall, or the television itself, driven by the handset already in your hand.
Common questionsThe ones that come in by email
Usually because it is going out to a server and back to reach a bulb that is ten feet away. A LAN command does not make that trip.
Once, to turn on LAN Control. After that it can sit there unopened.
Yes. That is the point of a command that never leaves your network.
Not a named one. You use Generic TCP, which exists precisely so a documented protocol like this one does not need us to ship a special case first.
The bulb was always listening.
Turn on LAN Control and point something sensible at it.
▶ Open the Web Viewer demo 🔌 How Generic TCP works 📖 How To Use 📧 Ask a question