{
  "api_version": "1.0.0",
  "slug": "bluetti-ep760-home-assistant",
  "url": "https://reversedwithai.com/p/bluetti-ep760-home-assistant",
  "markdown_url": "https://reversedwithai.com/p/bluetti-ep760-home-assistant.md",
  "json_url": "https://reversedwithai.com/p/bluetti-ep760-home-assistant.json",
  "title": "Bluetti inverter cloud API and BLE protocol, bridged to Home Assistant",
  "tagline": "A home battery's cloud and Bluetooth protocols, into Home Assistant in an evening.",
  "summary": "Claude Code read the decompiled Android app and built a cloud-to-MQTT gateway in an evening, then a full Bluetooth control implementation on a Rust ESP32.",
  "target": {
    "name": "Bluetti EP760",
    "type": "api",
    "type_label": "APIs and protocols"
  },
  "platform": "Android / BLE",
  "models": [
    "Claude"
  ],
  "tools": [
    "Claude Code",
    "JADX",
    "ESP32",
    "Rust",
    "MQTT"
  ],
  "outcome": "works",
  "outcome_label": "Works",
  "human_effort": null,
  "time_spent": "One evening for the cloud gateway, a weekend for BLE",
  "cost": null,
  "license": null,
  "checks": {
    "source_available": null,
    "repro_steps": null,
    "real_hardware": null,
    "independently_verified": null
  },
  "author": {
    "name": "Michael Still",
    "url": "https://www.madebymikal.com"
  },
  "sources": {
    "repository": null,
    "writeup": "https://www.madebymikal.com/claude-code-is-scary-good-at-apk-reverse-engineering/",
    "discussions": [],
    "all": [
      "https://www.madebymikal.com/claude-code-is-scary-good-at-apk-reverse-engineering/"
    ]
  },
  "image": {
    "url": "https://covers.reversedwithai.com/bluetti-ep760-home-assistant.webp",
    "credit": "Title card: Reversed with AI"
  },
  "commit_history": null,
  "added_at": "2026-10-13T00:00:15+00:00",
  "updated_at": "2026-10-13T00:00:15+00:00",
  "sources_reviewed_at": "2026-10-13T00:00:15+00:00",
  "reviewed_by": "editor",
  "human_notes": "Still had to push Claude to read the decompiled Java more closely before it solved the cloud login crypto. He also had to untangle its confusion between the Modbus and proprietary pathways used by different Bluetti battery types.",
  "reproduce": null,
  "body_md": "Michael Still used Claude Code to reverse engineer the Bluetti app for an EP760 home battery inverter and its PBOX dongle, which existing open source projects barely supported. Working from the decompiled Android app, Claude built a cloud API to MQTT gateway in one evening. It then built a full Bluetooth control implementation on an ESP32 in Rust over a weekend. The post is dated 2 April 2026 and links no published code, so this is a write-up, not a released tool.\n\n## Cloud first, then Bluetooth\n\nClaude could not download the app from Google Play directly, but it fetched the APK from a Play Store mirror. Still extracted it with JADX. A first analysis showed the cloud API could be implemented, but some features, such as starting a battery maintenance cycle, needed the BLE protocol, so the cloud work came first. Claude got stuck on the cryptography for the cloud login until Still told it to read the decompiled Java more carefully.\n\nFor BLE, Still bought an ESP32 board with PoE and Bluetooth. Instead of extending an existing project, they wrote bare-metal std Rust from scratch. Claude was confused for a while about whether the PBOX spoke Modbus or a proprietary protocol, because the APK has both: one path for rack-mount home batteries and another for portable ones. That confusion, like the login cryptography, needed a human nudge.\n\n## Outcome\n\nThe cloud to MQTT gateway had run without problems for a couple of weeks when Still wrote the post. By the end of the BLE weekend Still had a full implementation of the control protocol tied into Home Assistant through MQTT, plus a 3D-printed case. Still says a project like this is now a weekend's work instead of six months. Still directed Claude, bought the hardware, and plans to try the LG ThinQ app next. To repeat the approach you would need the Bluetti app's APK, JADX, an ESP32 board with Bluetooth and your own inverter.\n\nSources:\n- https://www.madebymikal.com/claude-code-is-scary-good-at-apk-reverse-engineering/",
  "ai_use_excerpts": null
}
