get_current_state
Retrieve recent Mi Band health metrics (heart rate, steps, sleep, workouts) with configurable freshness. Choose cached or fresh data, set wait time and max age to get current state or return unmet condition.
Instructions
Recent recorded heart rate, steps and historical sleep/workouts; Gadgetbridge adds battery.
cached returns immediately. prefer_fresh attempts an ordinary backend pull if HR is old; require_fresh returns freshness_unmet if the requested age cannot be met. No app UI interaction. A successful recent pull is reused for 60 seconds even when source data remains stale. wait_seconds: 1..30; max_age_seconds: 1..86400.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| freshness | No | prefer_fresh | |
| wait_seconds | No | ||
| max_age_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||