{
  "api_version": "1.0.0",
  "slug": "besten-sc-160a-c-ble-config-535898bb",
  "url": "https://reversedwithai.com/p/besten-sc-160a-c-ble-config-535898bb",
  "markdown_url": "https://reversedwithai.com/p/besten-sc-160a-c-ble-config-535898bb.md",
  "json_url": "https://reversedwithai.com/p/besten-sc-160a-c-ble-config-535898bb.json",
  "title": "Reverse-engineered the BestEn SC-160A-C BLE UPS protocol for Home Assistant",
  "tagline": "A read-only Home Assistant integration for BestEn 12V DC UPS units via Bluetooth LE.",
  "summary": "This custom integration enables Home Assistant to monitor BestEn SC-160A-C UPS units. It uses a reverse-engineered protocol to read battery metrics, power status, and load data over Bluetooth LE, providing estimated runtime calculations.",
  "target": {
    "name": "BestEn SC-160A-C (BLE config)",
    "type": "api",
    "type_label": "APIs and protocols"
  },
  "platform": "Home Assistant",
  "models": [
    "Claude"
  ],
  "tools": [
    "pytest",
    "bleak",
    "bleak-retry-connector"
  ],
  "outcome": "works",
  "outcome_label": "Works",
  "human_effort": null,
  "time_spent": null,
  "cost": null,
  "license": null,
  "checks": {
    "source_available": null,
    "repro_steps": null,
    "real_hardware": null,
    "independently_verified": null
  },
  "author": {
    "name": "kosherclerk",
    "url": null
  },
  "sources": {
    "repository": "https://github.com/kosherclerk/ha-besten-ble-ups",
    "writeup": null,
    "discussions": [],
    "all": [
      "https://github.com/kosherclerk/ha-besten-ble-ups"
    ]
  },
  "image": null,
  "commit_history": null,
  "added_at": "2026-11-28T20:00:53.351283+00:00",
  "updated_at": "2026-11-28T20:00:53.351283+00:00",
  "sources_reviewed_at": "2026-11-30T22:09:10.390791+00:00",
  "reviewed_by": "automated",
  "human_notes": "The integration handles Bluetooth discovery and connection management, including active scanning requests for Home Assistant adapters. It includes a configuration flow for battery parameters to enable runtime estimation.",
  "reproduce": "Install via HACS by adding the repository URL as a custom integration, or manually copy the custom_components/besten_ble_ups directory to the Home Assistant configuration folder and restart.",
  "body_md": "The BestEn BLE UPS integration provides read-only monitoring for the BestEn SC-160A-C 12 V DC UPS. The author reverse-engineered the communication protocol from a physical unit, which involves tunneling Modbus RTU through the Bluetooth characteristic FFE1. The integration supports data collection for power source, battery voltage, current, power, load, and estimated runtime. It operates via the host's Bluetooth adapter or ESPHome Bluetooth proxies. The author reports that the integration is strictly read-only and does not modify UPS settings. Diagnostics are available through raw register downloads. The project is documented at https://raw.githubusercontent.com/kosherclerk/ha-besten-ble-ups/HEAD/README.md. Development was assisted by Claude Opus 5.5. Limitations include a single-client connection constraint, uncalibrated charging current readings, and the absence of AC voltage reporting. The integration has been tested with firmware 21900102. Other FFE0-compatible devices are rejected during the validation phase.",
  "ai_use_excerpts": {
    "checked_at": "2026-11-25T04:31:34.561Z",
    "items": [
      {
        "quote": "Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>",
        "url": "https://github.com/kosherclerk/ha-besten-ble-ups/commits.atom"
      }
    ]
  }
}
