If Withing's sleep sensor detects you get into bed, then turn off Bedroom Lamp
Connect top workflows
Quickly and easily enable Applets using Withings Sleep and TP-Link Kasa.Build your own Withings Sleep and TP-Link Kasa automations
Triggers (If this)
-
Export my last sleep data
This trigger fires once your last sleep data is ready for exportation.
-
When I get into bed
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
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.

Export my last sleep data
This trigger fires once your last sleep data is ready for exportation.

When I get into bed
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
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.
Queries (With)
-
History of my sleep data exports
This query returns a list of instances of when your sleep data was exported.
-
History of when I get out of bed
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.
-
History of when I get into bed
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 my sleep data exports
This query returns a list of instances of when your sleep data was exported.

History of when I get out of bed
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.

History of when I get into bed
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.
Actions (Then that)
-
Turn on
This action will turn on a device.
-
Set speed level
This action will set speed level of devices such as fans.
-
Turn off
This action will turn off a selected device.
-
Toggle
This action will toggle a device.
-
Activate scene
This action will activate a selected Scene from your account.
-
Change brightness
This action will change the brightness of a light bulb.
-
Change color
This action will change the color of a light bulb.
-
Change color temperature
This action will change the color temperature of a light bulb.

Turn on
This action will turn on a device.

Set speed level
This action will set speed level of devices such as fans.

Turn off
This action will turn off a selected device.

Toggle
This action will toggle a device.

Activate scene
This action will activate a selected Scene from your account.

Change brightness
This action will change the brightness of a light bulb.

Change color
This action will change the color of a light bulb.

Change color temperature
This action will change the color temperature of a light bulb.
How to connect Withings Sleep and TP-Link Kasa
Find or create an Applet
Start by discovering an automation to connect or customizing your own. It's quick and easy.Connect IFTTT to your accounts
Securely connect your Withings Sleep and TP-Link Kasa accounts.Finalize and customize your Applet
Review your trigger and action settings. Your Applet is ready to go!
IFTTT helps all your apps and devices work better together