Skip to content
Troy Fontaine edited this page Jul 9, 2017 · 2 revisions

Set up

The python-nest command-line tool, nest can be executed and set up to talk to the Nest™ API:

  1. Using the arguments --client-id and --client-secret (including your credentials from your Nest™ Developer Account.
  2. Using a properly formatted configuration file.

Once you have generated a token_cache file (this is created automatically with either method), you can remove the config file or cease using the --client-id and --client-secret arguments.

Configuration File

The configuration file is relatively straight forward, it should be formatted as follows.

[nest]
client_id = 99999999-9999-9999-9999-999999999999
client_secret = suchGoodSecretIsGood

How to Use

# If your nest is not in range mode
nest --conf myconfig --client-id CLIENTID --client-secret SECRET temp 73
# If your nest is in range mode
nest --conf myconfig --client-id CLIENTID --client-secret SECRET temp 66 73

nest --conf myconfig --client-id CLIENTID --client-secret SECRET fan --auto
nest --conf myconfig --client-id CLIENTID --client-secret SECRET target_hum 35
Clone this wiki locally