rename summer/winter switch to heatingMainSwitch

This commit is contained in:
2018-04-09 16:28:24 +02:00
parent 245002acad
commit f0d32b5a2b
7 changed files with 39 additions and 31 deletions

6
dist/main.js vendored
View File

@ -310,9 +310,9 @@ allLabeledItems.forEach((item) => {
// logger.info(JSON.stringify(openhabList))
}
});
let summerSwitchExport = MaxThermostat_1.MaxThermostat.exportSummerSwitchItem();
if (summerSwitchExport != null) {
let da = summerSwitchExport['openhab'];
let heatingMainSwitchExport = MaxThermostat_1.MaxThermostat.exportHeatingMainSwitchItem();
if (heatingMainSwitchExport != null) {
let da = heatingMainSwitchExport['openhab'];
openhabList.push(da);
}
fs.writeFileSync(config.dict.homekitFile, JSON.stringify(homekitObject, null, 4));