Debugging the Smart Home

1. Before you begin

As an Internet of Things (IoT) developer, you can build Cloud-to-cloud integrations that give your users the ability to control their devices through touch controls in the Google Home app and voice commands with the Google Assistant.

a4657871181b5ad2.gif

Learning the debugging tools for Cloud-to-cloud integrations is an important step to build production quality integration with Google Assistant. To facilitate easy monitoring and debugging, Google Cloud Platform (GCP) Metrics and Logging and Test Suite for smart home are available to help you identify and resolve issues for your integrations.

Prerequisites

What you'll build

In this codelab, you'll deploy a Cloud-to-cloud integration with 2 defects and connect it to the Assistant, then debug the integration's defects by Test Suite for smart home & Google Cloud Platform (GCP) Metrics and Logging.

What you'll learn

  • How to use GCP Metrics and Logging to identify and resolve production issues
  • How to use Test Suite for smart home to identify functional and API issues

What you'll need

2. Run the faulty app

Get the source code

Click the following link to download the sample for this codelab on your development machine:

...or you can clone the GitHub repository from the command line:

$ git clone https://github.com/google-home/smarthome-debug.git

About the project

The washer app contains the following subdirectories:

Connect to Firebase