Hardware components | ||||||
![]() |
| × | 1 | |||
![]() |
| × | 1 | |||
![]() |
| × | 1 | |||
![]() |
| × | 1 | |||
![]() |
| × | 1 | |||
![]() |
| × | 1 | |||
Software apps and online services | ||||||
![]() |
| |||||
| ||||||
|
Now the world is moving forward by using many developed tools and features like AI, ML, IoT, etc..So here is a awesome project for home automation. Turn ON or OFF your light by saying to google to do so.
STEP 1: Get the api_key and BOotI_id
Login to cloud.boltiot.com and note the ID of your Bolt WiFi Module.

STEP 2:Set up your hardware
Warp one end off the resistor to longer end of the LED. Plug other end of the resistor to the Pin 0 of Bolt WiFi module shorter end to the ground pin (GND).
Make sure that while doing the hardware connection your bolt device is not connected to any power supply source .
Then power on the Bolt WiFi module by giving power supply to it.
STEP 3: GPIO Control Command
Since LED is a digital output device, we will need to get a Digital Write command that can be sent to Bolt over the Internet to switch on the LED.
The structure of the command is:
https://cloud.boltiot.com/remote/API_KEY/digitalWrite?pin=PIN_NUMBER&state=HIGH/LOW&deviceName=DEVICE_ID
The parameters that you need to replace are:
API_KEY: You can get it from API tab on cloud dashboard.
PIN_NUMBER: Pin to which you have connected the LED. Values can be either 0,1,2,3 or 4
HIGH/LOW: This value indicates if you want to turn on/off the LED. HIGH will turn it on, LOW will turn it off.
DEVICE_ID: The id of your device. You can get it from cloud dashboard.
To switch on the light :
https://cloud.boltiot.com/remote/f1f918e9-d9c2-ndaoiA-fjjohf74cf/digitalWrite?pin=0&state=HIGH&deviceName=BOLT1273747
To Switch off the light just change the state = LOW :
https://cloud.boltiot.com/remote/f1f918e9-d9c2-ndaoiA-fjjohf74cf/digitalWrite?pin=0&state=LOW&deviceName=BOLT1273747
Step 4: IFTTT integration via Google Assistant and Webhooks
Go to IFTTT to create a new applet by clicking here
Login using your Gmail account. Make sure you use same account which you'll be using on your mobile to interact with Google Assistant.
Login using your Gmail account. Make sure you use same account which you'll be using on your mobile to interact with Google Assistant.

Step 7:
Type the phrase you want to trigger the action. Make sure to specify the trigger command in different ways for example I used
for on select on for off the light select off
a) Turn the lights on /off
b) Turn on/off the lights
c) Lights on/off
d) Switching lights on/off
click on create trigger
for on select on for off the light select off
a) Turn the lights on /off
b) Turn on/off the lights
c) Lights on/off
d) Switching lights on/off
click on create trigger

Circuit Diagram
This pic shows how to interface the led with the Bolt WiFi Module
make sure that there is no short circuit between two leg of LED.
make sure that there is no short circuit between two leg of LED.

Comments
Please log in or sign up to comment.