{
  "api_version": "1.0.0",
  "slug": "tuya-ble-rgb-bulb-mac-control-claude",
  "url": "https://reversedwithai.com/p/tuya-ble-rgb-bulb-mac-control-claude",
  "markdown_url": "https://reversedwithai.com/p/tuya-ble-rgb-bulb-mac-control-claude.md",
  "json_url": "https://reversedwithai.com/p/tuya-ble-rgb-bulb-mac-control-claude.json",
  "title": "Decoded a Tuya Bluetooth RGB bulb's beacon protocol with Claude and drove it from a Mac",
  "tagline": "An app-only bulb, controlled from a Mac after decoding its checksum.",
  "summary": "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.",
  "target": {
    "name": "Tuya Bluetooth beacon RGB bulb",
    "type": "firmware",
    "type_label": "Firmware and hardware"
  },
  "platform": "Bluetooth LE, macOS",
  "models": [
    "Claude"
  ],
  "tools": [
    "Claude",
    "Python"
  ],
  "outcome": "works",
  "outcome_label": "Works",
  "human_effort": null,
  "time_spent": null,
  "cost": null,
  "license": null,
  "checks": {
    "source_available": null,
    "repro_steps": null,
    "real_hardware": "yes",
    "independently_verified": null
  },
  "author": {
    "name": "Lucho",
    "url": "https://x.com/luchoalfonso_"
  },
  "sources": {
    "repository": null,
    "writeup": "https://x.com/luchoalfonso_/status/2108200739495362718",
    "discussions": [],
    "all": [
      "https://x.com/luchoalfonso_/status/2108200739495362718"
    ]
  },
  "image": {
    "url": "https://covers.reversedwithai.com/tuya-ble-rgb-bulb-mac-control-claude.webp",
    "credit": "Image: @luchoalfonso_ on X"
  },
  "commit_history": null,
  "added_at": "2026-10-18T08:04:21.744489+00:00",
  "updated_at": "2026-10-18T08:04:21.744489+00:00",
  "sources_reviewed_at": "2026-10-18T08:04:21.744489+00:00",
  "reviewed_by": "editor",
  "human_notes": null,
  "reproduce": null,
  "body_md": "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.\n\n### How it was done\n\nThey 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.\n\n### Results\n\nThe 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.",
  "ai_use_excerpts": null
}
