Main Content

In this tutorial we are going to create a smart plug to turn on or off the light of a lamp remotely using Google’s voice assistant.

In this tutorial we are going to create a smart plug to turn on or off the light of a lamp remotely using Google’s voice assistant.

We will use the IFTTT web service. This service allows us to create / schedule actions between different applications. In our case we will link the Google voice assistant with the Adafruit IO Cloud.

The procedure will be as follows:

Using the Google voice assistant and saying the voice command “turn on the light” will record the “ON” value in a “feed” of the Adafruit IO Cloud and when we say “turn off the light” the value “OFF” will be recorded.

These values ​​will be read continuously using an Arduino MKR WiFi 1010 board. If the value read is “ON” a relay will be activated that will cause the lamp light to turn on (the circuit will be closed) but if the value is “OFF” the lamp light will turn off (the circuit will open).”

Link to article