fitdays
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 fitdays
Quick start
import asyncio
from fitdays import FitdaysClient
async def main():
async with await FitdaysClient.login("you@example.com", "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+
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("you@example.com", "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.
What you get
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.
Multiple people
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)
Sessions and tokens
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.
About the password
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.
Home Assistant
There is a companion integration: HA-Fitdays, which turns each member profile into a device with body-composition sensors.
Errors
| 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.
Disclaimer
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.
Supporting the project
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.
Licence
MIT — see LICENSE.
Metadata
Release files for fitdays 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fitdays-1.1.0.tar.gz | 37.6 kB | With provenance | Details for fitdays-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fitdays-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for fitdays-1.1.0-py3-none-any.whl |
Total release size: 63.1 kB
Release files / fitdays-1.1.0.tar.gz
| Download URL | fitdays-1.1.0.tar.gz |
|---|---|
| Size | 37.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
76a76045330c5319ba59f94c8b9bce9562a8258c808c696ed739d906a1b2fb3a
|
|
BLAKE2b-256 checksum How to use checksums |
6f635e31f84ed0b70ed87cab03668ed66345eaf34dae3c6782e948d1f6fd6a41
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.
Transparency logRelease files / fitdays-1.1.0-py3-none-any.whl
| Download URL | fitdays-1.1.0-py3-none-any.whl |
|---|---|
| Size | 25.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b8a1ffea8b79cec21a59dc056016c6f646bf073d40b6e79f396c59b101180639
|
|
BLAKE2b-256 checksum How to use checksums |
4a668eb4fdf925a14a232a0384ec126f3695967d0f5d3d61bba1f9c5f6d9a058
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.
Transparency logSecurity for fitdays 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for fitdays-1.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.