nest_reset
Simple CLI tool to listen for changes in NEST thermostat and reset the temperature back.
Works only for one thermostat.
Free software: MIT license
Installation
$ pip install -U nest-reset
Requirements
Python 2.7+
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
Cookiecutter and the audreyr/cookiecutter-pypackage project template for getting me started.
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.
Release files for nest-reset 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nest_reset-0.1.3.tar.gz | 7.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nest_reset-0.1.3-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 12.9 kB
Release files / nest_reset-0.1.3.tar.gz
| Download URL | nest_reset-0.1.3.tar.gz |
|---|---|
| Size | 7.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ca53e2fc4767d1025d50bda1b66f3214cd4b4403976093719d93f1c1331c45b3
|
|
BLAKE2b-256 checksum How to use checksums |
21fe16af0ac6696b7822096dc6119460cafb5518d886179596b29bc6564c327d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / nest_reset-0.1.3-py2.py3-none-any.whl
| Download URL | nest_reset-0.1.3-py2.py3-none-any.whl |
|---|---|
| Size | 6.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
bc68da04778b5b3bc7761b6ff4be699de07105ab9ba6c2bb69a0fe78fa31c3f9
|
|
BLAKE2b-256 checksum How to use checksums |
81594adeb80cd8759e702089067e376c3e3bacd8568d1c031bbab2c28c07873e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|