Evidence at a glance
Based on the linked sources. The author's reported result and independent confirmation are separate checks.
- AI involvement
- Reported models: Claude. Tools: ESPHome Bluetooth proxy, Xiaomi Home app. The writeup below describes the work attributed to AI.
- Reported result
- Partial. This is the directory's source-based outcome classification.
- Independent confirmation
- Not reported.
- Human work and limitations
- The integration relies on an active Bluetooth connection, requiring either a local adapter or an ESPHome Bluetooth proxy configured in active mode. The protocol is reverse-engineered and limited to specific firmware versions.
Original sources
What was done
A Home Assistant integration for the Xiaomi S400 scale that provides live weight, per-person body composition, and backfilled weigh-ins via a reverse-engineered Bluetooth protocol.
The Xiaomi S400 for Home Assistant is a custom integration designed to interface with the Xiaomi Body Composition Scale S400 (MJTZC01YM). The integration uses a reverse-engineered Bluetooth protocol to establish a persistent connection with the scale, enabling live weight streaming and the retrieval of stored weigh-ins. It supports per-person entity mapping and backfills measurements recorded while Home Assistant was offline. The author reports that the integration has been tested only on scale firmware 2.1.1_0006, noting that future firmware updates may break functionality. If the stored-records request fails on specific firmware, the integration falls back to using formula-based body composition estimates. Commit history indicates that Claude Opus 5.5 co-authored several components, including the implementation of stored weigh-in retrieval and QR-code-based authentication. The project is explicitly labeled as experimental.
Reproduce it
1. Install via HACS or manual copy to custom_components. 2. Add the integration in Home Assistant. 3. Authenticate using the Xiaomi Home app QR code or manually provide the token and BLE key. 4. Configure per-person profiles by linking Home Assistant users and setting the scale profile ID.