Google-Nest Offical Device Access Console Finally Released!

You should have run this this get the access-token:

curl -L -X POST 'https://www.googleapis.com/oauth2/v4/token?
client_id=oauth2-client-id&
client_secret=oauth2-client-secret&
code=authorization-code&
grant_type=authorization_code&
redirect_uri=https://www.google.com'

Shameless video plug for that part: https://youtu.be/_Wex2SLmEJ8?t=278

1 Like

Is it possible to display also the thermostat set point as sensor? It would be great to log them e.g. in InfluxDB (which doesnā€™t support climate entities, only sensor entities)

Thank you very much!, I had a quick look at your video, you should plug it more, Iā€™m sure it will help a lot of folks. Googleā€™s documentation is terrible!

Hi! I just upgraded to 0.118 and tried setting up my nest thermostat as per the instructions provided. It didnā€™t seem like I encountered any errors during setup, but when I finally add the Nest integration, no device is found.

When I check the logs, I see that there is an error in setting up the Nest platform:

Logger: homeassistant.components.climate
Source: components/nest/sensor_sdm.py:36
Integration: Climate (documentation, issues)
First occurred: 9:27:07 PM (2 occurrences)
Last logged: 9:41:36 PM

Error while setting up nest platform for climate
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 199, in _async_setup_platform
    await asyncio.shield(task)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 199, in _async_setup_platform
    await asyncio.shield(task)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 199, in _async_setup_platform
    await asyncio.shield(task)
  File "/usr/src/homeassistant/homeassistant/components/nest/climate.py", line 18, in async_setup_entry
    await async_setup_sdm_entry(hass, entry, async_add_entities)
  File "/usr/src/homeassistant/homeassistant/components/nest/climate_sdm.py", line 83, in async_setup_sdm_entry
    device_manager = await subscriber.async_get_device_manager()
  File "/usr/local/lib/python3.8/site-packages/google_nest_sdm/google_nest_subscriber.py", line 97, in async_get_device_manager
    return await self._device_manager_task
  File "/usr/src/homeassistant/homeassistant/components/nest/camera.py", line 18, in async_setup_entry
    await async_setup_sdm_entry(hass, entry, async_add_entities)
  File "/usr/src/homeassistant/homeassistant/components/nest/camera_sdm.py", line 35, in async_setup_sdm_entry
    device_manager = await subscriber.async_get_device_manager()
  File "/usr/local/lib/python3.8/site-packages/google_nest_sdm/google_nest_subscriber.py", line 97, in async_get_device_manager
    return await self._device_manager_task
  File "/usr/src/homeassistant/homeassistant/components/nest/sensor.py", line 19, in async_setup_entry
    await async_setup_sdm_entry(hass, entry, async_add_entities)
  File "/usr/src/homeassistant/homeassistant/components/nest/sensor_sdm.py", line 36, in async_setup_sdm_entry
    device_manager = await subscriber.async_get_device_manager()
  File "/usr/local/lib/python3.8/site-packages/google_nest_sdm/google_nest_subscriber.py", line 97, in async_get_device_manager
    return await self._device_manager_task
  File "/usr/local/lib/python3.8/site-packages/google_nest_sdm/google_nest_subscriber.py", line 106, in _async_create_device_manager
    devices = await self._api.async_get_devices()
  File "/usr/local/lib/python3.8/site-packages/google_nest_sdm/google_nest_api.py", line 46, in async_get_devices
    devices = response_data["devices"]
KeyError: 'devices'

I also notice that when I make a device list call using curl I get an empty response. It seems like somehow Iā€™m not able to retrieve my thermostat even though I granted permission to allow the Device Access console to control the thermostatā€¦??

Has anybody encountered this problem? Any solutions? Thanks!

Do you know howI can disable from the card the ability to change the desired temperature from the card? It is so easy to move the ā€˜diskā€™ and change the desired temperature.

Just got this working.
Thanks so much to all involved.

What a wild ride to migrate my account and set up all of this.
In fairness it wasnā€™t that bad because Iā€™ve authorized Google Home with a similar process.
Now Iā€™m anxiously awaiting: sdm.devices.traits.CameraPerson
I donā€™t see anything that could potentially allow HA to control home/away mode, I liked this for controlling when I got Nest notifications.

1 Like

Very happy (surprised) to see my Nest Hello show up as an available camera. Eagerly awaiting the doorbell push as a switch/trigger so I can use it for automations.

No hurry, but I am happy to have cameras available. Closes a big gap for me in configuration.

1 Like

I woke up this morning and was receiving ā€œError while setting up nest platform xxxxā€. The only way to get my devices working again was to remove the nest integration and add it back again.

do you know how to activate a camera? the google hub camera from HA?

Hi James. I deleted integration, config.yaml. Follow instructions again but sensor still not updating. Running 0.118 stable version. Any hint?

Iā€™m on version 0.118.0b3 and donā€™t seem to be getting regular updates from the Thermostat. Updates seem periodic and often occur when I refresh the dashboard. Iā€™m able to control the thermostat fine to turn on heating, set temperature, etc, and I have no problems with the Doorbell camera feed. Any thoughts?

image

Does HomeAssistant needs to be exposed to internet all the time or just during initial set up?

Mine isnā€™t working either.

I followed all the steps, but after adding the Nest integration I get a permission screen.
While I click next, I get the following errror.

You need to make sure you are using the full path of the subscription as noted in the updated config page:

You donā€™t have the correct external URL setting in HA or you donā€™t have the external url set to match in the google OAuth page. I canā€™t tell from the image, but you could also be doing this from inside your network and getting directed to a local IP, which wonā€™t work.

I just checked my external URL via nslookup and it resolves to the same IP, with and without www.

Thnx Chris, itā€™s was a problem with local caching. :slight_smile: Works now! (See Discord)

What is the expected polling interval suppose to be? Is it a push from Google ?

It will update when the nest device pushes something to the subscription. About a second delay.