Back
Google Assistant Activate scene. iOS Health Log sleep.

Log iOS Health sleep when you activate a Google Assistant scene

Connect

How this automation works

Track your sleep automatically with a voice command. This Applet runs when you say a scene name to Google Assistant and logs your sleep to Apple Health on your iPhone. Great for creating a nighttime routine or maintaining healthy sleep habits.

If
Google Assistant icon
Realtime trigger
Realtime Applets run after the trigger service notifies IFTTT of a new trigger event. Since IFTTT is notified proactively of new trigger events, realtime Applets normally run within a few seconds of a trigger event occurring.
This Trigger activates a named scene when you say "Ok Google, activate [Scene Name]".
SceneName ActivatedAt
Then
iOS Health icon
Action
An action is the task your Applet carries out after the trigger occurs. It defines what happens as the result of your automation and completes the workflow.
This action logs sleep to your iPhone's Health app.
sleep_duration asleep_at date_sleep_ended

Services used in this Applet

Create your own iOS Health and Google Assistant workflow

Create custom workflows effortlessly by selecting triggers, queries, and actions. With IFTTT, it's simple: “If this” trigger happens, “then that” action follows. Streamline tasks and save time with automated workflows that work for you.

5 triggers, queries, and actions

Activate scene

Realtime trigger
Realtime Applets run after the trigger service notifies IFTTT of a new trigger event. Since IFTTT is notified proactively of new trigger events, realtime Applets normally run within a few seconds of a trigger event occurring.
This Trigger activates a named scene when you say "Ok Google, activate [Scene Name]".

Log calories consumed

Action
An action is the task your Applet carries out after the trigger occurs. It defines what happens as the result of your automation and completes the workflow.
This action logs calories consumed to your iPhone's Health app.

Log sleep

Action
An action is the task your Applet carries out after the trigger occurs. It defines what happens as the result of your automation and completes the workflow.
This action logs sleep to your iPhone's Health app.

Log weight

Action
An action is the task your Applet carries out after the trigger occurs. It defines what happens as the result of your automation and completes the workflow.
This action logs body mass in pounds or kilograms to your iPhone's Health app.

Log workout

Action
An action is the task your Applet carries out after the trigger occurs. It defines what happens as the result of your automation and completes the workflow.
This action logs a workout to your iPhone's Health app. Choose the type of activity, calories burned, duration, and more to customize your workouts.

Activate scene

Realtime trigger
Realtime Applets run after the trigger service notifies IFTTT of a new trigger event. Since IFTTT is notified proactively of new trigger events, realtime Applets normally run within a few seconds of a trigger event occurring.
This Trigger activates a named scene when you say "Ok Google, activate [Scene Name]".

Log calories consumed

Action
An action is the task your Applet carries out after the trigger occurs. It defines what happens as the result of your automation and completes the workflow.
This action logs calories consumed to your iPhone's Health app.

Log sleep

Action
An action is the task your Applet carries out after the trigger occurs. It defines what happens as the result of your automation and completes the workflow.
This action logs sleep to your iPhone's Health app.

Log weight

Action
An action is the task your Applet carries out after the trigger occurs. It defines what happens as the result of your automation and completes the workflow.
This action logs body mass in pounds or kilograms to your iPhone's Health app.

Log workout

Action
An action is the task your Applet carries out after the trigger occurs. It defines what happens as the result of your automation and completes the workflow.
This action logs a workout to your iPhone's Health app. Choose the type of activity, calories burned, duration, and more to customize your workouts.

Build an automation in seconds!

You can add delays, queries, and more actions in the next step!

More on iOS Health and Google Assistant

About iOS Health

The iPhone's Health app consolidates health data from iPhone, Apple Watch, Apple Health, and other apps so you can track your progress in one convenient place. This service requires the IFTTT app for iOS.

Explore iOS Health

More integrations with iOS Health

About Google Assistant

Create custom voice commands for your Google Assistant. Available on Android, iOS and Google Home devices. Get more details here.

Explore Google Assistant

More integrations with Google Assistant

IFTTT helps all your apps and devices work better together

Get started for free