Explore Plans
Mobile menu Close menu
Google Health

Sleep duration below a target

This trigger fires every time you log sleep below the target hours you specify.

Developer info

API endpoint slug
google_health.sleep_duration_below

Trigger fields

Target hours Text input > Regular expression

Label
Target hours
Helper text
How many hours of sleep to use as your target, e.g. 7.5
Slug
target_hours
Required
true
Can have default value
true

Ingredients

Total time slept The total time you slept

Slug
total_time_slept
Filter code
GoogleHealth.sleepDurationBelow.TotalTimeSlept
Type
String
Example
8 hours 12 minutes

Total time slept in seconds The total time you slept, in seconds

Slug
total_time_slept_in_seconds
Filter code
GoogleHealth.sleepDurationBelow.TotalTimeSleptInSeconds
Type
String
Example
29520

Date awoken The date the sleep session ended

Slug
date_awoken
Filter code
GoogleHealth.sleepDurationBelow.DateAwoken
Type
Date (ISO8601)
Example
2020-07-07