Back
Google Docs New document added. Yeelight Set scene.

Set Yeelight scene when a new Google Docs file is added

Connect

How this automation works

Automate your smart lighting by activating a Yeelight scene whenever new content is added to your Google Drive. This Applet runs when a new Google Docs document appears in a selected folder and updates your lights accordingly. Perfect for staying focused, signaling task completion, or creating an ambient workspace that reacts to your files.

If
Google Docs 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 when a new document is added to a Google Drive folder. Note: only works for docs created after the Applet is turned on.
CreatedAt DocumentUrl Name Path Body BodyHtml
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 set your lights to a pre-defined scene.
bundle_id

Services used in this Applet

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

14 triggers, queries, and actions

New document added

Pro 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 when a new document is added to a Google Drive folder. Note: only works for docs created after the Applet is turned on.

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 documents added

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 new documents were added to a Google Drive folder.

Append to a document

Pro 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 add to a Google document as determined by the file name and folder path you specify. Once a file’s size reaches 2MB a new file will be created.

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.

Create a document

Pro 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 create a new Google document at the path you specify.

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.

Append to a document

Pro 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 add to a Google document as determined by the file name and folder path you specify. Once a file’s size reaches 2MB a new file will be created.

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.

Create a document

Pro 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 create a new Google document at the path you specify.

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 documents added

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 new documents were added to a Google Drive folder.

New document added

Pro 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 when a new document is added to a Google Drive folder. Note: only works for docs created after the Applet is turned on.

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.

Build an automation in seconds!

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

More on Google Docs and Yeelight

About Google Docs

Google Docs brings your documents to life with smart editing and styling tools to help you easily format text and paragraphs. Applets let you create new documents, add to existing ones, or monitor specific folders for when new docs are added.

Explore Google Docs

More integrations with Google Docs

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