Scripting Help - Nest Thermostat

71 views
Skip to first unread message

CC YY

unread,
Jan 11, 2016, 12:34:41 PM1/11/16
to Wireless Sensor Tags
  • Is there any full documentation besides what's on the blog? Especially concerning the nest thermostats .. I can't find a thing on what functions I can actually call.

I pulled together some snippets of code and think I have most of it down except for one thing ....


I'd like the SENSOR not to trigger the thermostat after a certain time of day (11pm).  Basically, it should only be active to trigger the thermostat between 3-11pm.  Other than that, it should be on

the Nest's run schedule.


I am thinking the restore() function is it .. but once again, no documentation to confirm.



------------- CODE below --------------------------


var thermostat=<#The thermostat_[62]_1#>;
var sensor = <#Temperature sensor_[12|13|21|32|52|62|72]_1#>;

sensor.temperatureCross= function () {
                    if(sensor.tempState==3)
                        <@set to sensor1 ACTIVE at@>.task=function () {
                        try{thermostat.turnon();}
                        catch(e){
                            KumoApp.Log(JSON.stringify(e));
                            }  #sensor1 turnon
                       
                    else
                        <@set to sensor1 NOT-active at@>.task=function () {                   
                        try{thermostat.turnoff();}
                        try{thermostat.restore();}
                        catch(e){
                            KumoApp.Log(JSON.stringify(e));
                            } #sensor1 turnoff
                           
                        } #if-else sensor.tempState
                       
                }; #sensor.temperatureCross
               



Zhiheng Cao

unread,
Jan 11, 2016, 2:25:51 PM1/11/16
to CC YY, Wireless Sensor Tags
If you don't want the sensor to trigger the nest thermostat, simply disable the temperature monitoring of the sensor by using http://mytaglist.com/kumoapp/69/disarmtempsensor   

If no temperature event such as "too hot" etc is generated by the tag no command will be sent to nest (or honeywell) thermostat automatically. 

The "restore()" method does what described at http://mytaglist.com/kumoapp/67/restore,  it will set Nest to "home" if "turnoff()" set it to "away". See http://mytaglist.com/kumoapp/4093/disablelocal for more detail. 



--
You received this message because you are subscribed to the Google Groups "Wireless Sensor Tags" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wireless-sensor-...@googlegroups.com.
To post to this group, send email to wireless-s...@googlegroups.com.
Visit this group at https://groups.google.com/group/wireless-sensor-tags.
To view this discussion on the web visit https://groups.google.com/d/msgid/wireless-sensor-tags/fc26ff2b-1b6a-4771-87bf-2fb8399a2a9c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages