The Lindby Velua ceiling lamp comes with a small 8-button 2.4 GHz remote and nothing else: no app, no hub, no Zigbee. A maker who posts as HenrikBiscuit wanted it in Home Assistant, so he cloned the remote with an ESP32-S3 and a TI CC2500 radio module. He did it without an SDR, because a cheap RTL-SDR does not reach 2.4 GHz, and the write-up is a useful lesson in reverse engineering a cheap RF protocol.
Finding the signal with an nRF24
The remote's PCB has one unmarked 16-pin chip, a 16 MHz crystal and a PCB antenna. Using an nRF24L01+ in promiscuous mode, he found 2-FSK at 250 kbps hopping across 2402, 2448 and 2479 MHz, with every packet carrying the bytes B9 A1 99. Setting that as the nRF24's receive address gave clean 17-byte frames. What looked like a rolling code turned out to be a simple 8-state counter, and the lamp does not even check it: sending the same counter three times toggled the lamp three times.
The bug: a missing preamble
His CC2500 transmissions matched the remote bit for bit, yet the lamp answered only about one press in three. More power made it worse, which led to a real register bug, MCSM1 set to stay in transmit mode, but fixing that did not fix the misses. The answer came from setting the CC2500 to receive with no sync word at all and searching the raw bits on the ESP32. In 4 seconds it caught 189 packets, all starting with a 0xAA preamble that his own packets lacked. Receivers use that pattern to lock gain and bit timing. With the preamble added and the remote's timing copied, one packet every 1245 microseconds and three per channel, every press worked.
The final hardware is just an ESP32, a CC2500 module with a CC2591 amplifier, a pigtail and a 2.4 GHz antenna, running ESPHome so all 8 buttons, taps and holds, appear in Home Assistant.
Our take: a bit-perfect payload is not the same as a working packet. Preamble, sync word and timing matter as much as the data. For another way to put a button into Home Assistant, see this ESP32-H2 Zigbee remote that runs about 4 months a charge.
Image credit: HenrikBiscuit, project GitHub repository, photos combined, cropped and resized.
About the author: Aswinth Raj is an electronics engineer and the editor of CircuitDigest, where he has published more than 150 hands-on projects and tutorials across Arduino, PIC, ESP32, Raspberry Pi and EV battery systems. He selects the stories on this page for what engineers and makers can actually learn or build from. Connect on LinkedIn
Add a comment
No account needed. Your comment appears once a moderator has reviewed it.