Explore Plans
Mobile menu Close menu
Google Health

New sleep logged

This trigger fires every time new sleep is logged in Google Health.

Developer info

API endpoint slug
google_health.new_sleep_logged

Trigger fields

No fields for this trigger

Ingredients

Fell asleep at The date and time you fell asleep, localized to your Google Health timezone

Slug
fell_asleep_at
Filter code
GoogleHealth.newSleepLogged.FellAsleepAt
Type
Date with time (ISO8601)
Example
2020-07-08T04:17:06+05:00

Awoke at The date and time you woke up, localized to your Google Health timezone

Slug
awoke_at
Filter code
GoogleHealth.newSleepLogged.AwokeAt
Type
Date with time (ISO8601)
Example
2020-07-08T04:17:06+05:00

Total time slept The total time you slept

Slug
total_time_slept
Filter code
GoogleHealth.newSleepLogged.TotalTimeSlept
Type
String
Example
8 hours

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

Slug
total_time_slept_in_seconds
Filter code
GoogleHealth.newSleepLogged.TotalTimeSleptInSeconds
Type
String
Example
28800

Time to fall asleep Number of minutes before falling asleep

Slug
time_to_fall_asleep
Filter code
GoogleHealth.newSleepLogged.TimeToFallAsleep
Type
String
Example
7 minutes

Time to fall asleep seconds Number of seconds before falling asleep

Slug
time_to_fall_asleep_seconds
Filter code
GoogleHealth.newSleepLogged.TimeToFallAsleepSeconds
Type
String
Example
420

Time awake The time spent awake

Slug
time_awake
Filter code
GoogleHealth.newSleepLogged.TimeAwake
Type
String
Example
30 minutes

Time awake seconds The time spent awake, in seconds

Slug
time_awake_seconds
Filter code
GoogleHealth.newSleepLogged.TimeAwakeSeconds
Type
String
Example
1800

Time to leave bed The time spent in bed after awaking

Slug
time_to_leave_bed
Filter code
GoogleHealth.newSleepLogged.TimeToLeaveBed
Type
String
Example
10 minutes

Time to leave bed seconds The time spent in bed after awaking, in seconds

Slug
time_to_leave_bed_seconds
Filter code
GoogleHealth.newSleepLogged.TimeToLeaveBedSeconds
Type
String
Example
600

Awake count Number of moments you were awake while trying to sleep

Slug
awake_count
Filter code
GoogleHealth.newSleepLogged.AwakeCount
Type
String
Example
2

Restless count Number of moments you were restless while sleeping

Slug
restless_count
Filter code
GoogleHealth.newSleepLogged.RestlessCount
Type
String
Example
4

Deep sleep minutes Minutes of deep sleep

Slug
deep_sleep_minutes
Filter code
GoogleHealth.newSleepLogged.DeepSleepMinutes
Type
String
Example
95

Rem sleep minutes Minutes of REM sleep

Slug
rem_sleep_minutes
Filter code
GoogleHealth.newSleepLogged.RemSleepMinutes
Type
String
Example
110

Light sleep minutes Minutes of light sleep

Slug
light_sleep_minutes
Filter code
GoogleHealth.newSleepLogged.LightSleepMinutes
Type
String
Example
275