Adafruit IO Setup

New to Adafruit IO? You can read all about it in this guide. Go ahead and get your account set up, and come back to this page when you're ready.

We'll need to obtain our Adafruit IO Key and Username. Visit your Adafruit IO Profile page and click the VIEW AIO KEY button on the left-sidebar.

A window will pop up with your Adafruit IO key and username. Keep a copy of them in a safe place, we'll need them later.

Setting up Adafruit IO Feeds

We are going to create a new feed per each unique source of data. We'll use feeds for a variety of data, from the home's eCO2 level to the colors of the lights inside the house.

To create a feed for the lights inside the house, navigate to the Adafruit IO Feeds Page and click Actions->Create a New Feed. Name the new feed inside-lights. 

Next, we're going to create the other feeds which will be used by our house. Create a feed for each of the following: outside-lights, eco2, tvoc, front-door, motion-detector, and alarm-status

Creating the Adafruit IO Dashboard

Next, we'll create an Adafruit IO Dashboard to display and control our feeds. Navigate to the Adafruit IO Dashboard page and click Actions -> Create a New Dashboard.

Name this dashboard IO Home and click Create. You'll be re-directed to the new Dashboard. If you have already created a dashboard using the previous IO Home learning guide, you can disregard this step.

Adding Status Indicators

We're going to create three Indicator Blocks to monitor the status of our security system and environmental sensor. 

From the IO Home dashboard, click the blue plus icon to add a new block to the dashboard. Click the indicator block, select the front-door feed, configure its settings, and click create block

We're going to create three Indicator Blocks to monitor the status of our security system and environmental sensor.  

 

From the IO Home dashboard, click the blue plus icon to add a new block to the dashboard. Click the indicator block, select the front-door feed, configure its settings, and click create block. 

 

Repeat this process for the motion-detector feed.

We'll take advantage of the Conditions feature of the Indicator Block. You can set conditions to trigger the block's off color. We're going to set a condition for "when the CO2 sensor (SGP30) feed receives a value greater than 2000 (parts per million), set the indicator to the off color". 

Adding Alarm Controls

What good is an is a security system if it can only notify you? Let's add controls for an alarm system to scare off wanna-be intruders.

Add a toggle block to your dashboard, and connect it to an alarm-status feed.

Here's an example of the dashboard we made for this guide. You can go crazy and add buttons/switches/colors, or keep it tame and add only what you need.

Note: The color picker blocks for lighting was created in the previous guide, click here to read the Adafruit IO Setup portion of the guide.

Next, we're going to set up our hardware for use with Adafruit IO.

This guide was first published on Sep 05, 2018. It was last updated on Sep 05, 2018. This page (Adafruit IO Setup) was last updated on Dec 05, 2019.