{
  "api_version": "1.0.0",
  "slug": "eg4-ll-battery-ble-home-assistant",
  "url": "https://reversedwithai.com/p/eg4-ll-battery-ble-home-assistant",
  "markdown_url": "https://reversedwithai.com/p/eg4-ll-battery-ble-home-assistant.md",
  "json_url": "https://reversedwithai.com/p/eg4-ll-battery-ble-home-assistant.json",
  "title": "Reverse engineered an EG4 LiFePO4 battery's Bluetooth protocol into a Home Assistant integration with Claude",
  "tagline": "A battery monitor over BLE for Home Assistant and the browser.",
  "summary": "A Home Assistant integration and a Web Bluetooth dashboard for the EG4 LL 400Ah battery, with the BLE protocol worked out with Claude.",
  "target": {
    "name": "EG4 LL 400Ah LiFePO4 battery (BLE)",
    "type": "firmware",
    "type_label": "Firmware and hardware"
  },
  "platform": "Bluetooth LE, Home Assistant",
  "models": [
    "Claude"
  ],
  "tools": [
    "nRF Connect",
    "APK decompilation",
    "Home Assistant"
  ],
  "outcome": "works",
  "outcome_label": "Works",
  "human_effort": null,
  "time_spent": null,
  "cost": null,
  "license": "MIT",
  "checks": {
    "source_available": "yes",
    "repro_steps": "yes",
    "real_hardware": "yes",
    "independently_verified": null
  },
  "author": {
    "name": "wilcox97",
    "url": "https://github.com/wilcox97"
  },
  "sources": {
    "repository": "https://github.com/wilcox97/eg4-ll-battery-monitor",
    "writeup": null,
    "discussions": [],
    "all": [
      "https://github.com/wilcox97/eg4-ll-battery-monitor"
    ]
  },
  "image": {
    "url": "https://covers.reversedwithai.com/eg4-ll-battery-ble-home-assistant.webp",
    "credit": "Image: GitHub (wilcox97/eg4-ll-battery-monitor)"
  },
  "commit_history": {
    "commits": 10,
    "ai_commits": 1,
    "ai_days": 1,
    "first_ai_commit": "2026-06-01",
    "last_ai_commit": "2026-06-01",
    "credited_models": [
      {
        "name": "Claude (version not given)",
        "commits": 1
      }
    ]
  },
  "added_at": "2026-10-15T04:13:30.452086+00:00",
  "updated_at": "2026-10-15T04:13:30.452086+00:00",
  "sources_reviewed_at": "2026-10-15T04:13:30.452086+00:00",
  "reviewed_by": "editor",
  "human_notes": null,
  "reproduce": null,
  "body_md": "wilcox97 built a Home Assistant integration and a browser dashboard for an EG4 LL 400Ah LiFePO4 battery. The README says it came from a long collaboration with Claude, which was the main development partner for the protocol work.\n\n### How it was done\n\nThe protocol was reverse engineered from nRF Connect BLE captures, decompilation of the official Android app and comparison with open source drivers. It turned out to be Modbus RTU over a custom GATT service, and the battery does not stream, so a poll command must be written after subscribing. Byte offsets, CRC logic and connection order were checked against the real battery before being ported to both implementations. The README credits Claude with the protocol work, implementation and debugging across 14 or more iterations.\n\n### Results\n\nThe integration exposes pack voltage, current, power, state of charge and health, cell voltages, temperatures, cycle count, runtime estimates and protection limits, and feeds the Energy dashboard. It installs through HACS. A single HTML file gives the same data over Web Bluetooth.",
  "ai_use_excerpts": null
}
