Nest Error on 0.72.1

Hey Guys

Just upgraded to latest HA… I get the following error for Nest

2018-06-27 09:42:31 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.nest
2018-06-27 09:42:31 ERROR (MainThread) [homeassistant.components.binary_sensor] nest: Error on device update!
Traceback (most recent call last):
  File "/usr/src/app/homeassistant/helpers/entity_platform.py", line 248, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/src/app/homeassistant/helpers/entity.py", line 320, in async_device_update
    yield from self.hass.async_add_job(self.update)
  File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/app/homeassistant/components/binary_sensor/nest.py", line 138, in update
    [self.variable][value])
KeyError: None

Have the following in configuration

nest:
  client_id: ID
  client_secret: SECRET

I need more debugging log for this.

To enable debug log, please do

# configuration.yaml
logger:
  default: warning
  logs:
    homeassistant.components.nest: debug
    homeassistant.components.binary_sensor.nest: debug
    nest: debug
    sseclient: debug

Also please let me know what Nest products you have.

I am guessing you don’t have Away read permission for your nest developer account.

I will fix HA for better handle it.

Smoke + CO Alarm

Have the following

2018-06-29 08:18:37 DEBUG (MainThread) [homeassistant.components.nest] proceeding with setup
2018-06-29 08:18:37 INFO (SyncWorker_5) [nest.nest] Open data stream
2018-06-29 08:18:37 DEBUG (SyncWorker_5) [nest.nest] >> STREAM https://developer-api.nest.com/
2018-06-29 08:18:39 DEBUG (SyncWorker_5) [nest.nest] << 307
2018-06-29 08:18:39 DEBUG (SyncWorker_5) [nest.nest] >> STREAM https://firebase-apiserver34-tah01-iad01.dapi.production.nest.com:9553/
2018-06-29 08:18:40 DEBUG (SyncWorker_5) [nest.nest] << 200
2018-06-29 08:18:40 DEBUG (Thread-2) [nest.nest] Starting event loop.
2018-06-29 08:18:40 DEBUG (Thread-2) [sseclient] Initialized SSE client from event source <generator object Response.iter_content..generate at 0x7ff96c0480a0>
2018-06-29 08:18:41 DEBUG (Thread-2) [sseclient] Dispatching put event, 6066 bytes…
2018-06-29 08:18:41 DEBUG (Thread-2) [nest.nest] <<< put event
2018-06-29 08:18:41 INFO (SyncWorker_5) [nest.nest] Event loop started.
2018-06-29 08:18:41 DEBUG (MainThread) [homeassistant.components.nest] async_setup_nest is done
2018-06-29 08:18:41 ERROR (MainThread) [homeassistant.components.binary_sensor] nest: Error on device update!
Traceback (most recent call last):
File “/usr/src/app/homeassistant/helpers/entity_platform.py”, line 248, in _async_add_entity
await entity.async_device_update(warning=False)
File “/usr/src/app/homeassistant/helpers/entity.py”, line 320, in async_device_update
yield from self.hass.async_add_job(self.update)
File “/usr/local/lib/python3.6/concurrent/futures/thread.py”, line 56, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/src/app/homeassistant/components/binary_sensor/nest.py”, line 138, in update
[self.variable][value])
KeyError: None
2018-06-29 08:18:44 DEBUG (MainThread) [homeassistant.components.nest] listening nest.update_event
2018-06-29 08:18:44 DEBUG (MainThread) [homeassistant.components.nest] dispatching nest data update
2018-06-29 08:19:10 DEBUG (Thread-2) [sseclient] Dispatching keep-alive event, 4 bytes…
2018-06-29 08:19:10 DEBUG (Thread-2) [nest.nest] <<< keep-alive event
2018-06-29 08:19:40 DEBUG (Thread-2) [sseclient] Dispatching keep-alive event, 4 bytes…
2018-06-29 08:19:40 DEBUG (Thread-2) [nest.nest] <<< keep-alive event
2018-06-29 08:19:45 DEBUG (Thread-2) [sseclient] Dispatching put event, 6066 bytes…
2018-06-29 08:19:45 DEBUG (Thread-2) [nest.nest] <<< put event
2018-06-29 08:19:45 DEBUG (MainThread) [homeassistant.components.nest] dispatching nest data update
2018-06-29 08:19:46 DEBUG (Thread-2) [sseclient] Dispatching put event, 6066 bytes…
2018-06-29 08:19:46 DEBUG (Thread-2) [nest.nest] <<< put event
2018-06-29 08:19:46 DEBUG (MainThread) [homeassistant.components.nest] dispatching nest data update
2018-06-29 08:19:46 DEBUG (Thread-2) [sseclient] Dispatching put event, 6066 bytes…
2018-06-29 08:19:46 DEBUG (Thread-2) [nest.nest] <<< put event

Away read permission is under “Other Permissions”

Thanks… did that and restarted homeassistant…


still this error

2018-06-29 09:35:20 ERROR (MainThread) [homeassistant.components.binary_sensor] nest: Error on device update!
Traceback (most recent call last):
File “/usr/src/app/homeassistant/helpers/entity_platform.py”, line 248, in _async_add_entity
await entity.async_device_update(warning=False)
File “/usr/src/app/homeassistant/helpers/entity.py”, line 320, in async_device_update
yield from self.hass.async_add_job(self.update)
File “/usr/local/lib/python3.6/concurrent/futures/thread.py”, line 56, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/src/app/homeassistant/components/binary_sensor/nest.py”, line 138, in update
[self.variable][value])
KeyError: None

You need to stop HA, delete .config_entries.json under .homeassistant folder, or remove nest related item from that file. So that you will get new access_token with updated permission.

I deleted .config_entries.json and deleted nest: and client id and secret

restarted… integration says discovered nest but when i click to configure it simply takes me to the component help page…

Aborted
You need to configure Nest before being able to authenticate with it. Please read the instructions.

I added back nest: and clientid and secret and restarted… it has the same error in logs… I don’t see any popup in HA home page where I can put the PIN

What am I missing here?

Nevermind… fixed… I had got a popup on my Nest app on iOS to authorize… after doing that and restart errors are gone…

Thanks

1 Like