The summary of ‘Finally! A WORKING NEST Integration with Home Assistant using Oauth!’

This summary of the video was created by an AI. It might contain some inaccuracies.

00:00:0000:21:17

The video provides a comprehensive guide to integrating Nest devices with Home Assistant following updates that deprecated the Nest Desktop Auth method in favor of web authentication. The integration process now requires Google’s Smart Device Management API and a $5 fee. The presenter guides viewers through setting up the integration by configuring a cloud project in Google Cloud Console, enabling necessary APIs, and creating OAuth credentials. Emphasis is placed on using the correct Google account, properly inputting project details, and setting up authorized redirect URIs, now simplified by Home Assistant’s provided URL. Further steps include creating a device access project, configuring Home Assistant with OAuth credentials, and ensuring all permissions and settings align correctly. The video concludes by demonstrating how to link accounts, add devices, and troubleshoot any issues, encouraging viewers to engage further via subscription and community discussion.

00:00:00

In this segment of the video, the creator discusses issues and updates related to integrating Nest devices with Home Assistant, specifically after the deprecation of a key authentication method. The video highlights that the deprecated method (Nest Desktop Auth) was recommended by the Nest Home Assistant integration but has now moved to web auth credentials, which are mandatory from October 3, 2022. The supported devices through this integration include climate sensors and cameras, using the Smart Device Management API. Other devices such as smoke detectors and CO alarms are currently unsupported. The video also emphasizes that the integration process requires a one-time $5 fee if not already paid. The creator plans to follow and demonstrate the updated integration process step-by-step using the Home Assistant configuration document.

00:03:00

In this segment of the video, the presenter demonstrates how to set up a new integration for Nest within Home Assistant. They start by selecting the appropriate Home Assistant instance, explaining that they have both a production and a test environment. The presenter then begins the integration setup by opening a provided link and opting to set up Nest. This involves creating and configuring a cloud project using the Google Cloud Console. They caution viewers to use the correct Google account and describe the process of naming and creating a new project. Following this, they navigate through the Cloud Console, selecting “APIs and services” to enable necessary APIs, specifically the Smart Device Management API and the Cloud Pub/Sub API. The presenter reassures viewers that any sensitive information shown will be invalid after the video is completed, as the demo project will be destroyed. This step-by-step approach aims to make the setup process clear and manageable for users.

00:06:00

In this part of the video, the presenter explains how to enable APIs for a cloud project and copy essential project information such as name, project number, and project ID for future use. They then guide the viewer through the configuration of the OAuth consent screen including creating an external application, entering necessary details such as the app name, support email, developer contact info, and adding a test user. The presenter emphasizes ensuring the app is set to “in production” to avoid being logged out every seven days. Finally, they discuss creating OAuth application credentials under the cloud console by navigating to the credentials section and selecting OAuth client ID, specifying the application type.

00:09:00

In this part of the video, the speaker explains that a web application must be used instead of a desktop application, and provides instructions for setting up the necessary authorized redirect URI for integrating with Home Assistant. Initially, setting up the authorized redirect URI required complex steps like opening a port on your router and creating a domain. However, Home Assistant has now simplified this process by allowing the use of their own redirect URL, which avoids the need for SSL certificates, domain creation, and port management. The speaker emphasizes the importance of using the specified URI and shows how to copy and paste it into the authorized URI section. After setting up the URI, they create an OAuth client ID and secret required by Home Assistant.

Next, the speaker discusses creating a device access project in the device access console. This step requires a $5 fee if not previously paid. They suggest starting from scratch and deleting any previous or problematic Nest integration and SDM projects to ensure a smooth setup.

00:12:00

In this part of the video, the presenter navigates the device access console to create and configure a new project. They begin by naming the project and then proceed to input the OAuth client ID. The OAuth client ID and secret can be copied directly from the console if previously forgotten. Next, they enable events which are managed by Google’s Pub/Sub system, essential for the functionality.

The presenter then completes the project creation and highlights the importance of having the project ID and OAuth client ID for subsequent steps. They clarify the difference between the project ID from the device access console and the client ID, emphasizing their proper use.

Lastly, they discuss setting up Home Assistant using the obtained project ID and OAuth client ID, and reference enabling the smart device management API and Cloud Pub/Sub API earlier. This configuration will link home automation systems to Google’s infrastructure.

00:15:00

In this part of the video, the presenter focuses on setting up Nest in Home Assistant by configuring application credentials. They highlight the importance of completing all prior steps before submission. Key actions include entering the OAuth client ID and secret, obtained from previous steps, into Home Assistant. Additionally, the presenter clarifies how to correctly input the Google Cloud project ID and the device access project ID, warning against common mistakes. They recommend starting over if errors occur. The segment concludes by pointing out that these steps can be followed in sequence as outlined in the documentation, with a final step of submitting the configuration for authentication.

00:18:00

In this part of the video, the presenter explains how to integrate a Nest account with Home Assistant. Key steps include selecting the appropriate Google account, granting necessary permissions, and authenticating via homeassistant.io. The integration involves linking Google and Home Assistant accounts, after which all related devices and entities will appear in Home Assistant. The presenter then shows how to add a device, such as a thermostat, to the Home Assistant dashboard. Finally, they review the process, encourage using the troubleshooting page for issues, and invite viewers to subscribe and join the discussion on their Discord server.

Scroll to Top