What was done
Lucho asked Claude how the app-only RGB bulbs worked. Together they found a Tuya beacon protocol, worked out its sequence number and checksum from iPhone captures, and controlled the bulb from a Mac script.
Lucho had cheap RGB bulbs that could only be controlled from the vendor app. Lucho opened Claude and asked to understand how they worked, and the two ended up reverse engineering the bulb's Bluetooth protocol until Lucho's Mac could control it directly, with no app and no phone.
How it was done
They found that the bulb used a Tuya beacon protocol. They captured the packets the iPhone sent, worked out how the sequence number behaved and found how the checksum was calculated. Claude then wrote a small Python script that builds and sends the beacon packets from the Mac. A screenshot from the session shows Claude confirming the Mac controls the bulb, then sending the nine remaining unidentified commands in order, a few seconds apart, so Lucho could see what each one does.
Results
The bulb responds to packets sent from the Mac script, as shown in the post's video. Lucho says the work was done out of curiosity and taught a lot along the way. The post shares no code, and the bulb's model is not named.
Questions about Tuya Bluetooth beacon RGB bulb
Lucho asked Claude how the app-only RGB bulbs worked. Together they found a Tuya beacon protocol, worked out its sequence number and checksum from iPhone captures, and controlled the bulb from a Mac script. It is listed under Firmware and hardware for Bluetooth LE, macOS.
The entry names Claude. The tools named alongside are Claude and Python.
Its author reports that it works. Checks recorded: real hardware yes.
Discussion
Sources
Sources reviewed · Added
An AI model drafted this entry from the sources above. Checked against the sources on 18 Oct 2026. The figures are the author's. How entries are checked. Something wrong? Tell me.


