Back
Withings Sleep When I get into bed. myStrom Set scene. WiZ Turn off the light. Philips Hue Turn off lights.

Turn off all smart lights when you get into bed

Connect

How this automation works

Automate your bedtime routine by turning off your smart lights as soon as you get into bed. This runs whenever your Withings Sleep detects you’ve gone to bed and triggers your myStrom, WiZ, and Philips Hue lights to power down. Perfect for creating a calm sleeping environment and saving energy throughout the night.

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
myStrom 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 execute predefined Scene.
id
And
WiZ 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 the selected light(s).
entity
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
WiZ 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 the selected light(s).
entity

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.

37 triggers, queries, and actions

Button - Pressed

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 when Button is pressed.

Button Plus - Humidity

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.
IFTTT will react to humidity alarm set up for selected Button Plus in native myStrom app

Button Plus - Temperature

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.
IFTTT will react to temperature alarm set up for selected Button Plus in native myStrom app

Export my last sleep data

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 once your last sleep data is ready for exportation.

Sensor - Brightness

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 brightness threshold is crossed.

Sensor - Motion

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 Motion Sensor detects movement.

Sensor - Temp

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 temperature threshold is crossed.

Switch - Consumption

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 Switch has power usage above or below certain threshold.

Switch - ON/OFF

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 Switch toggles state to ON or OFF.

When I get into bed

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.

When I get out of bed

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

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 Button presses

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 your Button was pressed.

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.

Activate a scene

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 apply the settings of the selected scene to your WiZ lights.

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.

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 myStrom WiFi 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.

Change to random 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 your hue lights to a randomly selected color. NOTE: not compatible with hue lux bulbs.

Dim / Brighten the light

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 dim / brighten the selected light(s) by the step of your choice. Ideal for your smart remotes, connected buttons, widgets and much more!

Dim 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 dim or brighten your hue lights to a value between 0-100.

myStrom device 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 turn OFF one of your myStrom devices.

myStrom device 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 turn ON one of your myStrom devices.

Pulse the light

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 make the selected light(s) pulse gently once.

Set a scene in a room

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

Activate a scene

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 apply the settings of the selected scene to your WiZ lights.

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.

Button - Pressed

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 when Button is pressed.

Button Plus - Humidity

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.
IFTTT will react to humidity alarm set up for selected Button Plus in native myStrom app

Button Plus - Temperature

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.
IFTTT will react to temperature alarm set up for selected Button Plus in native myStrom app

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 myStrom WiFi 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.

Change to random 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 your hue lights to a randomly selected color. NOTE: not compatible with hue lux bulbs.

Dim / Brighten the light

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 dim / brighten the selected light(s) by the step of your choice. Ideal for your smart remotes, connected buttons, widgets and much more!

Dim 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 dim or brighten your hue lights to a value between 0-100.

Export my last sleep data

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 once your last sleep data is ready for exportation.

Build an automation in seconds!

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

More on these services

About myStrom

myStrom Smart Home products make you save energy, set the lights to suit your mood and lets you keep an eye on your home. Simple and easy.

Explore myStrom

More integrations with myStrom

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 WiZ

The ultimate light experience -- plug-and-play smart lighting set up on your Wi-Fi network. No bridge, no hubs, no gateway required. Our lights connect to the cloud to provide the best ambiance to see, read and live. Enjoy a healthier lifestyle, get more done and make your home look amazing.

Explore WiZ

More integrations with WiZ

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