Created At

Apr 25, 2021

Last Update

Sep 12, 2023

Platforms

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

Views

5824

Download

408

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

32 Comments,  Want to add comment please login
2c116bd3690061d082e76cf85eeec97f

Hello, You can find a detailed installation guide at the following link: https://github.com/GuillaumeWaignier/fibaro/blob/master/quickApp/Nest/README.md This webpage also includes troubleshooting information. The gcpProjectId and subscription are only used for the camera and do not prevent link generation. To debug, you can check the logs in the Fibaro console. What logs do you have?

D31e53384ad8ed355e8728473048311f

Hello Guillaume, Thank you for the QA, I am struggling to make it work. I added all the steps, but my HC3 is not trying to connect, so i am not getting the link. I got my code from Google and put it in the device variables, but that didn't work too.... My GcpProjectId dosn't start with Domotique....... is that the issue? and if yes, how to fix it please?

2c116bd3690061d082e76cf85eeec97f

Hello. On my side, I do not have the problem of disconnection. Can you check in the Fibaro console if there are any errors before losing the Nest connection, such as 'getAccessToken() status is ...' or 'getAccessToken() failed:'? Perhaps, when the QuickApp needs to refresh the Nest access, the Google API is broken.

5db1050b8e66e589ec8e09d5a371a90e

Hello Guillaume, One question if you or someoneelse who are using your app notice the issue I have, for some reason every a few weeks my connection with Nest thermostat is lost and I have to generate a new code to replace in settings. It is annoying specially if I do not notice notification to fix it. Thank you in advance for your responce

2c116bd3690061d082e76cf85eeec97f

The Nest Smoke Sensor is not supported. Unfortunately, Google does not provide an API for integration.

© 2024. Nice-Polska Sp. z o.o.Privacy policyTerms & ConditionsFeedback