{
  "api_version": "1.0.0",
  "slug": "emaldo-home-battery",
  "url": "https://reversedwithai.com/p/emaldo-home-battery",
  "markdown_url": "https://reversedwithai.com/p/emaldo-home-battery.md",
  "json_url": "https://reversedwithai.com/p/emaldo-home-battery.json",
  "title": "Reverse engineered Emaldo home battery protocols for Home Assistant integration",
  "tagline": "A home battery's Bluetooth and cloud protocols, documented in one day.",
  "summary": "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.",
  "target": {
    "name": "Emaldo Power Core 2.0",
    "type": "api",
    "type_label": "APIs and protocols"
  },
  "platform": "Android",
  "models": [
    "Claude"
  ],
  "tools": [
    "Claude Code",
    "JADX",
    "tcpdump",
    "Android emulator"
  ],
  "outcome": "works",
  "outcome_label": "Works",
  "human_effort": null,
  "time_spent": "About 8 hours, in one day",
  "cost": null,
  "license": null,
  "checks": {
    "source_available": "yes",
    "repro_steps": null,
    "real_hardware": "yes",
    "independently_verified": null
  },
  "author": {
    "name": "ylenius",
    "url": null
  },
  "sources": {
    "repository": "https://github.com/pylenius/ha-emaldo",
    "writeup": "https://medium.com/@ylenius/how-i-reverse-engineered-my-home-batterys-protocol-in-one-day-with-an-ai-pair-programmer-60de36e75df9",
    "discussions": [],
    "all": [
      "https://github.com/pylenius/ha-emaldo",
      "https://medium.com/@ylenius/how-i-reverse-engineered-my-home-batterys-protocol-in-one-day-with-an-ai-pair-programmer-60de36e75df9"
    ]
  },
  "image": {
    "url": "https://covers.reversedwithai.com/emaldo-home-battery.webp",
    "credit": "Image: GitHub (pylenius/ha-emaldo)"
  },
  "commit_history": {
    "commits": 13,
    "ai_commits": 12,
    "ai_days": 1,
    "first_ai_commit": "2026-04-10",
    "last_ai_commit": "2026-04-10",
    "credited_models": [
      {
        "name": "Claude Opus 4.6",
        "commits": 12
      }
    ]
  },
  "added_at": "2026-10-13T00:00:16+00:00",
  "updated_at": "2026-10-13T00:00:16+00:00",
  "sources_reviewed_at": "2026-10-13T00:00:16+00:00",
  "reviewed_by": "editor",
  "human_notes": "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.",
  "reproduce": null,
  "body_md": "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.\n\nSources: [Source 2](https://github.com/pylenius/ha-emaldo/commits.atom), [Source 1](https://raw.githubusercontent.com/pylenius/ha-emaldo/HEAD/README.md)",
  "ai_use_excerpts": null
}
