Back
iotty Smart Home Smart Switch turned on/off/pressed. Yeelight Toggle lights on/off.

Toggle Yeelight lights when your iotty Smart Switch changes state

Connect

How this automation works

Control your Yeelight lights automatically with your iotty Smart Switch. This Applet runs when your iotty device is turned on, off, or pressed to toggle the connected Yeelight lights accordingly. Perfect for seamless smart home lighting control across your connected devices.

If
iotty Smart Home 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 when one of your iotty Smart Switch devices is turned on or off, or it is pressed (when its Gang Type on the iotty app is set as 'Gate').
Source DeviceName CreatedAt LightState
Then
Yeelight 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 on, turn off or toggle your lights.
device_id on_off_option

Services used in this Applet

Create your own iotty Smart Home and Yeelight 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.

17 triggers, queries, and actions

Smart Outlet turned on or 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 one of your iotty Smart Outlet devices is turned on or off.

Smart Shades Switch open or closed

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 your iotty Smart Shades Switch devices is completely opened or closed.

Smart Switch turned on/off/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 one of your iotty Smart Switch devices is turned on or off, or it is pressed (when its Gang Type on the iotty app is set as 'Gate').

Current brightness value

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 brightness of the device you choose

Current color temperature value

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 temperature value of the device you choose

Current color value

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 value of the device you choose

Current power state

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 on/off state of the device you choose

History of Smart Outlet ons or offs

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 one of your iotty Smart Outlet devices was turned on or off.

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 your light's brightness to the specified level.

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 your lights to a specified color.

Change 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.
This Action will change your lights to specified color temperature.

Open/close a Smart Shades Switch

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 sends a command to one of your iotty Smart Shades Switches. The selected movement accuracy will be based on the calibration given to the device. You can change it from device settings on the iotty App: Update Shades calibration.

Set 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 set your lights to a specified brightness.

Set 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 set your lights to a pre-defined scene.

Toggle lights on/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 on, turn off or toggle your lights.

Turn on/off a Smart Outlet

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 sends a command to one of your iotty Smart Outlets.

Turn on/off/press a Smart Switch

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 sends a command to one of your iotty Smart Switches.

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 your light's brightness to the specified level.

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 your lights to a specified color.

Change 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.
This Action will change your lights to specified color temperature.

Current brightness value

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 brightness of the device you choose

Current color temperature value

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 temperature value of the device you choose

Current color value

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 value of the device you choose

Current power state

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 on/off state of the device you choose

History of Smart Outlet ons or offs

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 one of your iotty Smart Outlet devices was turned on or off.

Open/close a Smart Shades Switch

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 sends a command to one of your iotty Smart Shades Switches. The selected movement accuracy will be based on the calibration given to the device. You can change it from device settings on the iotty App: Update Shades calibration.

Set 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 set your lights to a specified brightness.

Set 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 set your lights to a pre-defined scene.

Smart Outlet turned on or 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 one of your iotty Smart Outlet devices is turned on or off.

Build an automation in seconds!

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

More on iotty Smart Home and Yeelight

About iotty Smart Home

Iotty is an Italian company specializing in design-driven Wi-Fi-enabled light switches and smart outlets. Environmentally conscious and effortlessly stylish, Iotty transforms the way you experience your home, proving that innovation and design go hand in hand.

Explore iotty Smart Home

More integrations with iotty Smart Home

About Yeelight

Yeelight service will let you connect and automate your bulbs and lamps. Just enjoy the fun of lights.

Explore Yeelight

More integrations with Yeelight

IFTTT helps all your apps and devices work better together

Get started for free