homebridge-daikin-smart-ac
Version:
A Homebridge plugin for Daikin Wifi Adapter AC using Local API
21 lines • 837 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const characteristic = {
get: async function () {
await this.daikinAC.getControlInfo();
return this.daikinAC.HeatingThresholdTemperature;
},
set: async function (value) {
const temperature = parseFloat(value.toString());
if (temperature !== this.daikinAC.HeatingThresholdTemperature) {
const prevValue = this.daikinAC.HeatingThresholdTemperature;
this.daikinAC.HeatingThresholdTemperature = temperature;
const success = await this.daikinAC.saveControlInfo();
if (!success) {
this.daikinAC.HeatingThresholdTemperature = prevValue;
}
}
}
};
exports.default = characteristic;
//# sourceMappingURL=HeatingThresholdTemperature.js.map