react-nest-thermostat

1.0.8 • Public • Published

React Nest Thermostat

This (unofficial) React component provides a basic display of the Nest thermostat.

Live Demo

View the live demo! Note that this demo uses pre-compiled code, so it's a little messy to examine.

Installation

npm install react-nest-thermostat

Example Usage

You can run built-in demo example via few simple steps:

  1. git clone https://github.com/KevinMellott91/react-nest-thermostat.git
  2. cd react-nest-thermostat
  3. npm install
  4. npm run-script basic-example
  5. Browse to http://localhost:3000

Component (primary) properties

  • away (Boolean) - true/false to indicate if the Nest is in "away mode"
  • leaf (Boolean) - true/false to indicate if the Nest is in "energy savings mode"
  • ambientTemperature (Integer) - actual temperature detected by the Nest
  • targetTemperature (Integer) - target temperature provided to the Nest
  • hvacMode (String) - status of the HVAC operations
    • off - no action is being taken
    • heating - thermostat is actively heating
    • cooling - thermostat is actively cooling

Inspiration

This work was inspired heavily by the Nest Thermostat Control Pen created by Dal Hundal.

Package Sidebar

Install

npm i react-nest-thermostat

Weekly Downloads

1

Version

1.0.8

License

MIT

Last publish

Collaborators

  • kevy138