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.

Only Essential Cookies
Accept All

Sleep Status

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.

OAuth Scope

To apply for the required scopes, go to Health data > Sleep on the Console of HUAWEI Developers.

  • Read: https://www.huawei.com/healthkit/sleep.read
  • Write: https://www.huawei.com/healthkit/sleep.write

Atomic Sampling Detailed Data Types

  • Name: com.huawei.continuous.sleep.fragment
Expand

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

NOTE

Currently, detailed sleep data manually recorded by users cannot be obtained.

Data Openness

Expand

Open API

Query Timeliness

Data Source

Query health records

In hours

Watches, bands, etc.

Data Subscription

You can subscribe to sleep records to obtain the sleep data. For details, please refer to Data Subscription.

Search
Enter a keyword.