I have been working on Python bindings for the Nest API over in https://github.com/jkoelker/python-nest/pull/49 . Since starting on that work, I have been getting report by different users that they are getting errors back for some fields.
In the code, we are getting JSON back, and that becomes a python dictionary, and then pulling them out with the array notation, ie
data[key]. However, it seems that a ton of fields are omitted from the JSON response rather than being null. That gives a KeyError from python, which I can work around by using
.get, but I’d be worried about making all my code use this for values that are expected to exist. Some fields observed being omitted so far:
The API reference doesn’t talk about this at all. I’m not able to use the Nest Home Simulator to create those same condition
My best guess is that maybe these users had thermostats that existed before the fields were added, or maybe their thermostats need updating?