Explore Plans
Mobile menu Close menu
FitbitFitbit

Sleep duration above

This Trigger fires every time you log sleep above the target hours you specify.

Developer info

API endpoint slug
fitbit.sleep-duration-above

Trigger fields

Target hours Text input > Regular expression

Label
Target hours
Helper text
e.g. 7.5
Slug
target_hours
Required
true
Can have default value
true

Ingredients

Total time sleptThe total time you slept

Slug
TotalTimeSlept
Filter code
Fitbit.sleepDurationAbove.TotalTimeSlept
Type
String
Example
8h 0m

Total time slept in secondsThe total time you slept in seconds

Slug
TotalTimeSleptInSeconds
Filter code
Fitbit.sleepDurationAbove.TotalTimeSleptInSeconds
Type
String
Example
28800

Date awokenDay when you awoke

Slug
DateAwoken
Filter code
Fitbit.sleepDurationAbove.DateAwoken
Type
Date (ISO8601)
Example
2020-07-07