Weigh app icon

# Weigh: a Wyze Scale Ultra app for iPhone, with Apple Health and no Wyze cloud **Weigh** is an open-source iOS app that reads a **Wyze Scale Ultra** directly over **Bluetooth LE** and saves every weigh-in to **Apple Health**, with no Wyze app, account or cloud. It decodes the scale's full body composition locally, tells family members apart, and adds trend smoothing, a muscle-gain / fat-loss plan, and metrics the Wyze app hides. Built with SwiftUI, SwiftData, Swift Charts, CoreBluetooth and HealthKit (iOS 18+). It includes the first public write-up of the **Wyze Scale Ultra (WL_SCU) BLE protocol**: [docs/PROTOCOL.md](docs/PROTOCOL.md).

Weigh home screen with weight, BMI gauge and trend Weight trend chart with smoothed trend line Body composition tiles: body fat, muscle, skeletal muscle, water Muscle gain plan with calorie and protein targets

## Features - **Direct Bluetooth, no cloud.** Talks to the scale itself while the app is open, like the Wyze app. (The scale's display turns on whenever a phone connects, so the app deliberately doesn't connect from the background.) - **Full body composition:** - weight, BMI, body fat %, fat mass, muscle mass, skeletal muscle %, bone mass - body water, protein, subcutaneous fat, visceral fat, lean mass, FFMI, BMR, metabolic age - body type, from a 3×3 grid of fat against muscle - **Hidden metrics.** It uses the raw bio-impedance the Wyze app never shows. Skeletal muscle comes from the Janssen (2000) equation, which was validated against MRI. - **Multiple people.** - Each person is registered on the scale. - Readings are matched by the scale's user ID plus each person's weight history. - If it can't tell, it asks. - Only your own weigh-ins go to your Apple Health. - **Apple Health sync.** - Writes weight, body fat %, lean body mass and BMI. - Attaches every other measurement as sample metadata. - Imports history from other apps, such as old Wyze readings. - **Accuracy tools.** - A smoothed trend line (exponentially weighted moving average) separates real change from daily water swings. - It shows your personal "normal swing" and tips for consistent readings. - **Plan** for building muscle, losing fat or maintaining: - Calorie and protein targets that adjust to your actual rate of change. - How much of a gain was lean mass versus fat. - Food and strength workouts read from Apple Health. - **No ghost wake-ups.** Bluetooth is only used while Weigh is open, so the scale isn't woken every time your phone comes near it. A weigh-in in progress still finishes if you lock the phone. ## Supported scales | Scale | Model | Status | |---|---|---| | Wyze Scale Ultra | WL_SCU | ✅ Weight and full body composition (verified, fw 1.0.0) | | Wyze Scale X | WL_SC3 | Same transport; the older framing is documented by [ha-wyze-scale](https://github.com/Bo-Louvier/ha-wyze-scale) | ## Build and install You need a Mac with Xcode and [XcodeGen](https://github.com/yonaskolb/XcodeGen), and an iPhone. ```sh cd ios # set DEVELOPMENT_TEAM in project.yml to your Apple team ID ./build-device.sh # generates the project, builds, installs and launches on the connected iPhone ``` With a free Apple ID the app expires after 7 days; run the script again to renew it. Only one device can be connected to the scale at a time, so close the Wyze app while using Weigh. ## Repository layout | Path | What | |---|---| | [`ios/`](ios) | The Weigh iPhone app (SwiftUI, SwiftData, HealthKit, CoreBluetooth) | | [`docs/PROTOCOL.md`](docs/PROTOCOL.md) | Wyze Scale Ultra BLE protocol: key exchange, XXTEA framing, commands, frame layouts | | [`probe/`](probe) | Python ([bleak](https://github.com/hbldh/bleak)) scanners and probes, plus `decrypt_pklg.py` to decrypt a PacketLogger capture | | [`collector/`](collector) | Experimental Linux/Docker collector (BlueZ + aiohttp API), an alternative to the phone | ## FAQ **Can I use a Wyze scale without the Wyze app?** Yes. Weigh talks to the scale directly over Bluetooth and stores everything on your phone and in Apple Health. The scale may still upload over Wi-Fi when no phone is connected; block it at your router if you want it fully offline. **Does the Wyze Scale Ultra sync with Apple Health?** With Weigh, yes: weight, body fat %, lean body mass and BMI are written as native Health samples, and everything else is attached as metadata. **Is the protocol encrypted?** Yes, but weakly. A 32-bit Diffie–Hellman exchange sets up an XXTEA session key, so a captured session can be decrypted offline. See [PROTOCOL.md](docs/PROTOCOL.md). ## Credits - Transport and crypto first documented for the Scale X by [Bo-Louvier/ha-wyze-scale](https://github.com/Bo-Louvier/ha-wyze-scale). - Ultra framing, user commands and frame layout decoded and written up here. Not affiliated with or endorsed by Wyze Labs. "Wyze" is a trademark of Wyze Labs, Inc. ## Author Built by [Spencer D'Avis](https://spenc.ee), a Seattle-area engineer working on applied AI, integrations, iOS and hardware projects. More at [spenc.ee](https://spenc.ee) and on [GitHub](https://github.com/spencerbdavis). ## License [MIT](LICENSE)