Back
Withings Sleep When I get into bed. SmartThings Switch off. TP-Link Tapo Activate Shortcut. Philips Hue Turn off lights.

Turn off smart devices when you get into bed

Connect

How this automation works

Automate your bedtime routine by turning off lights, devices, and activating scenes when you get into bed. This Applet runs when your Withings Sleep detects that you’ve gone to bed within your chosen time range, triggering connected SmartThings, Philips Hue, and TP-Link Tapo devices to power down or set the perfect scene. Ideal for creating a calm, energy-saving sleep environment across your smart home.

If
Withings Sleep 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 fires every time your Withings Sleep detects that you get into bed, within the start and end time parameters that you specify.
DeviceUser DateandTime
Then
SmartThings 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 turn off your SmartThings devices that support switching off.
device
And
Philips Hue 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 turn off your hue lights.
lights
And
TP-Link Tapo 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 activate a shortcut.
shortcutid
And
Philips Hue 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 well set a scene on your hue lights. NOTE: in order to add lights to a room, you must be using the newest version of the Hue app
scene
And
TP-Link Tapo 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 turn off a device.
device_name
And
TP-Link Tapo 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 turn off a device.
device_name

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.

132 triggers, queries, and actions

Any new motion

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 fires every time your SmartThings device senses motion.

Brightness drops below

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 fires every time the your SmartThings device detects brightness below a value you specify.

Brightness rises above

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 fires every time the your SmartThings device detects brightness above a value you specify.

Camera Area Intrusion 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.
This triggers fires every time the camera detects a area intrusion motion.

Camera Baby Cry 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.
This triggers fires every time the camera detects a baby cry motion.

Camera Deliver Package 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.
This triggers fires every time the camera detects a motion of delivering a package.

Camera Glass Breaking 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.
This triggers fires every time the camera detects a glass breaking motion.

Camera Line Crossing 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.
This triggers fires every time the camera detects a line crossing motion.

Camera Meow 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.
This triggers fires every time the camera detects meows.

Camera Motion Baby Asleep

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 triggers fires every time the camera detects baby asleep.

Camera Motion Baby Awake

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 triggers fires every time the camera detects baby awake.

Camera Motion Baby Face Coverd

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 triggers fires every time the camera detects baby face coverd.

Get Lights

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 all lights of the bridge.

History of my sleep data exports

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 instances of when your sleep data was exported.

History of when I get into bed

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 Withings Sleep detects that you get into bed, within the start and end time parameters that you specify.

History of when I get out of bed

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 Withings Sleep detects that you get out of bed, within the start and end time parameters that you specify.

Query Color

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 the color of the light bulb.

Query Device Status

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 the status of the device.

Query Hub Alarm Status

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 the status of the hub alarm.

Query Lock Status

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 the status of the Lock.

Activate Shortcut

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 activate a shortcut.

Activate siren/strobe

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 activate your SmartThings alerting device's siren and/or strobe.

Blink lights

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 briefly turn your hue lights off then back on.

Camera Floodlight

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 change the status of floodlight of the device.

Camera Patrol

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 change the status of patrol of the camera.

Camera Privacy Mode

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 change the status of the privacy mode of the device.

Camera Sound Alarm

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 camera to alarm for specified time.

Camera Target Track

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 change the status of target track of the camera.

Change 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.
This action will change the brightness of a light bulb.

Change 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.
This action will change the color of a light bulb.

Change 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.
This Action will change the color of your hue lights. NOTE: Accepts color names and CSS hex color values. Defaults to white if no color match is found. NOTE: not compatible with hue lux bulbs.

Change color from image

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 change the color of your hue lights to match the dominant colors found in an image you specify. NOTE: not compatible with hue lux bulbs.

Activate Shortcut

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 activate a shortcut.

Activate siren/strobe

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 activate your SmartThings alerting device's siren and/or strobe.

Any new motion

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 fires every time your SmartThings device senses motion.

Blink lights

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 briefly turn your hue lights off then back on.

Brightness drops below

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 fires every time the your SmartThings device detects brightness below a value you specify.

Brightness rises above

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 fires every time the your SmartThings device detects brightness above a value you specify.

Camera Area Intrusion 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.
This triggers fires every time the camera detects a area intrusion motion.

Camera Baby Cry 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.
This triggers fires every time the camera detects a baby cry motion.

Camera Deliver Package 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.
This triggers fires every time the camera detects a motion of delivering a package.

Camera Floodlight

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 change the status of floodlight of the device.

Camera Glass Breaking 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.
This triggers fires every time the camera detects a glass breaking motion.

Camera Line Crossing 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.
This triggers fires every time the camera detects a line crossing motion.

Build an automation in seconds!

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

More on these services

About Withings Sleep

Withings Sleep is a sleep sensor that tracks heart rate, sleep cycles and features snoring detection. Improve your sleep environment by using applets to lower the room temperature when you get into bed, turn on the lights when you get out of bed, and more.

Explore Withings Sleep

More integrations with Withings Sleep

About SmartThings

SmartThings unlocks a new world of possibilities by letting you use your smartphone to control locks, lights, electronics, and the everyday things around you—wherever you are.

Explore SmartThings

More integrations with SmartThings

About TP-Link Tapo

Tapo is a smart home system that includes Tapo Smart Plugs, Smart Bulbs, Smart Switches and more. It works with other leading smart home products such as Amazon Echo, Google Home, and HomePod. Now with IFTTT, you can also create personalized Applets that trigger automatic actions on your Tapo devices.

Explore TP-Link Tapo

More integrations with TP-Link Tapo

About Philips Hue

Philips Hue connected bulbs and bridge let you to take full control of your lighting. Whatever you want to do with your lighting, Hue can.

Explore Philips Hue

More integrations with Philips Hue

IFTTT helps all your apps and devices work better together

Get started for free