Back
Fitbit New sleep logged. X (Twitter) Post a tweet. Notifications Send a notification from the IFTTT app. SwitchBot シーン.

Post a tweet, activate a SwitchBot scene, and send a notification when new Fitbit sleep is logged

Connect

How this automation works

Automatically share your sleep update, start your morning scene, and get a confirmation when your Fitbit logs new sleep data. This Applet runs whenever new sleep is recorded on your Fitbit, posting to X (Twitter), activating a SwitchBot scene, and notifying you via the IFTTT app. Ideal for those who track their sleep and want to automate morning routines with Fitbit, SwitchBot, and Twitter. Note: Install the IFTTT app on the device(s) where you want to receive notifications.

If
Fitbit 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 your Fitbit logs new sleep.
TimeToLeaveBedSeconds TotalTimeSlept RestlessCount TotalTimeSleptInSeconds TimeToFallAsleep TimeAwake TimeAwakeSeconds AwakeCount FellAsleepAt TimeToFallAsleepSeconds TimeToLeaveBed AwokeAt
Then
X (Twitter) 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 will post a new tweet to your Twitter account. NOTE: Please adhere to Twitter’s Rules and Terms of Service. Affiliate URLs are not supported in Tweet text and will result in an Action error.
tweet
And
SwitchBot 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.
SwitchBot アプリで作成したシーンを実行します。(ご注意:手動実行するシーンのみ)
scene_name
And
Notifications 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 will send a notification to your devices from the IFTTT app.
message high_priority

Create your own 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.

136 triggers, queries, and actions

Carbon dioxide changes

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.
Whenever a preset carbon dioxide change detected, SwitchBot meter pro will try to trigger the service. E.g. if the carbon dioxide is too high, turn on SwitchBot air purifier.

Contact and Motion Detection

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.
When Contact Sensor detected door/window opened or closed or left open, the SwitchBot contact sensor will try to trigger the service.

Daily activity summary

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 your Fitbit tracker syncs for the first time today and your previous day's stats are available.

Daily calorie burn goal achieved

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 when you achieve your daily calorie burn goal.

Daily distance goal achieved

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 you achieve your daily distance goal.

Daily floors climbed goal achieved

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 you achieve your daily floors climbed goal. NOTE: only available for Fitbit Ultra and One.

Daily goal not achieved by __:__

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 you do not achieve a daily goal you choose at the time you specify. NOTE: Updated on the first Fitbit tracker sync after the time you specify.

Daily step goal achieved

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 you achieve your daily step goal.

Daily very active minutes goal achieved

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 you achieve your daily very active minutes goal.

Hub 2's touch buttons pressed

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 when one of the touch buttons of your Hub 2 is pressed. E.g. when the left touch button is pressed, turn on SwitchBot Color Bulb.

Lock status changed

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 when the status of your SwitchBot Lock is changed.

Motion detected or no motion detected

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.
When Motion Sensor detected motion or no motion, the SwitchBot motion sensor will try to trigger the service.

History of achieved very active minutes goals

Pro plus icon
Query
A query lets your Applet retrieve extra data that isn't included in the trigger, so that your automation can include more complete or useful information.
This query returns a list of events when you achieved your very active minute goals.

History of Daily Activity Summaries

Pro plus icon
Query
A query lets your Applet retrieve extra data that isn't included in the trigger, so that your automation can include more complete or useful information.
This query returns a list of Daily Activity Summary events from your Fitbit.

History of daily calorie burn goal achieved

Pro plus icon
Query
A query lets your Applet retrieve extra data that isn't included in the trigger, so that your automation can include more complete or useful information.
This query returns a list of when you achieve your daily calorie burn goal.

History of daily floors climbed goal achieved

Pro plus icon
Query
A query lets your Applet retrieve extra data that isn't included in the trigger, so that your automation can include more complete or useful information.
This query returns a list of when you achieve your daily floors climbed goal. NOTE: only available for Fitbit Ultra and One.

History of daily goal not being achieved by __:__

Pro plus icon
Query
A query lets your Applet retrieve extra data that isn't included in the trigger, so that your automation can include more complete or useful information.
This query returns a list of when you did not achieve a daily goal you chose by the time you specified. NOTE: Updated on the first Fitbit tracker sync after the time you specified.

History of daily step goal achieved

