{
  "api_version": "1.0.0",
  "slug": "abandoned-ble-energy-meter-home-assistant",
  "url": "https://reversedwithai.com/p/abandoned-ble-energy-meter-home-assistant",
  "markdown_url": "https://reversedwithai.com/p/abandoned-ble-energy-meter-home-assistant.md",
  "json_url": "https://reversedwithai.com/p/abandoned-ble-energy-meter-home-assistant.json",
  "title": "Revived a cloud-dependent BLE energy monitor by reverse engineering it with Claude Code",
  "tagline": "The vendor went bankrupt; the meter now talks to Home Assistant locally.",
  "summary": "After the vendor went bankrupt, Claude Code analysed a firmware dump and then probed the live device over Bluetooth and a debug probe to work out its protocol, and wrote a local Home Assistant integration.",
  "target": {
    "name": "BLE energy-meter sensor (nRF51822)",
    "type": "firmware",
    "type_label": "Firmware and hardware"
  },
  "platform": "nRF51822 / Home Assistant",
  "models": [
    "Claude"
  ],
  "tools": [
    "Claude Code",
    "OpenOCD",
    "radare2",
    "Raspberry Pi Pico",
    "Python",
    "Home Assistant"
  ],
  "outcome": "works",
  "outcome_label": "Works",
  "human_effort": null,
  "time_spent": "A couple of evenings for the live-hardware phase",
  "cost": null,
  "license": null,
  "checks": {
    "source_available": null,
    "repro_steps": null,
    "real_hardware": "yes",
    "independently_verified": null
  },
  "author": {
    "name": "Kacper Grabowski",
    "url": null
  },
  "sources": {
    "repository": null,
    "writeup": "https://medium.com/kingfisher-technology/when-the-cloud-dies-reverse-engineering-an-abandoned-iot-device-264ce7e5a24e",
    "discussions": [],
    "all": [
      "https://medium.com/kingfisher-technology/when-the-cloud-dies-reverse-engineering-an-abandoned-iot-device-264ce7e5a24e"
    ]
  },
  "image": {
    "url": "https://covers.reversedwithai.com/abandoned-ble-energy-meter-home-assistant.webp",
    "credit": "Title card: Reversed with AI"
  },
  "commit_history": null,
  "added_at": "2026-10-14T00:00:37+00:00",
  "updated_at": "2026-10-14T00:00:37+00:00",
  "sources_reviewed_at": "2026-10-14T00:00:37+00:00",
  "reviewed_by": "editor",
  "human_notes": "The author did all physical work (opening the case, wiring a Pico debug probe, dumping flash). Static analysis alone stalled; progress came once Claude could test hypotheses on the live device. Claude kept mining dead ends and needed nudges; the author estimates it worked out about 80% of the device.",
  "reproduce": null,
  "body_md": "Kacper Grabowski's Bluetooth energy monitor stopped working when its maker went bankrupt and the cloud service died. Grabowski dumped the firmware personally, then let Claude Code probe the live device over Bluetooth and a debug probe until it worked out the protocol and wrote a local Home Assistant integration.\n\n### How it was done\n\nGrabowski found a Nordic nRF51822 and its debug pads, wired up a Raspberry Pi Pico as a debug probe, and used a published readout protection workaround to dump the 256 KB flash and RAM.\n\nClaude Code first worked on the dump alone over several sessions, some lasting hours. It wrote pages of notes but could not pin down the keys or the data format. Grabowski then built an isolated VM with OpenOCD, radare2 and Python BLE libraries, passed through the debug probe and a Bluetooth adapter, and let Claude experiment on the live device, with one rule: no permanent changes. It wrote short scripts to test each guess and at one point halted the chip mid encryption to read a reply from RAM.\n\n### Results\n\nOver a couple of evenings, with occasional nudges, Claude worked out what the author estimates is about 80% of how the device works. The two keys it needs are stored in flash, so the owner could extract their own. Claude Code wrote about 90% of the Home Assistant integration, which now feeds the Energy dashboard with no cloud. Other owners would have to repeat the hardware steps.",
  "ai_use_excerpts": null
}
