Back
iOS Calendar New event added from search. iOS Health Log sleep.

Log sleep in iOS Health when new calendar event added

Connect

How this automation works

Track your sleep automatically using your iPhone's Health app. This Applet runs when a new event containing your chosen keyword (like “Sleep”) is added to your iOS Calendar, logging a sleep session using its start and end times. It's perfect for anyone who schedules sleep routines or bedtime reminders in Calendar and wants accurate Health tracking.

If
iOS Calendar icon
Polling trigger
Polling Applets run after IFTTT reaches out to the trigger service and finds a new trigger event. These trigger checks occur every 5 minutes for Pro and Pro+ users, and every hour for Free users.
This trigger fires every time a new event is added to any of your calendars that contains a specific keyword or phrase. The search looks at all of the attributes associated with an event, including title, location, notes, and invitees.
Invitees Notes Title Organizer StartDate Location URL CalendarName EndDate DateCreated
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 Calendar and iOS Health 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.

8 triggers, queries, and actions

New event added from search

Polling trigger
Polling Applets run after IFTTT reaches out to the trigger service and finds a new trigger event. These trigger checks occur every 5 minutes for Pro and Pro+ users, and every hour for Free users.
This trigger fires every time a new event is added to any of your calendars that contains a specific keyword or phrase. The search looks at all of the attributes associated with an event, including title, location, notes, and invitees.

New event added to any calendar

Polling trigger
Polling Applets run after IFTTT reaches out to the trigger service and finds a new trigger event. These trigger checks occur every 5 minutes for Pro and Pro+ users, and every hour for Free users.
This trigger fires every time a new event is added to any of your calendars.

New event added to specific calendar

Polling trigger
Polling Applets run after IFTTT reaches out to the trigger service and finds a new trigger event. These trigger checks occur every 5 minutes for Pro and Pro+ users, and every hour for Free users.
This trigger fires every time a new event is added to the calendar that you specify.

Create a calendar event

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 creates a new event in the calendar you specify.

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.

Create a calendar event

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 creates a new event in the calendar you specify.

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.

New event added from search

Polling trigger
Polling Applets run after IFTTT reaches out to the trigger service and finds a new trigger event. These trigger checks occur every 5 minutes for Pro and Pro+ users, and every hour for Free users.
This trigger fires every time a new event is added to any of your calendars that contains a specific keyword or phrase. The search looks at all of the attributes associated with an event, including title, location, notes, and invitees.

New event added to any calendar

Polling trigger
Polling Applets run after IFTTT reaches out to the trigger service and finds a new trigger event. These trigger checks occur every 5 minutes for Pro and Pro+ users, and every hour for Free users.
This trigger fires every time a new event is added to any of your calendars.

New event added to specific calendar

Polling trigger
Polling Applets run after IFTTT reaches out to the trigger service and finds a new trigger event. These trigger checks occur every 5 minutes for Pro and Pro+ users, and every hour for Free users.
This trigger fires every time a new event is added to the calendar that you specify.

Build an automation in seconds!

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

More on iOS Calendar and iOS Health

About iOS Calendar

iOS Calendar makes setting up and sharing your events easy. Keep your calendar information up to date across multiple devices, including iPhone, iPad, and your laptop. This service requires the IFTTT app v3.2.0 or above.

Explore iOS Calendar

More integrations with iOS Calendar

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

IFTTT helps all your apps and devices work better together

Get started for free