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