ESP8266/ESP12 Witty Cloud - Arduino Powered SmartThings Illuminance Sensor

by johnnyfrx in Circuits > Microcontrollers

4763 Views, 19 Favorites, 0 Comments

ESP8266/ESP12 Witty Cloud - Arduino Powered SmartThings Illuminance Sensor

ESP8266/ESP12 Witty -  Arduino Powered SmartThings Illuminance Sensor

Having your Smart Lighting react to some of the default times like sunset and sunrise, or a specific time... doesn't always match what your eyes are seeing while you're inside your home. Maybe it's time to add a sensor that can fire up all of those fancy bulbs for you, based on the fading afternoon sunlight that is departing your abode at different times each day. Enter the ESP8266 & SmartThings Solution. Check out this Vid and read on to learn how you can build your own in no time flat!

Hardware - What You'll Need - EASIEST EVER!

ESPWitty-Pin-Diagram.jpg
SEA_boxesHub.94.jpg

I DO NOT endorse, represent, or receive anything at all for the examples below. Caveat Emptor.

Substitute as needed for your individual requirements/parameters. Links to products are only for examples and not promotion.
1. ESP8266 Witty Cloud MC

2. Samsung SmartThings 2.0 Hub

Software - What You'll Need

arduino.png
Nm_ide_loginscreen.jpg
rsi-lmt-SmartThingsPhoneScreenFill-708-SmartThings-063016.jpg
logo-github-fe55a081ff239877f791f5882f9c3cddc371653c88d9b06f504ea10f453996ed.jpg

ASSUMPTIONS: Comfortable working with Arduino IDE, Libraries, SmartThings IDE and GITHub.

Hardware Setup

espwitty_cable.jpg

For this section, the steps explained are based on my setup. Adjust as needed.

  • Yeah...I got nothing. Connect your ESP8266 to your computer with the USB cable. That is all! Haaaa

Software Setup

ScreenHunter 22.jpg
ScreenHunter 23.jpg

ASSUMPTIONS: Comfortable working with Arduino IDE, Libraries, SmartThings IDE and GITHub.


I know there is a lot of initial information and configuration if this is your first time setting up the ST_Anything configurations, but it is worth it. PLEASE feel free to ask any questions you may have along the way. In addition, the SmartThings Forum for this project is a GREAT place for tips and advice.

Modify the attached Arduino sketch, adding your WiFi/SmartThings environment specifics. The sketch calls out where to make the changes, as do the steps on the GITHub Page.

NOTE: As of this Instructables creation (26Dec17), the Illuminance device type code is not present in the default ST_Anything_Multiples_ESP8266WiFi Arduino sketch that is included in the GitHUB Repo. All other required SmartThings IDE specific details are current. You ONLY need to change the Arduino sketch. The attached sketch has the necessary changes.

See Attached Screen Shots for changes that were made. There are only 2, aside from your WiFi Creds.

That's a wrap! Connect it to some of your FANCY lights and HAVE FUN!