About this trigger
Triggers, queries, and actions are the building blocks of Applets. Triggers tell an Applet to start, queries ask a question, and actions are its end result.
Developer info
- Description
- This trigger fires once your last sleep data is ready for exportation.
- API endpoint slug
- WithingsSleep.nightactivityavailable
Trigger fields
Device Dropdown list
- Label
- Which sensor do you want to use?
- Helper text
- If you have more than one sensor linked to your Withings Health Mate account, you can select which one you want to use.
- Slug
- device
- Required
- true
- Can have default value
- false
Ingredients
Sleep durationSleep duration of your latest sleep data (in seconds)
- Slug
- sleep_duration
- Filter code
- WithingsSleep.nightactivityavailable.SleepDuration
- Type
- String
- Example
- 26500
Device userUsername associated to the sleep sensor
- Slug
- device_user
- Filter code
- WithingsSleep.nightactivityavailable.DeviceUser
- Type
- String
- Example
- Tom
In bed dateand timeDate and time when you got in bed
- Slug
- bed_in
- Filter code
- WithingsSleep.nightactivityavailable.InBedDateandTime
- Type
- Date with time (ISO8601)
- Example
- 2020-07-08T04:17:06.000+05:00
Device macMAC address of your sleep sensor
- Slug
- device_mac
- Filter code
- WithingsSleep.nightactivityavailable.DeviceMac
- Type
- String
- Example
- 00:E4:XX:XX:XX:XX
Outof bed dateand timeDate and time when you got out of bed
- Slug
- bed_out
- Filter code
- WithingsSleep.nightactivityavailable.OutofBedDateandTime
- Type
- Date with time (ISO8601)
- Example
- 2020-07-08T04:17:06.000+05:00
Light sleep durationTotal light sleep duration of your latest sleep data (in seconds)
- Slug
- light_sleep_duration
- Filter code
- WithingsSleep.nightactivityavailable.LightSleepDuration
- Type
- String
- Example
- 16000
Deep sleep durationTotal deep sleep duration of your latest sleep data (in seconds)
- Slug
- deep_sleep_duration
- Filter code
- WithingsSleep.nightactivityavailable.DeepSleepDuration
- Type
- String
- Example
- 5000
Rem sleep durationTotal REM sleep duration of your latest sleep data (in seconds)
- Slug
- rem_sleep_duration
- Filter code
- WithingsSleep.nightactivityavailable.RemSleepDuration
- Type
- String
- Example
- 5500
Sleep scoreSleep score assigned to your latest sleep data
- Slug
- sleep_score
- Filter code
- WithingsSleep.nightactivityavailable.SleepScore
- Type
- String
- Example
- 100
Snoring durationTotal snoring duration of your latest sleep data (in seconds)
- Slug
- snoring_duration
- Filter code
- WithingsSleep.nightactivityavailable.SnoringDuration
- Type
- String
- Example
- 1800
Snoring episodes countNumber of snoring episodes that occurred during your latest sleep data (in seconds)
- Slug
- snoring_count
- Filter code
- WithingsSleep.nightactivityavailable.SnoringEpisodesCount
- Type
- String
- Example
- 8
Heart rate averageAverage measured heart rate during your latest sleep data
- Slug
- hr_average
- Filter code
- WithingsSleep.nightactivityavailable.HeartRateAverage
- Type
- String
- Example
- 54
Awake durationTotal awake duration of your latest sleep data (in seconds)
- Slug
- wakeup_duration
- Filter code
- WithingsSleep.nightactivityavailable.AwakeDuration
- Type
- String
- Example
- 1200
Status sleep scoreSleep Score status of your latest sleep data
- Slug
- status_sleep_score
- Filter code
- WithingsSleep.nightactivityavailable.StatusSleepScore
- Type
- String
- Example
- Restful night
Status regularityRegularity status of your latest sleep data
- Slug
- status_regularity
- Filter code
- WithingsSleep.nightactivityavailable.StatusRegularity
- Type
- String
- Example
- Average
Status recoveryRecovery status of your latest sleep data
- Slug
- status_recovery
- Filter code
- WithingsSleep.nightactivityavailable.StatusRecovery
- Type
- String
- Example
- Average
Nb interruptionsNumber of interruptions that occured during your latest sleep data
- Slug
- wakeup_count
- Filter code
- WithingsSleep.nightactivityavailable.NbInterruptions
- Type
- String
- Example
- 4
Time to sleepTime to fall asleep of your latest sleep data
- Slug
- duration_to_sleep
- Filter code
- WithingsSleep.nightactivityavailable.TimeToSleep
- Type
- String
- Example
- 720
Time to get upTime to get up of your latest sleep data
- Slug
- duration_to_wakeup
- Filter code
- WithingsSleep.nightactivityavailable.TimeToGetUp
- Type
- String
- Example
- 720