homebridge-levoit-air-purifier
Version:
Made for Core 200S/300S/400S/400S Pro/600S
22 lines • 640 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const characteristic = {
get: async function () {
await this.device.updateInfo();
return this.device.targetHumidity;
},
set: async function (value) {
let newTarget = value;
if (newTarget < 30) {
newTarget = 30;
}
if (newTarget > 80) {
newTarget = 80;
}
if (newTarget !== this.device.targetHumidity) {
this.device.setTarget(newTarget);
}
}
};
exports.default = characteristic;
//# sourceMappingURL=RelativeHumidityHumidifierThreshold.js.map