homebridge-levoit-humidifiers 1.14.0-dev4 → 1.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -61,7 +61,7 @@ class VeSyncAccessory {
61
61
  const { manufacturer, model, mac } = this.device;
62
62
  const config = platform.config;
63
63
  const accessories = config.accessories ? config.accessories : {};
64
- const mistAccessory = accessories.mist != false || accessories.cool_mist != false;
64
+ const mistAccessory = accessories.mist != false && accessories.cool_mist != false;
65
65
  const warmMistAccessory = accessories.warm_mist != false;
66
66
  const nightLightAccessory = accessories.night_light != false;
67
67
  const sleepModeAccessory = accessories.sleep_mode != false;
@@ -1 +1 @@
1
- {"version":3,"file":"MistLevel.d.ts","sourceRoot":"","sources":["../../src/characteristics/MistLevel.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EACxB,wBAAwB,EAGzB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAGvD,QAAA,MAAM,cAAc,EAAE;IACpB,GAAG,EAAE,wBAAwB,CAAC;IAC9B,GAAG,EAAE,wBAAwB,CAAC;CAC/B,GAAG,iBAgBH,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"MistLevel.d.ts","sourceRoot":"","sources":["../../src/characteristics/MistLevel.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EACxB,wBAAwB,EAGzB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAGvD,QAAA,MAAM,cAAc,EAAE;IACpB,GAAG,EAAE,wBAAwB,CAAC;IAC9B,GAAG,EAAE,wBAAwB,CAAC;CAC/B,GAAG,iBAmBH,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -11,7 +11,9 @@ const characteristic = {
11
11
  await this.device.setPower(false);
12
12
  }
13
13
  else {
14
- if (!this.device.deviceType.hasWarmMode) {
14
+ if (!this.device.deviceType.hasWarmMode ||
15
+ this.device.model.includes('LUH-O601S') // This model has a Warm Mode, but it doesn't support changing mist levels in sleep mode
16
+ ) {
15
17
  await this.device.changeMode(VeSyncFan_1.Mode.Manual);
16
18
  }
17
19
  await this.device.changeMistLevel(Number(value));
@@ -1 +1 @@
1
- {"version":3,"file":"MistLevel.js","sourceRoot":"","sources":["../../src/characteristics/MistLevel.ts"],"names":[],"mappings":";;AAQA,gDAAwC;AAExC,MAAM,cAAc,GAGI;IACtB,GAAG,EAAE,KAAK;QACR,MAAM,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC;QAC/B,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;IACtD,CAAC;IAED,GAAG,EAAE,KAAK,WAAW,KAA0B;QAC7C,IAAI,KAAK,IAAI,CAAC,EAAE;YACd,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;SACnC;aAAM;YACL,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,WAAW,EAAE;gBACvC,MAAM,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,gBAAI,CAAC,MAAM,CAAC,CAAC;aAC3C;YACD,MAAM,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;SAClD;IACH,CAAC;CACF,CAAC;AAEF,kBAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"MistLevel.js","sourceRoot":"","sources":["../../src/characteristics/MistLevel.ts"],"names":[],"mappings":";;AAQA,gDAAwC;AAExC,MAAM,cAAc,GAGI;IACtB,GAAG,EAAE,KAAK;QACR,MAAM,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC;QAC/B,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;IACtD,CAAC;IAED,GAAG,EAAE,KAAK,WAAW,KAA0B;QAC7C,IAAI,KAAK,IAAI,CAAC,EAAE;YACd,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;SACnC;aAAM;YACL,IACE,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,WAAW;gBACnC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,wFAAwF;cAChI;gBACA,MAAM,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,gBAAI,CAAC,MAAM,CAAC,CAAC;aAC3C;YACD,MAAM,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;SAClD;IACH,CAAC;CACF,CAAC;AAEF,kBAAe,cAAc,CAAC"}
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "displayName": "Levoit Humidifiers",
5
5
  "main": "dist/index.js",
6
6
  "license": "Apache-2.0",
7
- "version": "1.14.0-dev4",
7
+ "version": "1.14.0",
8
8
  "private": false,
9
9
  "bugs": {
10
10
  "url": "https://github.com/pschroeder89/homebridge-levoit-humidifiers/issues"