OneDrive to SwitchBot integrations Automate your workflows between OneDrive and SwitchBot with IFTTT.

Create your own OneDrive and SwitchBot 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.

113 triggers, queries, and actions

Carbon dioxide changes

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.
Whenever a preset carbon dioxide change detected, SwitchBot meter pro will try to trigger the service. E.g. if the carbon dioxide is too high, turn on SwitchBot air purifier.

Contact and Motion Detection

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.
When Contact Sensor detected door/window opened or closed or left open, the SwitchBot contact sensor will try to trigger the service.

Hub 2's touch buttons pressed

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 the touch buttons of your Hub 2 is pressed. E.g. when the left touch button is pressed, turn on SwitchBot Color Bulb.

Lock status changed

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 the status of your SwitchBot Lock is changed.

Motion detected or no motion 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.
When Motion Sensor detected motion or no motion, the SwitchBot motion sensor will try to trigger the service.

New file in folder

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 every time a new file is created in the folder you specify.

New file matching regex in folder

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 every time a new file whose filename matches the regular expression you specify is added to the folder you specify

New file matching search in folder

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 every time a new file whose filename or file contents contains the words you specify is added to the folder you specify

New file or folder shared with me

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 every time a new file or folder is shared with you

New photo in folder

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 every time a new photo is created in the folder you specify.

New tagged photo in folder

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 every time a new photo with the tag you specify is created in the folder you specify.

Power changes

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.
You can choose Plug Mini's behaviour as a trigger condition

History of file matching regex uploaded in folder

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 recent files whose filename matches the regular expression you specify is added to the folder you specify

History of file matching search uploaded in folder

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 recent files whose filename or file contents contains the words you specify is added to the folder you specify

History of files or folders shared with me

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 recent files or folders shared with you

History of files uploaded in folder

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 recent files created in the folder you specify.

History of photo uploaded in folder

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 recent photos created in the folder you specify.

History of photos with a tag uploaded in folder

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 recent photos with the tag you specify is created in the folder you specify.

Add file from URL

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 download a file at a given URL and add it to OneDrive at the path you specify. NOTE: 30 MB file size limit.

Append to a text file

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 append to a text file as defined by the file name and folder path you specify

Back to base station

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.
The platform will back to base station

Bot press

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 trigger the specified Bot to press the switch.

Bot turn 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 trigger the specified Bot to turn off the switch.

Bot turn 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 trigger the specified Bot to turn on the switch.

Bulb 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.
You can set the brightness of your Color Bulb here.

Bulb 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.
You can set the color of your Color Bulb here.

Bulb 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.
You can set the color temperature of your Color bulb here.

Bulb Presets

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.
You can set the presets saved in your SwitchBot app here.

Ceiling Light 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.
You can set the brightness of your Ceiling Light here.

Ceiling Light 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.
You can set the color temperature of your Ceiling Light here.

Add file from URL

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 download a file at a given URL and add it to OneDrive at the path you specify. NOTE: 30 MB file size limit.

Append to a text file

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 append to a text file as defined by the file name and folder path you specify

Back to base station

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.
The platform will back to base station

Bot press

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 trigger the specified Bot to press the switch.

Bot turn 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 trigger the specified Bot to turn off the switch.

Bot turn 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 trigger the specified Bot to turn on the switch.

Bulb 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.
You can set the brightness of your Color Bulb here.

Bulb 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.
You can set the color of your Color Bulb here.

Bulb 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.
You can set the color temperature of your Color bulb here.

Bulb Presets

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.
You can set the presets saved in your SwitchBot app here.

Carbon dioxide changes

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.
Whenever a preset carbon dioxide change detected, SwitchBot meter pro will try to trigger the service. E.g. if the carbon dioxide is too high, turn on SwitchBot air purifier.

Ceiling Light 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.
You can set the brightness of your Ceiling Light here.

Build an automation in seconds!

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

GET STARTED

How to connect to a OneDrive automation

Find an automation using OneDrive

Find an automation to connect to, or create your own!

Connect IFTTT to your OneDrive account

Securely connect the Applet services to your respective accounts.

Finalize and customize your Applet

Review trigger and action settings, and click connect. Simple as that!
Get started

Upgrade your automations with

Start your free trial

More on OneDrive and SwitchBot

About OneDrive

OneDrive is the place to store your files so you can access them from virtually any device. Use OneDrive and you'll never be without the documents, notes, photos, and videos that matter to you.

Connect OneDrive

More integrations with OneDrive

About SwitchBot

SwitchBot is your simple switch to a smart home. Thousands of IFTTT users are enjoying our button presser that mechanically turns any rocker switch and button on and off. Now we have Hub, Thermometer and Hygrometer, Smart Fan and more. Learn more by pressing the Buy link above.

Connect SwitchBot

More integrations with SwitchBot