Add simple scheduling to your projects with an Adafruit IO schedule trigger. Turn on or off lamps, fans, solenoids, and other small appliances without the headache of reading and parsing output from real-time-clock (RTC) or obtaining the network time

This guide's project is a continuation of the IoT Power Outlet guide where we built an internet-connected electrical outlet with an Adafruit PyPortal and connected it to Adafruit IO. This guide will take the IoT Power Outlet guide one step further by adding some scheduling logic to the outlet to turn a lamp on or off at a specific time or day.

This project is not only for scheduling and automating lights - you may adapt it to control a fish feeder, turn off an interactive art exhibit at night, water your plants at specific times, or schedule anything powered by an A/C outlet.

What are Adafruit IO Triggers?

Adafruit IO Triggers add some lightweight logic to your IoT project without writing extra code. Triggers are a way to do something when a certain situation occurs. This guide focuses on the simplest trigger type - scheduled triggers.

What is a scheduled trigger?

You can configure a scheduled trigger to publish a value to a feed, send an email containing the value of a feed, or even send a webhook message to a URL at a specific time.

Scheduled triggers allow robust scheduling actions such as sending a value to a feed “At 2:00 PM, only on Friday”, “Every 4 hours”, or “At 1:00 PM, every 7 days”. 

They also utilize your Adafruit IO account's local timezone - no complicated date-time math required!

Parts

You will need the following parts to complete this guide

PyPortal, our easy-to-use IoT device that allows you to create all the things for the “Internet of Things” in minutes. Make custom touch screen interface...
Out of Stock
Say goodbye to hazardous high voltage wiring and create the Internet of Things with safe, reliable power control....
$29.95
In Stock
This cable will let you turn a JST PH 3-pin cable port into 3 individual wires with high-quality 0.1" male header plugs on the end. We're carrying these to match up with our...
Out of Stock
Our all-in-one 5V 2.5 Amp + MicroUSB cable power adapter is the perfect choice for powering single-board computers like Raspberry Pi, BeagleBone or anything else that's power...
$7.50
In Stock
1 x Micro-USB Cable
USB cable - USB A to Micro-B - 3 foot long

This guide was first published on Sep 29, 2020. It was last updated on Sep 29, 2020.

This page (Overview) was last updated on Nov 06, 2020.