Pro plus icon
Query
A query lets your Applet retrieve extra data that isn't included in the trigger, so that your automation can include more complete or useful information.
This query returns a list of when you achieve your daily step goal.

History of Sleep duration above threshold

Pro plus icon
Query
A query lets your Applet retrieve extra data that isn't included in the trigger, so that your automation can include more complete or useful information.
This query returns a list of events when you logged sleep above the target hours you specified. Note: this query will only return future events after this Applet is created.

History of sleep duration below

Pro plus icon
Query
A query lets your Applet retrieve extra data that isn't included in the trigger, so that your automation can include more complete or useful information.
This query returns a list of when you log sleep below the target hours you specify. Note: this query will only return future events after this Applet is created.

History of sleep logged

Pro plus icon
Query
A query lets your Applet retrieve extra data that isn't included in the trigger, so that your automation can include more complete or useful information.
This query returns a list of when your Fitbit logs new sleep.

History of weight logged

Pro plus icon
Query
A query lets your Applet retrieve extra data that isn't included in the trigger, so that your automation can include more complete or useful information.
This query returns a list of when you logged your weight in the Fitbit app or with the Aria scale.

History of when the daily distance goal was achieved

Pro plus icon
Query
A query lets your Applet retrieve extra data that isn't included in the trigger, so that your automation can include more complete or useful information.
This query returns a list of when you have achieved your daily distance goal.

Back to base station

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.
The platform will back to base station

Bot press

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 will trigger the specified Bot to press the switch.

Bot turn off

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 will trigger the specified Bot to turn off the switch.

Bot turn on

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 will trigger the specified Bot to turn on the switch.

Bulb Brightness

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.
You can set the brightness of your Color Bulb here.

Bulb Color

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.
You can set the color of your Color Bulb here.

Bulb Color Temperature

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.
You can set the color temperature of your Color bulb here.

Bulb Presets

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.
You can set the presets saved in your SwitchBot app here.

Ceiling Light Brightness

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.
You can set the brightness of your Ceiling Light here.

Ceiling Light Color Temperature

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.
You can set the color temperature of your Ceiling Light here.

Change water output for mopping

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.
Change water output for mopping

Control Air Purifier

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 will control the SwitchBot Air Purifier.

Back to base station

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.
The platform will back to base station

Bot press

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 will trigger the specified Bot to press the switch.

Bot turn off

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 will trigger the specified Bot to turn off the switch.

Bot turn on

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 will trigger the specified Bot to turn on the switch.

Bulb Brightness

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.
You can set the brightness of your Color Bulb here.

Bulb Color

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.
You can set the color of your Color Bulb here.

Bulb Color Temperature

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.
You can set the color temperature of your Color bulb here.

Bulb Presets

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.
You can set the presets saved in your SwitchBot app here.

Carbon dioxide changes

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.
Whenever a preset carbon dioxide change detected, SwitchBot meter pro will try to trigger the service. E.g. if the carbon dioxide is too high, turn on SwitchBot air purifier.

Ceiling Light Brightness

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.
You can set the brightness of your Ceiling Light here.

Ceiling Light Color Temperature

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.
You can set the color temperature of your Ceiling Light here.

Change water output for mopping

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.
Change water output for mopping

Build an automation in seconds!

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

More on these services

About X (Twitter)

X (Twitter) Applets can help you manage and save tweets, keep an eye on #hashtags, and much more.

Explore X (Twitter)

More integrations with X (Twitter)

About Fitbit

Fitbit designs products to track everyday health and fitness, empowering and inspiring people to lead healthier, more active lives. Turn on Applets to track your fitness and sleep goals, build healthier habits, and sync your fitness data to hundreds of other services.

Explore Fitbit

More integrations with Fitbit

About Notifications

Notifications work seamlessly on any Android or iOS device with the IFTTT app installed. Get the information you want, when you want it.

Explore Notifications

More integrations with Notifications

About SwitchBot

SwitchBot is your simple switch to a smart home. Thousands of IFTTT users are enjoying our button presser that mechanically turns any rocker switch and button on and off. Now we have Hub, Thermometer and Hygrometer, Smart Fan and more. Learn more by pressing the Buy link above.

Explore SwitchBot

More integrations with SwitchBot

IFTTT helps all your apps and devices work better together

Get started for free