An unofficial async Python client for the Fitdays (ICOMON) smart-scale cloud API.
Fitdays is the app behind a family of white-label body-composition scales — the Robi S6 and a long tail of rebadged siblings. The scale measures bio-impedance, the cloud turns that into fat / muscle / water / bone / BMR figures, and the app is the only place those numbers show up. There is no public API, so this package speaks the app's own protocol.
Read-only: it logs in, then pulls measurement history. It never writes to your account.
pip install fitdaysimport asyncio
from fitdays import FitdaysClient
async def main():
async with await FitdaysClient.login("[email protected]", "hunter2") as client:
latest = await client.get_latest()
print(latest.weight_kg, "kg")
print(latest.body_fat_pct, "% fat →", latest.body_fat_kg, "kg")
print(latest.muscle_mass_kg, "kg muscle")
asyncio.run(main())See examples/quickstart.py for a fuller tour.
Fitdays 1.28.5 asks users to move their account to Fitdays+ (package
cn.icomon.fitdayspro). The move freezes the old account and then deletes it.
After that, FitdaysClient.login fails with code 11000 and the data is only
reachable through the Fitdays+ backend. Use FitdaysPlusClient for those accounts:
from fitdays import FitdaysPlusClient
async with await FitdaysPlusClient.login("[email protected]", "hunter2") as client:
latest = await client.get_latest()It has the same methods as FitdaysClient and returns the same models, so code
that reads Measurement, UserProfile and ScaleDevice works for both. Three
differences:
- The session is a
PlusSession. It stores two password digests (access_codeandaccess_sign) and aclient_id, and serialises withto_dict()/from_dict()likeSession. get_sync()makes two requests. Fitdays+ returns weigh-ins and devices from one endpoint and the member profiles from another.- A profile's
suidholds the Fitdays+uid. The names differ between the two backends; the field keeps its old name so callers do not have to branch.
Login, sync, profiles and token renewal were tested against plus-eu.fitdays.cn
on 2026-11-12. The test account had no weigh-ins, so the measurement fields come
from the Fitdays+ 1.14.4 app's data model and have not been checked against a real
response yet. The body-composition values beyond weight, BMI, body fat and
impedance are read from the body_composition object the app stores in each
weigh-in's ext field. Reports with real data are welcome.
The Fitdays 2.0 app (still package cn.fitdays.fitdays, rebuilt in Flutter)
moves accounts to a new cloud at eu-api, us-api and cn-api.fitdays.com.
After the move, the old cloud either answers code 11052 ("upgrade to app 2.0")
or keeps answering without any weigh-in taken since. FitdaysClient turns
11052 into a FitdaysAuthError that names FitdaysV2Client. Use that client
for migrated accounts:
from fitdays import FitdaysV2Client
async with await FitdaysV2Client.login(
"[email protected]", "hunter2", country="NL", timezone="Europe/Amsterdam"
) as client:
latest = await client.get_latest()It has the same read methods and returns the same models. Read these first:
- A login signs the phone app out. The account allows one session. A login
in the phone app ends this client's session in turn. The client therefore
never logs in by itself: it keeps the session alive with the refresh token,
and when the server rejects that token it raises
FitdaysAuthError. - Refresh tokens rotate. The access token lasts 12 hours and the refresh
token 1 year, but each refresh replaces both and invalidates the old refresh
token. Store the
V2Sessionevery timetoken_updatedfires. - The login finds the region. Without
api_base, the login tries the country's home region first (CN→ cn,US→ us, others → eu) and moves to the next one when the server answers20001(account does not exist). - No password digest is stored on the
V2Session. - Heart rate is not mapped yet: the shape of
hrInfois unknown, so it stays onMeasurement.raw. The fullbodyCompositionInfo(bodyScore,fatMass,smiand so on) is onrawtoo.
The protocol comes from measurements other users posted in
HA-Fitdays #11 on
2026-11-30: China and US accounts log in without a request signature. On
2026-12-01 an unsigned login was sent to all three regions with an account that
was never migrated, and each answered 20001, not a signature error. A
successful login on an EU account has not been tested yet. Reports are welcome.
get_sync() returns everything in one round-trip:
.measurements |
Measurement objects, newest first |
.profiles |
the member profiles on the account (UserProfile) |
.devices |
the scales bound to the account (ScaleDevice) |
A Measurement carries what the scale reported — weight_kg, bmi,
body_fat_pct, subcutaneous_fat_pct, visceral_fat, muscle_pct,
skeletal_muscle_pct, bone_mass_kg, body_water_pct, protein_pct, bmr,
body_age, heart_rate, impedance — plus derived masses the API only sends as
ratios: body_fat_kg, muscle_mass_kg, skeletal_muscle_kg, body_water_kg,
protein_kg.
is_weight_only tells you a weigh-in came without impedance (socks, or a quick step
on the scale), so you can skip the body-composition fields rather than charting
nulls.
One Fitdays account can hold several member profiles, each with its own suid, and
the scale attributes each weigh-in to one of them:
result = await client.get_sync()
for profile in result.profiles:
latest = result.latest(profile.suid)
print(profile.display_name, latest.weight_kg)Logging in every time is unnecessary and rude to the server. Persist the session instead:
stored = client.session.to_dict() # no plaintext password in here
...
client = FitdaysClient.from_session(stored, token_updated=save_it)Two things happen automatically:
- Self-healing login. Tokens are long-lived but not eternal. When one is
rejected, the client re-authenticates using the stored password digest and
retries the call — then fires your
token_updatedcallback so you can persist the new token. - Region redirects. An account registered outside Europe answers with
code 302and the host it actually lives on. The client follows that once and remembers it.
The login endpoint expects MD5(MD5(password + "hx")), so the plaintext never
leaves your process — Session stores only that digest, and re-login works from
the digest alone. It is still a credential (it is password-equivalent to this API),
so store it the way you would store a token.
There is a companion integration: HA-Fitdays, which turns each member profile into a device with body-composition sensors.
| Exception | Means |
|---|---|
FitdaysAuthError |
login failed, the token is dead and cannot be renewed, or (Fitdays+) the account is frozen mid-migration |
FitdaysNetworkError |
timeout / connection problem |
FitdaysAPIError |
the cloud returned a non-success code |
FitdaysValidationError |
you passed something unusable |
All inherit from FitdaysError.
Not affiliated with, endorsed by, or supported by GUANGDONG ICOMON or Fitdays. The protocol was determined by observing the app's own traffic against the author's own account. Endpoints may change or disappear without notice. Use at your own risk.
This project is free and stays free. If it is useful to you, you can support its development through GitHub Sponsors. Sponsorship is voluntary and unlocks nothing: every feature, fix and security update ships in the public release.
MIT — see LICENSE.