Hi there,
I hope you’re doing well. I wanted to share my recent experience with my Nest Thermostat, which suddenly stopped working out of the blue. I didn’t make any changes to the configuration, and it was working perfectly fine this morning. However, when I checked it later, it wasn’t responding, and I noticed an error in the logs. Here’s the traceback I found:
python
17-01-19 21:11:40 homeassistant.bootstrap: Error during setup of component nest
Traceback (most recent call last):
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/bootstrap.py”, line 151, in _async_setup_component
None, component.setup, hass, config)
File “/usr/lib/python3.4/asyncio/futures.py”, line 388, in iter
yield self # This tells Task to wait for completion.
File “/usr/lib/python3.4/asyncio/tasks.py”, line 286, in _wakeup
value = future.result()
File “/usr/lib/python3.4/asyncio/futures.py”, line 277, in result
raise self._exception
File “/usr/lib/python3.4/concurrent/futures/thread.py”, line 54, in run
result = self.fn(*self.args, **self.kwargs)
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/nest.py”, line 116, in setup
setup_nest(hass, nest, config)
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/nest.py”, line 87, in setup_nest
hass.data[DATA_NEST] = NestDevice(hass, conf, nest)
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/nest.py”, line 130, in init
self._structure = [s.name for s in nest.structures]
File “/home/homeassistant/.homeassistant/deps/nest/nest.py”, line 1581, in structures
for stid in self._status[STRUCTURES]]
File “/home/homeassistant/.homeassistant/deps/nest/nest.py”, line 1539, in _status
value = self._get(“/”)
File “/home/homeassistant/.homeassistant/deps/nest/nest.py”, line 1522, in _get
return self._request(‘GET’, path)
File “/home/homeassistant/.homeassistant/deps/nest/nest.py”, line 1508, in _request
raise APIError(response)
nest.nest.APIError: unauthorized
At first, I was a bit confused because I hadn’t made any changes to my setup. I decided to check if my Nest account was still properly linked to Home Assistant. After logging into my Nest account, I noticed that the authorization for Home Assistant had been revoked. I’m not sure why this happened, but I suspect it might be related to a recent update or change in Nest’s API policies.
To fix the issue, I went through the process of revoking and re-authorizing Home Assistant in my Nest account settings. This involved generating a new token and updating the configuration in Home Assistant. After doing this, the Nest Thermostat started working again without any further issues.
I wanted to share this experience in case anyone else encounters a similar problem. It’s a good reminder to periodically check the authorization settings for your smart home devices, especially after updates or changes to your account.
If you have any questions or need further assistance, feel free to reach out. I’m happy to help!
Best regards,
[Your Name]