sensors.forEach(function(sensor){
sensor.temperatureCross= function () {
try{
if(sensors.some(function(tag){ return tag.tempState==2 })); // any tag is too hot
KumoApp.Log(sensor.name + " has return to normal temp " + sensor.tempState);
thermostat.forceBits(0, true); // turn thermostat off
KumoApp.Log(thermostat.name + " successfully turned off!!.");
<~devices to send notification~>.push(sensor.name + " Has return to normal temp, so the heating has been turn off");
}catch(e){
KumoApp.Log(JSON.stringify(e));
}
};
});
On Friday, April 29, 2016 at 11:17:47 AM UTC+1, Zuhdi AK wrote:
if(sensors.some(function(tag){ return tag.tempState==2 })); // any tag is too hot
thermostat.forceBits(0, true); // turn thermostat off
thermostat.forceBits(0, true); // turn thermostat off
To turn off
There should be a published app in the kumoapps that might suit your needs.