Skip to content

Commit

Permalink
custom
Browse files Browse the repository at this point in the history
  • Loading branch information
tp1de committed Aug 14, 2024
1 parent 8b3934a commit bf6469f
Showing 1 changed file with 0 additions and 33 deletions.
33 changes: 0 additions & 33 deletions lib/custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -344,39 +344,6 @@ async function ems_poll() {
if (adapter.config.km200_structure) st = st.replace("thermostat", "heatingCircuits");

try { if (st != "") val = (await adapter.getStateAsync(st)).val; } catch (e) { }
//adapter.log.debug("state: " +st + " "+ val);

/*
if (val == 0) {
telegram = busid + " ";
hexValue = parseInt(switchTimes[i].src, 16);
hexValue = hexValue + 0x80;
dest = hexValue.toString(16).toUpperCase();
telegram += dest + " FF 13 01 ";
telegram += switchTimes[i].typei.substr(0, 2) + " ";
telegram += switchTimes[i].typei.substr(2, 2) + " ";
urls = emsesp + "/api/system/send ";
await ems_put(urls, telegram);
response = "";
url = emsesp + "/api/system/response ";
type = switchTimes[i].typei;
[typer, offsetr, response] = await resp(url, urls, init, type, telegram);
if (type == typer) {
let val = JSON.parse(response).value;
if (val == 0) {
type = switchTimes[i].type1;
switchTimes[i].typei = "";
switchTimes[i].type2 = "";
switchTimes[i].offseti = "";
}
if (val == 1) type = switchTimes[i].type1;
if (val == 2) type = switchTimes[i].type2;
}
}
else type = switchTimes[i].type1;
*/


}

Expand Down

0 comments on commit bf6469f

Please sign in to comment.