homebridge-levoit-humidifiers
Version:
Homebridge plugin for Levoit Humidifiers
21 lines • 553 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const characteristic = {
get: async function () {
await this.device.updateInfo();
if (this.device.isOn) {
return true;
}
else {
return false;
}
},
set: async function (value) {
const boolValue = value == 1;
if (boolValue !== this.device.isOn) {
await this.device.setPower(boolValue);
}
},
};
exports.default = characteristic;
//# sourceMappingURL=Active.js.map