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
--
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.