Integrate a thermostat Nest (Learning Thermostat) a Home Assistant

3 minutes of reading
  • Software configuration
GUIDE more indicated for:

All environments

Notes and disclaimer
  • qualsiasi modifica all'impianto elettrico dev'essere progettata ed effettuata da personale qualificato;
  • any changes implemented in probefore is a propersonal responsibility as well as a profirst risk and danger (the contents of the present page are purely educational);
  • any changes implemented in proprior to a device it voids the guarantee, quality approvals and certifications.
Driving review: 1.1
Nb CAUTION: the content of this guide is no longer valid starting with the 31 August 2019. As previously announced, Google has acquired NEST thus changing the scenario: starting from the summer 2019, in fact, the programma “Works with NEST” ceases to exist and, with it, the possibility of developing software components that allow the integration of the components of this brand through the cloud APIs of the proconductor. Therefore the integration - first wide - it ceases to exist in its turn. THE products NEST therefore they can be checked - except Google's afterthoughts only through theapplished here Google Home.


Il NEST Learning Thermostat, as known, is one of the best home automation thermostats for those who want to save energy, handle in an intelligent way domestic heating (independent) as well as having a refined furnishing element and great quality.

Among the many features, that of offering a high level of integrability to Home Assistant it is one of the most appreciated by the owners of this remarkable component: the possibility not so much to control it, when to exploit it readings and states (temperature and humidity, but also the operating status, the set target temperature and much more) makes it ideal for exploiting it for ours automations, our "scenes", ours script and more.

In this guide we will see how to integrate a thermostat Nest Learning Thermostat a Home Assistant exploiting the component "Nest”, Which in turn uses the cloud Nest as a "bridge" between the unit and the instance of ours HUB personal.

Nb Unfortunately the integration presented in this projet works alone with the Nest Learning Thermostat v3 e no with the Nest Thermostat E.


To make this integration work it is necessary:

  • create a token in the cloud Nest;
  • configure this token at the configuration Home Assistant;
  • complete the integration through the pairing between the cloud and Home Assistant.

Cloud Nest

At this point it is necessary to go to the site dedicated to developers Nest; to enter, use the same account already used at theapp di Nest to configure the thermostat.

At the first connection to the developer portal some registry data will be requested.
To insert:

  • Company Name: HomeAssistant-Nest
  • Company URL:
  • Country: Italy
  • Size of Company: Individual

Once inside, click on "Products"And then on "Create NEW OAuth client"
The mask that appit will be roughly the following:

NEST developer - new OAuth client

Fill in the fields as follows:

  • Product Name: HomeAutomation
  • Description: Prohome automation integration jet
  • Categories: Home Automation
  • Users: Individual
  • Support URL:
  • Redirect URL: leave blank
  • Permissions (minimum):
    • Enable Thermostat with rights read / write
    • Enable Away with rights read / write
    • Enable Smoke + CO alarm with rights read
    • Enable Camera with rights read
    • Permission description: fill in anything

Obviously the rights for the devices Away, Smoke + CO alarm, Camera are not strictly necessary for the integration object of this projet, but they could come in handy on another occasion (integration of other elements Nest carried out later).

Close saving. At this point the cloud access token will have been created.

Returning to the detail sheet of the "product " appena created, the mask will be roughly the following:

NEST developer - details prolearned token

The fields "customer ID" and "Client Secret"We will need them soon. Now, however, select the "Authorization URL"And go at the indicated web address using a copy-paste in the browser.

Nest will now ask the user for authorization to activate the integration and, after clicking on "Allow", will show a page containing a PIN:

NEST developer - details prodotto token - PIN

Write down the PIN indicated and close the finestra.

Home Assistant

At this point we will be proto add to the configuration of Home Assistant the entry relating to the integration relating to the component "Nest".

In effect, it is a matter of adding a platform in configuration:

  client_id: tuo_client_ID
  client_secret: tua_chiave_segreta

As easily understood, the fields correspond to:

clientId(string, mandatory) Corresponds to the "Client ID" key obtained through the developer portal Nest
clientSecret(string, mandatory) Corresponds to the "Client Secret" key obtained through the developer portal Nest

Save and restart Home Assistant.

Nb In order for the host server to work correctly Home Assistant must have the 9553 port enabled output, under penalty of failurenameof integration.

On reboot (if all went well) Home Assistant survey the integration; at this point it will be sufficient to access the menu “Configuration> Integrations"And, choosing"Nest“, We will insert:

  • le procredentials Nest;
  • the PIN previously collected.

Then restart Home Assistant; finished restarting in the entity list appariranno the following new elements:

Home Assistant - integration NEST Learning Thermostat

Which will sanction the successful integration between the thermostat Nest and l 'HUB personal.

At this point it will be possible to use the entities How trigger (or entity for the action) in our automations; for example, the "operation mode" could be useful in theappof the projet of optimization of independent heating, without considering the comfort of the temperature and relative humidity sensors.

Optimize autonomous heating with Home Assistant

Home Assistant Official LogoATTENZIONE: remember that there is on our FORUM community an ad hoc section dedicated to Home Assistant, for any doubt, question, information on the specific merit of these components.

Please comment below