How to get set temperature?

102 views Asked by At

I would like to get the current temperature set on heat mode of the Nest thermostat (not the ambient measure temperature).

Is there a way to do that from Google Scripts?

I looked at the Google Apps scripts documentation but found nothing about this.

1

There are 1 answers

0
Permafrost On

I did it! I used this code (by chance):

var settemp = device['traits']['sdm.devices.traits.ThermostatTemperatureSetpoint']['heatCelsius']; 
Logger.log('settemp' + settemp);