|
| 1 | +--- |
| 2 | +title: 'Google Home™' |
| 3 | +description: 'Learn how to connect the Arduino Cloud with Google Home™.' |
| 4 | +tags: |
| 5 | +- Google Home™ |
| 6 | +author: 'Hannes Siebeneicher' |
| 7 | +featuredImage: 'cloud' |
| 8 | +--- |
| 9 | + |
| 10 | +## Introduction |
| 11 | + |
| 12 | +This tutorial guides you on how to connect the Arduino Cloud to your Google Home™ allowing you to interact with your devices, simply through your Google Home Assistant: use voice commands, the Google Home app, or create new routines integrating Arduino solutions. |
| 13 | + |
| 14 | +It requires your board to be [compatible with the Arduino Cloud](https://docs.arduino.cc/arduino-cloud/hardware/devices/). |
| 15 | + |
| 16 | +## Goals |
| 17 | + |
| 18 | +The goals of this tutorial are: |
| 19 | + |
| 20 | +- Create a Google Home compatible variable. |
| 21 | +- Control the built-in LED with Google Home. |
| 22 | + |
| 23 | +## Hardware & Software Needed |
| 24 | + |
| 25 | +- [Arduino Cloud](https://cloud.arduino.cc/). |
| 26 | +- [A Cloud compatible Arduino board](https://docs.arduino.cc/arduino-cloud/hardware/devices/). |
| 27 | +- [Google Home™](https://home.google.com/welcome/). |
| 28 | + |
| 29 | +To familiarize yourself with the Arduino Cloud check out our [getting started guide](https://docs.arduino.cc/arduino-cloud/guides/overview/). |
| 30 | + |
| 31 | +## Cloud Setup |
| 32 | + |
| 33 | +Before we start, make sure you have an Arduino Cloud compatible board. |
| 34 | + |
| 35 | +Then, we need to configure a Thing in the [Arduino Cloud](https://app.arduino.cc/things) consisting of one CloudSwitch variables called `led`. Follow the instructions below to do so. |
| 36 | + |
| 37 | +### Thing & Device Configuration |
| 38 | + |
| 39 | +1. Create a new Thing, by clicking on the **"Create Thing"** button. |
| 40 | +2. Click on the **"Select Device"** in the **"Associated Devices"** section of your Thing. |
| 41 | +3. Click on **"Set Up New Device"**, and continue to set up your device. |
| 42 | + |
| 43 | +If you need more information on how to set up your device check out our [getting started guide](https://docs.arduino.cc/arduino-cloud/guides/overview/#2-configure-a-device). |
| 44 | + |
| 45 | +### Create Variables |
| 46 | + |
| 47 | +The next step is to create a Cloud variable, which we will later interact with via our Google Home. |
| 48 | + |
| 49 | +1. While in Thing configuration, click on **"Add Variable"** which will open a new window. |
| 50 | +2. Name your variable `led`, select `Smart home`, and select it to be of a `Switch` type. |
| 51 | +3. Click on **"Add Variable"** at the bottom of the window. |
| 52 | +4. Make sure the **Smart Home Integration** is set to Google Home. |
| 53 | + |
| 54 | +***Most Cloud variables are compatible with both Alexa and Google Home but there is an icon on the right side of the type that indicates the compatibility*** |
| 55 | + |
| 56 | +Your Thing should look something like this when you are finished: |
| 57 | + |
| 58 | + |
| 59 | + |
| 60 | +***Learn more about how variables work in the [Variables documentation](/arduino-cloud/cloud-interface/variables)*** |
| 61 | + |
| 62 | +#### Detect Your Device with Google Home |
| 63 | + |
| 64 | +1. **Network Connection:** Ensure the board is connected to the network. |
| 65 | +2. **Google Home App:** Open the app, navigate to Devices, and click "Add Device." |
| 66 | +3. **Integration Method:** Select "Works with Google Home" and then choose the "Arduino" action. |
| 67 | +4. **Device Pairing:** Link your Arduino account if requested and proceed to add your devices (one for each variable) by associating them with a room. |
| 68 | + |
| 69 | + |
| 70 | + |
| 71 | +**Congratulations!** Your device is now successfully configured to work with Google Home. |
0 commit comments