Created At

Apr 25, 2021

Last Update

Sep 12, 2023

Platforms

HC 3 Lite, Z-box Hub, Yubii Home, HC 3

Views

3725

Download

265

Type Quick App

Version: 1.3.1

Features

It's a Quick App for Nest Devices. It supports:

  • Nest Thermostat
  • Nest Camera
  • Nest Doorbell

screen_nest

screen_nest

The features are:

  • Nest Thermostat: change the heating/cooling point, mode (off, heat, cool, manual eco), get ambiant temperature/humidity
  • Nest Camera: detect motion of person
  • Nest Doorbell: doorbell chime

Requirement

Create a Google Device Nest Account in https://developers.google.com/nest/device-access

Follow the QuickStart in https://developers.google.com/nest/device-access/get-started

Link your account in https://developers.google.com/nest/device-access/authorize

Account permissions requirement: access and control your thermostat, know when an event occurs with your camera (motion of person), know when a person press the doorbell 

Variables

 

Name

Description

projectId

"Project ID" created in https://console.nest.google.com/device-access/project-list

clientId

"OAuth 2.0 Client ID" created in https://console.developers.google.com/apis/credentials

clientSecret

"Client Secret" created in https://console.developers.google.com/apis/credentials

code

"Authentication code". Set xxx for the first time and see below

gcpProjectId

Only used for camera and doorbell (See below). Else leave empty

subscription

Only used for camera and doorbell (See below). Else leave empty

frequency

Delay in second to refresh the value

refreshToken

OAuth2 refresh token. Set it to '-'

Parameters

How to get the Authentication code:

A notification will give you the URL to generate the code. During the process you need to authorize the Quick App to access and control your wanted devices.

At the end of the process, you will get an url such as https://www.google.com/?code=4/xxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&scope=https://www.googleapis.com/auth/sdm.service.

The code is in red. You need to copy it inside the parameter 'code'.

Only for Camera and doorbell

Follow the steps explained in https://developers.google.com/nest/device-access/subscribe-to-events. When you have created your Pub/Sub Subject. You writte this command in Google Cloud Shell (replace the subject with yours)

gcloud pubsub subscriptions create fibaro --topic=projects/sdm-prod/topics/enterprise-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

Detailled installation and troubleshooting

You can have more detailled installation at the following URL:

https://github.com/GuillaumeWaignier/fibaro/tree/master/quickApp/Nest

Changelog

v1.3.1 - 09/2023

  • Fix bug for Nest Camera

v1.3 - 08/2023

  • Add support for Nest Camera
  • Add support for Nest Doorbell
  • No change for Nest Thermostat

v1.2 - 02/2023

  • Celsius and Fahrenheit support
  • Fix bug in cooling feature
  • Add support for Z-Box hub

 v1.1 - 01/2023

  • Add cooling support (if thermostat support it)
  • Display if thermostat is actively heating
  • Round the temperature value to one decimal place

 v1.0 - 01/2022

  • Supported mode: Off, Heat, Manual Eco
  • Get ambiant humidity and Temperature

24 Comments,  Want to add comment please login
2c116bd3690061d082e76cf85eeec97f

Hi. If your device has a camera (e.g. Nest Hub Max), it is supported. This creates a "motion sensor" in Fibaro. When the hub's camera detects a person, it triggers the motion sensor in Fibaro.

8f05c44fc7586cbf77b918acf3119452

Hello Guillaume, Am I right, only doorbells, cameras and the thermostat is supported? A Google Home Hub is not supported?

2c116bd3690061d082e76cf85eeec97f

Which issues have you ? The token is automatically renew. If it expires, you will have a notification (in the log, mail and messages) in order to regenerate the authentification code.

332bc2c2a5156721b9bc74658ba840fd

Hello Guillaume !! thanks for this QA its brilliant. I have some issues with renew the token with google nest do you know how to fix it ?

2c116bd3690061d082e76cf85eeec97f

Hi. Which kinds of error have you? Are the thermostats displaying with the correct temperature setting ? The available modes (heat, cool or both) are automatically detected once the quickapp is connected to Google. There is a web webpage to help one some authentication issues: https://github.com/GuillaumeWaignier/fibaro/tree/master/quickApp/Nest#troubleshooting If you want, you can add an issue on Github and we can check together.