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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

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