<!-- Canonical page: https://reversedwithai.com/p/emaldo-home-battery -->
Canonical page: https://reversedwithai.com/p/emaldo-home-battery

# Reverse engineered Emaldo home battery protocols for Home Assistant integration

> A home battery's Bluetooth and cloud protocols, documented in one day.

The author reverse engineered Emaldo battery and solar inverter protocols, enabling real-time monitoring in Home Assistant. The project covers cloud REST API and E2E MSCT-over-UDP communication, with development assisted by Claude Opus 4.6.

## Key facts

- Target: Emaldo Power Core 2.0
- Category: APIs and protocols
- Platform: Android
- Models: Claude
- Tools: Claude Code, JADX, tcpdump, Android emulator
- Outcome: Works
- Time spent (author-reported): About 8 hours, in one day
- Checks: Source available: yes; Repro steps: not reported; Real hardware: yes; Verified by others: not reported
- Author: ylenius
- Added: 2026-10-13
- Updated: 2026-10-13
- Sources reviewed: 2026-10-13 (editor)

## What was done

The author reverse engineered the communication protocols for Emaldo battery storage and solar inverter systems to create a Home Assistant integration. Initial efforts focused on the cloud REST API, which uses RC4 encryption and Snappy compression, alongside a BLE provisioning protocol using AES-256-CBC. Subsequent work shifted to an E2E real-time protocol, identified as raw MSCT binary frames over UDP. The author documented the handshake sequence, command structures, and encryption key usage, specifically discovering that the chat_secret encrypts device-facing messages while the end_secret handles relay authentication. The currentflow command (0x30A0) was decoded to retrieve power values including solar, grid, battery, load, and vehicle data in signed hectowatts. Development was assisted by Claude Opus 4.6, as noted in the commit history. The project has since migrated to a new repository.

Sources: [Source 2](https://github.com/pylenius/ha-emaldo/commits.atom), [Source 1](https://raw.githubusercontent.com/pylenius/ha-emaldo/HEAD/README.md)

## Human work and limitations

Ylenius did the first APK decompile and BLE scan himself. He also ran the emulator packet capture that showed Claude's KCP assumption was wrong, and he read live values off the app so the binary data could be decoded.

## What the commit history shows

12 of 13 commits in the public repository credit an AI, over 1 day between 2026-04-10 and 2026-04-10. Credited: Claude Opus 4.6 (12).

Measured by this site from public git history.

## Sources

- [Repository](https://github.com/pylenius/ha-emaldo)
- [Write-up](https://medium.com/@ylenius/how-i-reverse-engineered-my-home-batterys-protocol-in-one-day-with-an-ai-pair-programmer-60de36e75df9)

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: ylenius (2026). Reverse engineered Emaldo home battery protocols for Home Assistant integration. Reversed with AI. https://reversedwithai.com/p/emaldo-home-battery
