Intelligent Assistant
Chat with our virtual assistant to get answers promptly.
We use essential cookies for the website to function, as well as analytics cookies for analyzing and creating statistics of the website performance. To agree to the use of analytics cookies, click "Accept All". You can manage your preferences at any time by clicking "Cookie Settings" on the footer. More Information.
This data refers to a user's sleep status within a period of time. Each piece of data records the sleep status in a specific time period (from start time to end time). Data records cannot overlap. The start time of the next data record must be later than or equal to the end time of the previous data record.
To apply for the required scopes, go to Health data > Sleep on the Console of HUAWEI Developers.
| Field | Description | Type | Mandatory | Unit | Value Range |
|---|---|---|---|---|---|
| sleep_state | Sleep status. | int | Yes | - | The options are as follows: 1: light sleep 2: REM sleep 3: deep sleep 4: awake 5: nap |
Currently, detailed sleep data manually recorded by users cannot be obtained.
| Open API | Query Timeliness | Data Source |
|---|---|---|
| In hours | Watches, bands, etc. |
You can subscribe to sleep records to obtain the sleep data. For details, please refer to Data Subscription.
Intelligent Assistant
Chat with our virtual assistant to get answers promptly.
Quick start
Helps you find desired resources with ease.