Skip to main content

Simple CLI tool to listen for changes in NEST thermostat and reset the temperature back

Project description

nest_reset

Simple CLI tool to listen for changes in NEST thermostat and reset the temperature back.

Works only for one thermostat.

Installation

$ pip install -U nest-reset

Requirements

  1. Python 2.7+

  2. Nest client ID and secret. See here for instructions.

Features

I found that the NEST thermostat can be super annoying and sets the temp automatically at times. Sometimes its super cold outside, I set heating to 77-ish and then it just resets itself back to 70 and it gets really cold inside. I’ve tried changing multiple settings but it just sucks. And thus, this tool was born. Also helpful if you’ve got annoying guests or kids changing the stat :)

All this does is use the NEST API, authenticates you with your ID and secret, pulls all your thermostat info. Note that I have only one thermostat registered so I have programmed this to work with only one/the first thermostat associated with your account.

All this really does is listen for temperature change events and if the temp is not what you need, resets the thermostat to what you need.

$ nest-reset 74
# starts monitoring your thermostat and resets the temp to 74F whenever it detects
# someone changing it

Client ID and secret can be set as env vars: NEST_CLIENT_ID and NEST_CLIENT_SECRET. They will be auto-read if present. If they are not set, they will be prompted for. Its a one time prompt only. Once you’ve been authenticated, an access token is obtained using the id and secret, and stored at ~/.nrtk. Further runs will use this file, and if it does not exist or has expired, you’ll be prompted again.

Credits

History

0.1.3 (2019-02-13)

  • fixes/improvements.

0.1.2 (2019-01-12)

  • fixes.

0.1.0 (2019-01-11)

  • First release on PyPI.

Project details


Download files

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

Source Distribution

nest_reset-0.1.3.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

nest_reset-0.1.3-py2.py3-none-any.whl (6.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file nest_reset-0.1.3.tar.gz.

File metadata

  • Download URL: nest_reset-0.1.3.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for nest_reset-0.1.3.tar.gz
Algorithm Hash digest
SHA256 ca53e2fc4767d1025d50bda1b66f3214cd4b4403976093719d93f1c1331c45b3
MD5 d5a7ecb2f124b6fd100d0e72215109f7
BLAKE2b-256 21fe16af0ac6696b7822096dc6119460cafb5518d886179596b29bc6564c327d

See more details on using hashes here.

File details

Details for the file nest_reset-0.1.3-py2.py3-none-any.whl.

File metadata

  • Download URL: nest_reset-0.1.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for nest_reset-0.1.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 bc68da04778b5b3bc7761b6ff4be699de07105ab9ba6c2bb69a0fe78fa31c3f9
MD5 abf990c30a13c3c0b93e8ecaf983ddef
BLAKE2b-256 81594adeb80cd8759e702089067e376c3e3bacd8568d1c031bbab2c28c07873e

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