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 every time you log sleep above the target hours you specify.
- 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