Nest Thermostat


Most people leave the house at one temperature and forget to change it. So the Nest Learning Thermostat learns your schedule, programs itself and can be controlled from your phone. Teach it well and the Nest Thermostat can lower your heating and cooling bills up to 20%.

For more information click here.

How To Connect

Cylon.robot({
  connections: {
    nest: { adaptor: 'nest', accessToken: 'YOUR_ACCESS_TOKEN' }
  },

  devices: {
    thermostat: { driver: 'nest-thermostat', deviceId: 'YOUR_DEVICE_ID' }
  },
});

How To Use

var Cylon = require('cylon');

Cylon.robot({
  connections: {
    nest: { adaptor: 'nest', accessToken: 'YOUR_ACCESS_TOKEN' }
  },

  devices: {
    thermostat: { driver: 'nest-thermostat', deviceId: 'YOUR_DEVICE_ID' }
  },

  work: function() {
    every((10).seconds(), function(){
      var temp = my.thermostat.ambientTemperatureC();
      console.log('Ambient Temperature', temp);
    });
  }
}).start();

Commands

locale

Returns the thermostat's locale

Returns

  • (String) locale

softwareVersion

Returns the thermostat's software version

Returns

  • (String) software version

structureId

Returns the thermostat's structure id value

Returns

  • (String) structure id

deviceName

Returns the thermostat's name value

Returns

  • (String) name

nameLong

Returns the thermostat's name long value

Returns

  • (String) name long

lastConnection

Returns the thermostat's last connection value

Returns

  • (String) last connection

isOnline

Returns the thermostat's is online value

Returns

  • (Boolean) is online

canCool

Returns the thermostat's can cool value

Returns

  • (Boolean) can cool

canHeat

Returns the thermostat's can heat value

Returns

  • (Boolean) can heat

isUsingEmergencyHeat

Returns the thermostat's is using emergency heat value

Returns

  • (Boolean) is using emergency heat

hasFan

Returns the thermostat's has fan value

Returns

  • (Boolean) has fan

fanTimerActive

Returns the thermostat's fan timer active value or assigns the new value if provided

Params

  • val (Boolean) new value for fan_timer_active

Returns

  • (Boolean) fan timer active

fanTimerTimeout

Returns the thermostat's fan timer timeout value

Returns

  • (String) fan timer timeout

hasLeaf

Returns the thermostat's has leaf value

Returns

  • (Boolean) has leaf

temperatureScale

Returns the thermostat's temperature scale value

Returns

  • (String) temperature scale

targetTemperatureF

Returns the current thermostat target temperature in Fahrenheit or assigns the new value if provided

Params

  • val (Number) new value for target_temperature_f

Returns

  • (String) temp

targetTemperatureC

Returns the current thermostat target temperature in Celsius or assigns the new value if provided

Params

  • val (Number) new value for target_temperature_c

Returns

  • (String) temp

targetTemperatureHighF

Returns the current thermostat target temperature high in Fahrenheit or assigns the new value if provided

Params

  • val (Number) new value for target_temperature_high_f

Returns

  • (String) temp

targetTemperatureHighC

Returns the current thermostat target temperature high in Celsius or assigns the new value if provided

Params

  • val (Number) new value for target_temperature_high_c

Returns

  • (String) temp

targetTemperatureLowF

Returns the current thermostat target temperature low in Fahrenheit or assigns the new value if provided

Params

  • val (Number) new value for target_temperature_low_f

Returns

  • (String) temp

targetTemperatureLowC

Returns the current thermostat target temperature low in Celsius or assigns the new value if provided

Params

  • val (Number) new value for target_temperature_low_c

Returns

  • (String) temp

awayTemperatureHighF

Returns the thermostat's away temperature high in Fahrenheit

Returns

  • (String) temp

awayTemperatureHighC

Returns the thermostat's away temperature high in Celsius

Returns

  • (String) temp

awayTemperatureLowF

Returns the thermostat's away temperature low in Fahrenheit

Returns

  • (String) temp

awayTemperatureLowC

Returns the thermostat's away temperature low in Celsius

Returns

  • (String) temp

hvacMode

Returns the current thermostat hvac mode value or assigns the new value if provided

Params

  • val (String) new value for hvac_mode

Returns

  • (String) hvac mode

ambientTemperatureF

Returns the thermostat's detected ambient temperature, in Fahrenheit

Returns

  • (String) temp

ambientTemperatureC

Returns the thermostat's detected ambient temperature, in Celsius

Returns

  • (String) temp

humidity

Returns the thermostat's detected humidity

Returns

  • (String) humidity

hvacState

Returns the thermostat's hvac state

Returns

  • (String) hvac state

Events

no events

Compatibility