# mi-scale-2: decoding Mi Smart Scale 2 weight messages

> mi-scale-2 decodes Xiaomi Mi Smart Scale 2 BLE weight data and publishes the readings to MQTT. Its format notes identify unit, stabilized, and weight-removed bits in the first byte and a little-endian weight value in the next two bytes.

- Type: Case study
- Targets: Protocol
- Category: Independent reconstruction cases
- Relationship: Independent reconstruction project
- Sources reviewed: 2026-11-07
- Added to the catalog: 2026-11-09
- Original resource: <https://github.com/qbbr/mi-scale-2>
- Primary source: <https://github.com/qbbr/mi-scale-2/blob/cac6537f5d11fe2ee9d73f04494b186f5bbb1062/README.md>
- Catalog page: <https://awesomerea.org/resources/mi-scale-2-case/>
- Record JSON: <https://awesomerea.org/resources/mi-scale-2-case/record.json>
- Chinese version: [简体中文](https://awesomerea.org/zh/resources/mi-scale-2-case/index.md)

## Requirements & limits

- **Prerequisites:** Python 3 with python-dotenv, bluepy, and paho-mqtt; bluepy.btle requires root permissions.
- **Testing evidence:** The author reports testing only with a Raspberry Pi 3b and Mi Scale 2.
- **License:** MIT license.

## Primary sources

1. <https://github.com/qbbr/mi-scale-2/blob/cac6537f5d11fe2ee9d73f04494b186f5bbb1062/README.md>

## More in Protocols

- [PSA VAN Bus: documenting Peugeot and Citroën packet formats](https://awesomerea.org/resources/psa-van-bus-packets-case/index.md) · Case study
- [Apple Wi-Fi Password Sharing: reconstructing the sharing protocol](https://awesomerea.org/resources/apple-wifi-password-sharing-case/index.md) · Case study
- [Schellenberg 21009: investigating a USB smart-home protocol](https://awesomerea.org/resources/schellenberg-qivicon-usb-case/index.md) · Case study
- [433home: reconstructing REV power-switch radio commands](https://awesomerea.org/resources/433home-case/index.md) · Case study
- [fcp-stuff: mapping the FirstClass TCP protocol](https://awesomerea.org/resources/fcp-stuff-case/index.md) · Case study
- [Orthoplay: reconstructing OD-11 speaker WebSocket commands](https://awesomerea.org/resources/orthoplay-re-case/index.md) · Case study

## About this entry

The description was reviewed against primary sources.
Original editorial content: MIT. Linked projects, papers and assets retain their own rights and licenses.
