<!-- Canonical page: https://reversedwithai.com/p/eg4-ll-battery-ble-home-assistant -->
Canonical page: https://reversedwithai.com/p/eg4-ll-battery-ble-home-assistant

# Reverse engineered an EG4 LiFePO4 battery's Bluetooth protocol into a Home Assistant integration with Claude

> A battery monitor over BLE for Home Assistant and the browser.

A Home Assistant integration and a Web Bluetooth dashboard for the EG4 LL 400Ah battery, with the BLE protocol worked out with Claude.

## Key facts

- Target: EG4 LL 400Ah LiFePO4 battery (BLE)
- Category: Firmware and hardware
- Platform: Bluetooth LE, Home Assistant
- Models: Claude
- Tools: nRF Connect, APK decompilation, Home Assistant
- Outcome: Works
- License: MIT
- Checks: Source available: yes; Repro steps: yes; Real hardware: yes; Verified by others: not reported
- Author: [wilcox97](https://github.com/wilcox97)
- Added: 2026-10-15
- Updated: 2026-10-15
- Sources reviewed: 2026-10-15 (editor)

## What was done

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.

### How it was done

The 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.

### Results

The 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.

## What the commit history shows

1 of 10 commits in the public repository credit an AI, over 1 day between 2026-06-01 and 2026-06-01. Credited: Claude (version not given) (1).

Measured by this site from public git history.

## Questions about EG4 LL 400Ah LiFePO4 battery (BLE)

### What is the EG4 LL 400Ah LiFePO4 battery (BLE) project?

A Home Assistant integration and a Web Bluetooth dashboard for the EG4 LL 400Ah battery, with the BLE protocol worked out with Claude. It is listed under Firmware and hardware for Bluetooth LE, Home Assistant.

### Which AI model was used on EG4 LL 400Ah LiFePO4 battery (BLE)?

The entry names Claude. The tools named alongside are nRF Connect, APK decompilation and Home Assistant.

### Did the AI reverse engineering of EG4 LL 400Ah LiFePO4 battery (BLE) work?

Its author reports that it works. Checks recorded: source available yes, repro steps yes, real hardware yes.

### Is the source code for EG4 LL 400Ah LiFePO4 battery (BLE) available?

Yes. The code, patches or tooling are public: https://github.com/wilcox97/eg4-ll-battery-monitor. Licence: MIT. The sources give enough steps to reproduce it.

## Sources

- [Repository](https://github.com/wilcox97/eg4-ll-battery-monitor)

Figures are reported by the author and not measured by this site, except the commit history. Entry drafted with AI from the linked sources and checked against them.

Cite as: wilcox97 (2026). Reverse engineered an EG4 LiFePO4 battery's Bluetooth protocol into a Home Assistant integration with Claude. Reversed with AI. https://reversedwithai.com/p/eg4-ll-battery-ble-home-assistant
