Skip to main content

Python API and command line tool for talking to the Nest™ Thermostat

Project description

#nest_thermostat

**a Python interface for the Nest Thermostat**

*fork of pynest by Scott M Baker, smbaker@gmail.com, http://www.smbaker.com/*

##Installation
`[sudo] pip install nest-thermostat`

##Usage

### Module

You can import the module as `nest_thermostat`. Use the source, luke!

Tips: you need to manually call `.login()` first, and `.get_status()` before `.show_*()`

### Command line
```
syntax: nest.py [options] command [command_args]
options:
--user <username> ... username on nest.com
--password <password> ... password on nest.com
--celsius ... use celsius (the default is farenheit)
--serial <number> ... optional, specify serial number of nest to use
--index <number> ... optional, 0-based index of nest
(use --serial or --index, but not both)

commands:
temp <temperature> ... set target temperature
fan [auto|on] ... set fan state
mode [cool|heat|range|off] ... set fan state
away ... toggle away
show ... show everything
curtemp ... print current temperature
curhumid ... print current humidity
curmode ... print current mode

examples:
nest.py --user joe@user.com --password swordfish temp 73
nest.py --user joe@user.com --password swordfish fan auto
```


---

*Chris Burris's Siri Nest Proxy was very helpful to learn the Nest's authentication and some bits of the protocol.*

Project details


Release history Release notifications | RSS feed

This version

1.2

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nest-thermostat-1.2.tar.gz (4.0 kB view details)

Uploaded Source

File details

Details for the file nest-thermostat-1.2.tar.gz.

File metadata

File hashes

Hashes for nest-thermostat-1.2.tar.gz
Algorithm Hash digest
SHA256 a149a34aad4c3938692b1d14ee35b3aa6203ead049768a4cc3444dbb8dd74836
MD5 cf4dfb5724cd369aeeecffc057d2328e
BLAKE2b-256 a526cb878bc10b77546e18bfbbbdb0528919a848d8906410d50ae06a388ac83f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page