1. Voice control of light
Tell Google Home "Turn on/off the light" to control the light.
2. Location based control of light
Turn on the light if I entered the home area; turn off the light if I exited the home area.
-----------------------------------------------------------------------------------------------------------------------------------------------------
Useful materials:
Home Automation Using NodeMCU and Google Assistant In Under $20:
http://codeometry.in/home-automation-using-nodemcu-and-google-assistant/
QUICK START TO NODEMCU (ESP8266) ON ARDUINO IDE:
http://www.instructables.com/id/Quick-Start-to-Nodemcu-ESP8266-on-Arduino-IDE/
SIMPLE LED CONTROL WITH BLYNK AND NODEMCU ESP8266 12E:
http://www.instructables.com/id/Simple-Led-Control-With-Blynk-and-NodeMCU-Esp8266-/
How to use http request with IFTTT:
https://community.blynk.cc/t/solved-how-to-use-http-request-with-ifttt/16023/17
Send a web request to Blynk server for control of device:
To send an ON signal it would be:
http://45.55.96.146/MY BLYNK TOKEN/update/D13?value=1
45.55.96.146 is the Blynk ip address. Obtain this by "ping blynk-cloud.com" using CMD.
MY BLYNK TOKEN is the token received from Blynk.
Just change the final 1 to 0 to send OFF signal.
Check the pin definition of NodeMCU for the name of the pin you want to control.
For example, D13 in the above request actually stands for GPIO13 and represent D7 in the following pin definition drawing. Quiet confusing.
Type the above request in the address bar of the browser for control;
Or with Webhooks through IFTTT with method "GET" and "application/json" for Content Type. Leave Body blank.
discover_arest_sample.pdf |