homebridge-levoit-humidifiers 1.5.0-beta4 → 1.5.0-beta5
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.
- package/README.md +11 -10
- package/dist/characteristics/SleepState.js +1 -1
- package/dist/characteristics/SleepState.js.map +1 -1
- package/dist/characteristics/TargetHumidity.d.ts.map +1 -1
- package/dist/characteristics/TargetHumidity.js +4 -3
- package/dist/characteristics/TargetHumidity.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -17,18 +17,17 @@ for the Levoit humidifers.
|
|
|
17
17
|
|
|
18
18
|
### Features
|
|
19
19
|
|
|
20
|
-
1.
|
|
20
|
+
1. Target Humidity
|
|
21
|
+
- Sets humidifier to Auto and sets the Target Humidity to the desired level.
|
|
22
|
+
|
|
23
|
+
2. Mist Level
|
|
24
|
+
- Sets humidifier to Manual and sets the Mist Level to the desired level.
|
|
21
25
|
- Levels 1-9 on Classic300s, Classic200s, and LV600S
|
|
22
26
|
- Levels 1-2 on Dual200s, Dual200S EU, and Dual200S UK
|
|
23
27
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
- Off
|
|
28
|
-
|
|
29
|
-
3. Sleep Mode Switch
|
|
30
|
-
- This switches the device between Sleep Mode (On) and Manual Mode (Off)
|
|
31
|
-
- Sleep Mode humidity threshold should be adjusted within the VeSync app.
|
|
28
|
+
3. Sleep Mode
|
|
29
|
+
- This switches the device between Sleep Mode (On) and Auto Mode (Off)
|
|
30
|
+
- Sleep Mode Target Humidity is controlled by the Target Humidity slider, too.
|
|
32
31
|
|
|
33
32
|
4. Night Light
|
|
34
33
|
- Supported on LV600S and Classic300s
|
|
@@ -37,10 +36,12 @@ for the Levoit humidifers.
|
|
|
37
36
|
5. Display Toggle
|
|
38
37
|
- Toggle the display on/off
|
|
39
38
|
|
|
39
|
+
6. Humidity Sensor
|
|
40
|
+
- Sensor that displays current Humidity %
|
|
41
|
+
|
|
40
42
|
### TODOs
|
|
41
43
|
|
|
42
44
|
* Add LV600S Warm Mode
|
|
43
|
-
* Improve Auto Mode to specify target humidity
|
|
44
45
|
|
|
45
46
|
### Details
|
|
46
47
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SleepState.js","sourceRoot":"","sources":["../../src/characteristics/SleepState.ts"],"names":[],"mappings":";;AAMA,gDAAsC;AAItC,MAAM,cAAc,GAGI;IACpB,GAAG,EAAE,KAAK;QACN,MAAM,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC;QAE/B,oEAAoE;QACpE,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE;YACnB,OAAO,KAAK,CAAC;SAChB;QAED,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,gBAAI,CAAC,KAAK,CAAC;IAC3C,CAAC;IACD,GAAG,EAAE,KAAK,WAAW,KAA0B;QAC3C,QAAQ,KAAK,EAAE;YACX,KAAK,IAAI;gBACL,MAAM,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,gBAAI,CAAC,KAAK,CAAC,CAAC;gBACzC,MAAM;YACV,KAAK,KAAK;gBACN,MAAM,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,gBAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"SleepState.js","sourceRoot":"","sources":["../../src/characteristics/SleepState.ts"],"names":[],"mappings":";;AAMA,gDAAsC;AAItC,MAAM,cAAc,GAGI;IACpB,GAAG,EAAE,KAAK;QACN,MAAM,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC;QAE/B,oEAAoE;QACpE,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE;YACnB,OAAO,KAAK,CAAC;SAChB;QAED,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,gBAAI,CAAC,KAAK,CAAC;IAC3C,CAAC;IACD,GAAG,EAAE,KAAK,WAAW,KAA0B;QAC3C,QAAQ,KAAK,EAAE;YACX,KAAK,IAAI;gBACL,MAAM,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,gBAAI,CAAC,KAAK,CAAC,CAAC;gBACzC,MAAM;YACV,KAAK,KAAK;gBACN,MAAM,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,gBAAI,CAAC,IAAI,CAAC,CAAC;gBACxC,MAAM;SACb;IACL,CAAC;CACJ,CAAC;AAEF,kBAAe,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TargetHumidity.d.ts","sourceRoot":"","sources":["../../src/characteristics/TargetHumidity.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,wBAAwB,EAAE,wBAAwB,EAGrD,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAC,iBAAiB,EAAC,MAAM,oBAAoB,CAAC;AAGrD,QAAA,MAAM,cAAc,EAAE;IAClB,GAAG,EAAE,wBAAwB,CAAC;IAC9B,GAAG,EAAE,wBAAwB,CAAC;CACjC,GAAG,
|
|
1
|
+
{"version":3,"file":"TargetHumidity.d.ts","sourceRoot":"","sources":["../../src/characteristics/TargetHumidity.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,wBAAwB,EAAE,wBAAwB,EAGrD,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAC,iBAAiB,EAAC,MAAM,oBAAoB,CAAC;AAGrD,QAAA,MAAM,cAAc,EAAE;IAClB,GAAG,EAAE,wBAAwB,CAAC;IAC9B,GAAG,EAAE,wBAAwB,CAAC;CACjC,GAAG,iBAeH,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -4,8 +4,8 @@ const VeSyncFan_1 = require("../api/VeSyncFan");
|
|
|
4
4
|
const characteristic = {
|
|
5
5
|
get: async function () {
|
|
6
6
|
await this.device.updateInfo();
|
|
7
|
-
// If not in auto
|
|
8
|
-
if (this.device.mode == VeSyncFan_1.Mode.Auto) {
|
|
7
|
+
// If not in auto or sleep modes, don't display the target humidity in the slider
|
|
8
|
+
if (this.device.mode == VeSyncFan_1.Mode.Auto || this.device.mode == VeSyncFan_1.Mode.Sleep) {
|
|
9
9
|
return this.device.targetHumidity;
|
|
10
10
|
}
|
|
11
11
|
else {
|
|
@@ -13,7 +13,8 @@ const characteristic = {
|
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
set: async function (humidity) {
|
|
16
|
-
|
|
16
|
+
if (this.device.mode == VeSyncFan_1.Mode.Manual)
|
|
17
|
+
await this.device.changeMode(VeSyncFan_1.Mode.Auto);
|
|
17
18
|
return await this.device.setTargetHumidity(Number(humidity));
|
|
18
19
|
}
|
|
19
20
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TargetHumidity.js","sourceRoot":"","sources":["../../src/characteristics/TargetHumidity.ts"],"names":[],"mappings":";;AAOA,gDAAsC;AAEtC,MAAM,cAAc,GAGI;IACpB,GAAG,EAAE,KAAK;QACN,MAAM,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC;QAC/B,
|
|
1
|
+
{"version":3,"file":"TargetHumidity.js","sourceRoot":"","sources":["../../src/characteristics/TargetHumidity.ts"],"names":[],"mappings":";;AAOA,gDAAsC;AAEtC,MAAM,cAAc,GAGI;IACpB,GAAG,EAAE,KAAK;QACN,MAAM,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC;QAC/B,iFAAiF;QACjF,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,IAAI,gBAAI,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,IAAI,gBAAI,CAAC,KAAK,EAAE;YACjE,OAAO,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC;SACrC;aAAM;YACH,OAAO,CAAC,CAAC;SACZ;IACL,CAAC;IACD,GAAG,EAAE,KAAK,WAAW,QAA6B;QAC9C,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,IAAI,gBAAI,CAAC,MAAM;YAC/B,MAAM,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,gBAAI,CAAC,IAAI,CAAC,CAAC;QAC5C,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC;IACjE,CAAC;CACJ,CAAC;AAEF,kBAAe,cAAc,CAAC"}
|
package/package.json
CHANGED