| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136 | <html><head><meta charset='utf-8'><meta name='viewport' content='width=device-width,initial-scale=1,user-scalable=no'/><link rel='stylesheet' href='style.css'><title>WiFiThermostat - WTherm-T5WZ</title><script>  function g(i) { return document.getElementById(i) };  function sp(i){g(i).type=(g(i).type==='text'?'password':'text');}  var xhttp, reqTime, reqFin;  function setCbx(el, da) {    if(da == '1') {      el.checked = true;      el.style.visibility = 'visible';    }    else {      el.checked = false;      el.style.visibility = 'visible';    }  }  function updCbxVal(el) {    if (el.checked) el.value = '1';    else {      el.checked = true;    el.value = '0';      el.style.visibility = 'hidden';    }  }    function transmit(f) {    if (!xhttp) {       reqTime = 0;    reqFin = false;    xhttp = new XMLHttpRequest();    xhttp.timeout = 1000;    xhttp.overrideMimeType('application/json');    xhttp.open('POST', 'confDataAdv');    xhttp.send(f ? (new FormData(f)) : '');    xhttp.onreadystatechange = function () {      if (xhttp.readyState === XMLHttpRequest.DONE && xhttp.status === 200) {        var data = JSON.parse(xhttp.responseText);        g('tempDec').value = data.tempDec;        g('hyst').value = data.hyst;        g('minOffTime').value = data.minOffTime;        g('tempCorr').value = data.tempCorr;        g('humCorr').value = data.humCorr;        g('offMsg').value = data.offMsg;        g('iTempLab').value = data.iTempLab;        g('oTempLab').value = data.oTempLab;        g('modeName1').value = data.modeName1;        g('modeName0').value = data.modeName0;        g('psetName0').value = data.psetName0;        g('psetName1').value = data.psetName1;        g('psetName2').value = data.psetName2;        xhttp = null;        reqFin = true;       }       else {         if(!reqFin && reqTime > 10) {           xhttp = null;           reqFin = true;         }       }     }   }    return false;  }  //transmit();  function saveConf() {    g('frmConf').submit();  }  function init() {    transmit();  }  setInterval(function () { ++reqTime; }, 1000);</script></head><body onload='init()'><div id='main'><div id='head'>WiFiThermostat - WTherm-T5WZ</div><hr><div></div><b>Configuration - Thermostat Advanced</b><div class='config'><form id='frmConf' action='setConfAdv' method='POST'><br><fieldset><legend>Thermostat - Advanced</legend><p><b>Hysteresis [°C]</b><br><input type='text' name='hyst' id='hyst'></p><br><p><b>Min. Heating Off-Time [s]</b><br><input type='number' name='minOffTime' id='minOffTime'></p><p class='n'>Heating stays off for at least [x] seconds before it <br>can start again.</p><br><p><b>Measured Temp Correction [°C] *</b><br><input type='text' name='tempCorr' id='tempCorr'></p><p><b>Measured Hum Correction [%] *</b><br><input type='text' name='humCorr' id='humCorr'></p><p class='n'>* added to the measured values. <br>Can be negative and/or fractions. <br>Use if measurements deviate from a calibrated sensor.</p><br><p><b>Set Temp. Decrease Value **</b><br><input type='text' name='tempDec' id='tempDec'></p><p class='n'>** the actual set temperatur is decreased by that value.<br>Can be a fraction. Can be used to prevent over-heating <br>when the thermostat is badly placed.<br></p></fieldset><div></div><br><fieldset><legend>Names and Labels</legend><p class='n'>Used in some MQTT status/commands, <br>and also for the LCD and Web interface.<br></p><br><p><b>Off-Message</b><br><input type='text' name='offMsg' id='offMsg'></p><p class='n'>Shown on LCD in OFF mode. <br><b>max. 13 chars!</b></p><br><p>Labels</p><p class='n'>Used on LCD to identify the data displayed. <br><b>MUST be 1 char</b> or empty for default</p><p><b>Inside</b><br><input type='text' name='iTempLab' id='iTempLab'/></p><p><b>Outside</b><br><input type='text' name='oTempLab' id='oTempLab'/></p><br><p>Mode</p><p class='n'>Used in web interface and for Home Assistant <br>MQTT Climate component support. <br>Should be 'heat' and 'off' normally. <br><b>Case sensitive! Lower case recommended.</b><br>Web interface shows all in capitals.</p><p><b>On</b><br><input type='text' name='modeName1' id='modeName1'></p><p><b>Off</b><br><input type='text' name='modeName0' id='modeName0'></p><br><p>Preset Names</p><p class='n'>Used in web interface and for Home Assistant <br>MQTT Climate component support.<br>Also shown on LCD at preset change, <br>therefore may not exceed <b>13 chars!</b><br><b>Case sensitive!</b> Type exactly as in HA!</p><p><b>Normal *</b><br><input type='text' name='psetName0' id='psetName0'></p><p class='n'>* always sends/receives "<i>none</i>" as this is hardcoded in <br>Home Assistant MQTT Climate component</p><p><b>Reduction 1 **</b><br><input type='text' name='psetName1' id='psetName1'></p><p><b>Reduction 2 **</b><br><input type='text' name='psetName2' id='psetName2'></p><p class='n'>** sent/received as defined</p></fieldset><br></form><div></div><table style='width:100%'><td style='width:50%'><button onclick='location="conf";' class='bgrey'>Cancel</button></td><td style='width:50%'><button onclick='return saveConf()' class='bred'>Save</button></td></tr></table></div><div style='text-align:right;font-size:0.7em;color:#AAA;'><hr/><a href='https://git.flokra.at/flo/WiFiThermostat' target='_blank' style='color:#AAA;'>WiFiThermostat</a> v0.6.0 by <a href='https://www.flokra.at/' target='_blank' style='color:#AAA;'>FloKra</a></div></div></body></html>
 |