Beiträge von dannoz

VPN/Proxy erkannt

Es scheint, dass Sie einen VPN- oder Proxy-Dienst verwenden. Bitte beachten Sie, dass die Nutzung eines solchen Dienstes die Funktionalität dieser Webseite einschränken kann.

    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()');}

    }

    I'm brand new at this... I've been scouring the forum.

    I'd like to turn on the power to some fans if the switch temp hits a certain value. Using IP/rpc/Shelly.GetStatus I see that "temperature": {tC":47.3, "tF";117.1}.

    So I assume a script such as;

    switch.temperature.tC > 35 = turnon switch

    Or some such verbage. I have no programming knowledge... stumbling through this. Any hints are welcome!