Full Post here: http://www.wemustbegeeks.com/esp8266-nodemcu-wifi-iot-garage-door-opener-relay-with-cayenne/
A few changes since the ESP8266 NodeMCU Relay WiFi Garage Door Opener with Blynk post:
Added DHT22/AM3202 Temperature & Humidity Sensor
Added Gl5537 Light Sensor
Added MQTT to send data to my OpenHab install.
Added ability for OpenHab to also open/control the Garage Door.
I should note again that my install and code is specific for a Marantec Garage Door Opener. You may need to modify this code for your particular Garage Door Opener and this will likely void your warranty!
ESP8266 NodeMCU HiLetgo new Version from Amazon $8
Uxcell a13071200ux0770 Relay Shield Module $4.99 from Amazon.
DHT22 or AM2302 Temperature/Humidity Sensor $9.99 for version with built in pull up resistor
GL5537 Light Sensor $6.99 or cheaper for 20 units
10K Resistor for Gl5537 Light Sensor
1K Resistor for Active Buzzer
Assorted Breadboards – I bought a pack on Amazon for $10.99 but you probably have a few extra laying around.
Ksmile 20M 20AWG 66ft Extension Cable Wire Cord for Led Strips Single Colour 3528 5050, 2 Pin Red/Black Hookup Wire 12V DC to connect to Garage Door Opener.
(I only needed about 1 foot and you may already have suitable wire laying around.)
3M Scotch Heavy Duty Mounting Tape, 1-Inch by 125-Inch (314) holds up to 5 lbs – $4.39 on Amazon
Elegoo 120pcs Multicolored Dupont Wire 40pin Male to Female, 40pin Male to Male, 40pin Female to Female Breadboard Jumper Wires Ribbon Cables Kit $8.68
I also used an Active Buzzer I had from this SunFounder Project Super Starter Kit for Raspberry Pi 3, 2 & Model B+ but you can purchase buzzer by itself for a lot cheaper without the kit.( 10 Active buzzers for $8 on Amazon )
I am using my Alarm Sensor which is connected to OpenHab Home Automation to let me know if the door is opened or closed, but you may want to add something like this Security Garage Door Rolling Gate Magnet Alarm Reed Switch and connect it to the ESP8266 to know if the door is opened or closed. I plan to add one soon as a back up to my alarm sensor.
Cayenne tout’s themselves as the “The World’s First Drag-and-Drop IoT Project Builder”. They have a web-based dashboard as well as Android and iOS app. The latter is important to me as I’d like to be able to control and monitor my IoT things when I’m not home. They also have SMS & Email alerts based on triggered events; i.e. text me if the garage door is opened.
ight now you can sign up for a FREE Beta account here: https://www.cayenne-mydevices.com/signup/
I asked and Cayenne told me they may add some optional freemium-style pricing, but the actual product will stay gratis for makers and devs. “We make money by licensing to companies and white labeling.”
The Cayenne Dashboard supports setting up a Raspberry Pi or an Arduino. There is no specific ESP8266 device, but choosing Arduino worked for me. Cayenne will give you a TOKEN which you will need to input into the Arduino sketch.
List of official support hardware is here: https://www.cayenne-mydevices.com/Supported-Hardware/
Cayenne requires the Blynk libraries along with the Cayenne libraries. source
Blynk Makes Developing Mobile Apps to Power Raspberry Pi or Arduino Projects a little bit Easier
Android/iOS: In the event you need to control a Raspberry Pi or Arduino connected device from your smartphone, you would generally have to know at the least some programming. Blynk is an application that makes it easier to operate those devices from your device.
Blynk makes use of drag-and-drop widgets to enable you to operate diverse elements of your gadgets projects. This could mean LED values, servo speeds, or even simply checking in on various data. You are able to check out the service for nothing, but nonetheless , you’ll need to spend some coinage in the event you want to make your applications open public or utilize it on some different devices. Many of us ought to be alright with the cost-free plan though, at the very least to start. If you have ever planned to connect your diverse electronics projects to your smartphone but nevertheless , didn’t feel like enduring the issues of actually making an mobile application, Blynk would get the job done.
In line with: http://lifehacker.com/blynk-makes-creating-mobile-apps-to-power-arduino-or-ra-1791446978
Blynk Official Web Site http://www.blynk.cc/
Download via Apple Store https://itunes.apple.com/us/app/blynk-control-arduino-raspberry/id808760481?ls=1&mt=8
Download Via Google Play https://play.google.com/store/apps/details?id=cc.blynk
Such Resources Could Help
THE JOY OF THE ESP8266 AND BLYNK http://hackaday.com/2016/12/01/the-joy-of-the-esp8266-and-blynk/
ESP8266 ESP-12(Standalone)+ Blynk 101 http://www.instructables.com/id/ESP8266-ESP-12Standalone-Blynk-101/
Simple Led Control With Blynk and NodeMCU Esp8266 12E http://www.instructables.com/id/Simple-Led-Control-With-Blynk-and-NodeMCU-Esp8266-/
How to Make an Effective IoT Dashboard without Coding https://www.sitepoint.com/how-to-make-an-effective-iot-dashboard-without-coding/
ESP8266 Mailbox Notifier using DeepSleep and Blynk
Blynk library for embedded hardware. Works with Arduino, ESP8266, Raspberry Pi, Intel Edison/Galileo, LinkIt ONE, Particle Core/Photon, Energia, ARM mbed, and so forth .. https://github.com/blynkkk/blynk-library