Want to control your home appliances using Google Assistant? This project enables voice control of lights from anywhere in the world using only a smartphone and an internet connection. The system connects a Bolt WiFi Module to IFTTT's Google Assistant integration, allowing you to turn lights on and off with simple voice commands.
| Component | Quantity |
|---|---|
| Bolt WiFi Module | 1 |
| LED | 1 |
Set up the Bolt WiFi module to connect to your Bolt Cloud account. Refer to the Bolt documentation for setup procedures.
Connect the longer lead (anode) of the LED to Pin 0 of the Bolt module and the shorter lead (cathode) to the GND pin. Power on the module.
The digital write command for turning lights ON:
https://cloud.boltiot.com/remote/YOUR_API_KEY/digitalWrite?pin=0&state=HIGH&deviceName=YOUR_DEVICE_ID
The digital write command for turning lights OFF:
https://cloud.boltiot.com/remote/YOUR_API_KEY/digitalWrite?pin=0&state=LOW&deviceName=YOUR_DEVICE_ID
Substitute your actual API key and device ID into the URLs above. Adjust the pin number if the LED is connected to a different pin.
Repeat the process for the OFF command, using the OFF URL with state=LOW.
You can now control your lights by saying "OK Google" followed by your configured phrase. The Google Assistant triggers an IFTTT webhook that sends the GPIO command to the Bolt Cloud, which in turn switches the LED on or off. This project can be extended to control any appliance by using a relay module instead of a simple LED.
Get the latest IoT tutorials, projects, and updates delivered to your inbox.