Skip to content

feat(wbs06): add Body scale support - #3

Merged
pierosavi merged 4 commits into
pierosavi:mainfrom
lientry:feat/wbs06-classic-rfcomm
Oct 29, 2026
Merged

pierosavi merged 4 commits into
pierosavi:mainfrom
lientry:feat/wbs06-classic-rfcomm

Conversation

@lientry

@lientry lientry commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

Thank you for this integration and the great reverse engineering work behind it! Your existing WPP implementation made adding support for Body (WBS06) possible.

Problem

Body (WBS06), also sold as Nokia Body, uses incoming Bluetooth Classic RFCOMM connections for synchronization. Body Smart (WBS13) uses Bluetooth Low Energy GATT, so the existing transport cannot synchronize WBS06.

Solution

This PR adds local WBS06 support while preserving the existing Body Smart behavior.

  • Native Bluetooth Classic pairing without a passkey.
  • BlueZ RFCOMM profiles and FragFsm framing.
  • Reuse of the existing WPP authentication and measurement protocol.
  • Model-aware account key retrieval and Home Assistant setup.
  • Weight and last weigh-in per user, plus battery and last sync.
  • No SYNC_OK acknowledgement until its effects on stored WBS06 measurements are established.

Validation

I tested the integration with a real WBS06 and Home Assistant OS 2026.10.1, starting from a clean native integration setup with no existing Bluetooth bond or integration entry.

  • Retrieved the scale key through the Withings account login flow.
  • Completed Bluetooth Classic pairing without a passkey.
  • Received authenticated measurements and populated all four expected sensors.
  • Successfully reloaded the integration.
  • Restarted the BlueZ daemon without restarting Home Assistant. Both RFCOMM profiles recovered, and a subsequent weigh-in synchronized successfully.
  • Confirmed that no Bluetooth LE bond was required.

The scale displayed "Setup failed" after pairing, but the Classic bond and subsequent authenticated synchronization succeeded.

All 135 tests in the local pytest suite pass.

@pierosavi

Copy link
Copy Markdown
Owner

Thank you @lientry for the first community scale contribution! Code looks good, I'm releasing a new version after merging this :)

@pierosavi
pierosavi merged commit 1bfffd2 into pierosavi:main Oct 29, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants