In this article I am showing you how to connect your device to google assistant or amazon alexa via NodeMCU.

Step 1: Collect stuff
- NodeMCU esp8266
- Realy Module
- Wifi Connection
- 5v Power Supply
Step 2: Assemble
- I used two way relay module and Connected their in pins to D5 & D6 of nodemcu board.
- Connect the nodemcu to power supply through Vin pin.
Step 3: Adafruit & ifttt
Adafruit
- Create account in adafruit.io
- Create a new dashboard

3.Create two feeds
- Click on create a new block

- Then click on Toggle block

- Create two feeds “light1” & “light2”

- Then select one feed and go to next step

- Then change their on and off text

- Do this for light2 also and finally you will have bellow interface at the created dashboard

IFTTT
- Create account in ifttt.com
- Create new applet(Turn on light 1)


3.Then click +this link and select google assistant in services

4.Then give google voice command and its reply

5.Next choose adafruit (send data to Adafruit IO)

6.Then select light1 in the feed name and 1 for the data(To turn on light)
- 1 – ON
- 0 – OFF

Create applet for following commands as shown above
- Turn off light 1
- Turn on light 2
- Turn off light 2
Step 4: Code
Step 5:
Tutorial Video