As I'm decifering this... at 35C the switch turns on. I don't clearly see a section turning off the switch if the temp falls below 35. Do I need to add;
function CheckTmp(d){
try{
let _name= Cut(device,':',0,true);
let _id= Number(Cut(device,':',1));
let aTmp= Status(_name,_id).temperature[tmpType];
let output= Status(_name,_id).output;
if(debug) print('Debug: name:',_name,', id:',_id,', aTmp:',aTmp,', output:',output);
if(aTmp >= tmpLimit && !output) Call('Switch.set',{id: _id, on: true},null,null,debug);
if(aTmp < tmpLimit && !output) Call('Switch.set',{id: _id, on: false},null,null,debug);
}catch(e){ErrorMsg(e,'CheckTmp()');}
}