Home Automation Using Google Assistant With Esp8266-01 and Thingspeak

Hai friends.. This is Anto.. In this tutorial, we are going to learn how create Thingspeak account and linked with IFTTT to control the home appliance with Google assistance Voice command.

The idea behind this is to control home devices with your own voice. On the market there are lot of devices available to do that. But making your own hardware is awesome. So, let's do it. Build your own personal assistant that will do the work for you. Just your assistant requires only voice command from your mobile.

Note:- Same email id have been used to login your google account in your mobile, thingspeak account, IFTTT account.


I strongly suggest you to buy the components from UTSource.com. you can get quality products and ON TIME DELIVERY. so that i recommend to you all...

Arduino uno :- 1 x 1

ESP8266 :- 1 x 1

LCD 16x2 :- 1 x 1

LCD Break out board - 1 x 1

2 channel Relay :- 1 x 1

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Step 1: Login With Your Email Id in Thingspeak

Login with your email id to thingspeak.com. if you have no account, then create a new account.

Go to channel settings--> give a preferred name as your wish. click only one CHECK BOX and give a name. my case i named a light.

click save the channel at the bottom.

Step 2: Step 2: Select Sharing and API Key

Select sharing to keep the account as public. then select API key. note down the READ API key. this is more important to paste in the webhook.

The format to paste on webhook on IFTTT is


Replace your read api key in the format

Step 3: Step 3: Create New Account in IFTTT Using the Same Email Id

After login into your ifttt account, click create.

then click on this. so that the IFTTT will redirect to the page for selecting the application

Step 4: Step 4: Choose the Service As Google Assistant

select the google assistant in the service. now you have to choose which phrase you need in the four. In my case, i choose the first option.

now type the phrase which you needed to control.

type the response you needed from the google assistant.

click trigger

Step 5: Step 5: Select "that" to Enable the Action Using Webhook

select the webhook to send the data to the thingspeak channel.

i already mentioned the format you have to paste in the url option on step 2. copy that and change your API key. give the field as 0 or 1 or 2 or 3 what you need. but you have to compare the values in the arduino program.

change method to GET and content type to json.

create Action and then finish

Step 6: Step 6: Similarly You Have to Create 3 More Triggers for Light OFF, Fan ON, Fan OFF

so you have to continue the step 3 to 5 for three more trigger and action.

the difference is change the phrase and response from the google, then change the field value you needed at the end on the format.

Step 7: Step 7: Create the Hardware As Per the Circuit.

i strongly suggest you to buy a breakout board for esp8266-01. i made my own. connected TX of esp to the D2 pin of the arduino. connect RX pin of th esp module to the D3 pin of the arduino. give 3.3v from the arduino board to the esp8266 module.

connect two channel relay to the pin 6 and 7 of the arduino.

i also strongly recommend you to buy a LCD breakout board to connect the LCD with the arduino.

Connect LCD

RS- D13, EN- D12, D4- 11, D5-10, D6-D9, D7-D8

Step 8: Step 8: Modify the Program Code and Download It

modify the program code as per the picture i given..

Step 9: Step 9: Switch ON the Hardware. Check Weather You Receive OK As Response

check the OK response in the serial monitor window. if you find any error, you may be wrong in any step.if every thing is fine, open your mobile. say


if your google response then say

" Turn on the light" which you mentioned in the IFTTT .

if the google return response as "OK,sir" as mentioned in IFTTT you are working correct. if your google not respond, check the email id login in your google account of your mobile through google setting.

Your light will turn ON now... enjoy

Step 10: Step 10: This Is the Live Demonstration of the Google Assistant Which I Made.

if you have any queries, comment me....

Be the First to Share


    • Made with Math Contest

      Made with Math Contest
    • Multi-Discipline Contest

      Multi-Discipline Contest
    • Robotics Contest

      Robotics Contest