homebridge-levoit-humidifiers 1.3.1 → 1.4.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.
package/README.md CHANGED
@@ -9,27 +9,39 @@ This is a Homebridge plugin to control Levoit Humidifiers via the VeSync Platfor
9
9
  | Dual 200S | ✅ |
10
10
  | Dual 200S (EU model) | ✅ |
11
11
  | Dual 200S (UK model) | ✅ |
12
+ | LV600S (cool mode only) | ✅ |
12
13
 
13
- This plugin was forked from [RaresAil's Levoit Air Purifiers repo](https://github.com/RaresAil/homebridge-levoit-air-purifier) and adds logic for the Levoit humidifers.
14
+ This plugin was forked
15
+ from [RaresAil's Levoit Air Purifiers repo](https://github.com/RaresAil/homebridge-levoit-air-purifier) and adds logic
16
+ for the Levoit humidifers.
14
17
 
15
18
  ### Features
16
19
 
17
20
  1. Set Mist Level
18
- - Levels 1-9 on Classic300s and Classic200s
19
- - Levels 1-2 on Dual200s, Dual200S EU, and Dual200S UK
21
+ - Levels 1-9 on Classic300s, Classic200s, and LV600S
22
+ - Levels 1-2 on Dual200s, Dual200S EU, and Dual200S UK
20
23
 
21
24
  2. Mode change
22
- - Auto
23
- - Manual
25
+ - Auto
26
+ - Manual
27
+
28
+ ### TODOs
29
+
30
+ * Add Sleep Mode
31
+ * Add LV600S Warm Mode
32
+ * Improve Auto Mode to specify target humidity
33
+
34
+ ### Details
24
35
 
25
36
  <a href="url"><img src="https://github.com/pschroeder89/homebridge-levoit-humidifiers/blob/main/images/auto.png?raw=true" width=25% height=25%></a>
26
37
  <a href="url"><img src="https://github.com/pschroeder89/homebridge-levoit-humidifiers/blob/main/images/humidity.png?raw=true" width=25% height=25%></a>
27
38
  <a href="url"><img src="https://github.com/pschroeder89/homebridge-levoit-humidifiers/blob/main/images/off.png?raw=true" width=25% height=25%></a>
28
39
 
29
- The read data is cached for 5 seconds to not trigger the rate limiter for the API.
30
- Each request is delayed by 500ms to not trigger the rate limiter if a huge number of requests are sent.
40
+ The read data is cached for 5 seconds to not trigger the rate limiter for the API. Each request is delayed by 500ms to
41
+ not trigger the rate limiter if a huge number of requests are sent.
31
42
 
32
- The timers are not included because you can accomplish similar results by using Home App's Automation or the Shortcuts app
43
+ The timers are not included because you can accomplish similar results by using Home App's Automation or the Shortcuts
44
+ app
33
45
 
34
46
  ### Configuration
35
47
 
@@ -38,9 +50,11 @@ The timers are not included because you can accomplish similar results by using
38
50
  - Setup the platform plugin as a child bridge for better performance
39
51
  - Save and restart Homebridge.
40
52
 
41
- This plugin requires your VeSync credentials as it communicates with the VeSync devices via VeSync's own API. Your credentials are only stored in the Homebridge config and not sent to any server except VeSync's.
53
+ This plugin requires your VeSync credentials as it communicates with the VeSync devices via VeSync's own API. Your
54
+ credentials are only stored in the Homebridge config and not sent to any server except VeSync's.
42
55
 
43
- You can also do this directly via the homebridge config by adding your credentials to the config file under platforms. Replace the values of `username` and `password` by your credentials.
56
+ You can also do this directly via the homebridge config by adding your credentials to the config file under platforms.
57
+ Replace the values of `username` and `password` by your credentials.
44
58
 
45
59
  ```json
46
60
  {
@@ -3,7 +3,8 @@ export declare enum DeviceName {
3
3
  Classic200S = "Classic200S",
4
4
  Dual200S = "Dual200S",
5
5
  Dual200S_EU = "LUH-D301S-WEU",
6
- Dual200S_UK = "LUH-D301S-WUK"
6
+ Dual200S_UK = "LUH-D301S-WUK",
7
+ LV600S = "LUH-A602S-WUS"
7
8
  }
8
9
  export interface DeviceType {
9
10
  isValid: (input: string) => boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"deviceTypes.d.ts","sourceRoot":"","sources":["../../src/api/deviceTypes.ts"],"names":[],"mappings":"AAAA,oBAAY,UAAU;IAClB,WAAW,gBAAgB;IAC3B,WAAW,gBAAgB;IAC3B,QAAQ,aAAa;IACrB,WAAW,kBAAkB;IAC7B,WAAW,kBAAkB;CAChC;AAED,MAAM,WAAW,UAAU;IACvB,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC;IACpC,WAAW,EAAE,OAAO,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;CACxB;AAED,QAAA,MAAM,WAAW,EAAE,UAAU,EAiC5B,CAAC;AAEF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"deviceTypes.d.ts","sourceRoot":"","sources":["../../src/api/deviceTypes.ts"],"names":[],"mappings":"AAAA,oBAAY,UAAU;IAClB,WAAW,gBAAgB;IAC3B,WAAW,gBAAgB;IAC3B,QAAQ,aAAa;IACrB,WAAW,kBAAkB;IAC7B,WAAW,kBAAkB;IAC7B,MAAM,kBAAkB;CAC3B;AAED,MAAM,WAAW,UAAU;IACvB,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC;IACpC,WAAW,EAAE,OAAO,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;CACxB;AAED,QAAA,MAAM,WAAW,EAAE,UAAU,EAwC5B,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -8,6 +8,7 @@ var DeviceName;
8
8
  DeviceName["Dual200S"] = "Dual200S";
9
9
  DeviceName["Dual200S_EU"] = "LUH-D301S-WEU";
10
10
  DeviceName["Dual200S_UK"] = "LUH-D301S-WUK";
11
+ DeviceName["LV600S"] = "LUH-A602S-WUS";
11
12
  })(DeviceName = exports.DeviceName || (exports.DeviceName = {}));
12
13
  const deviceTypes = [
13
14
  {
@@ -40,6 +41,12 @@ const deviceTypes = [
40
41
  mistMinLevel: 1,
41
42
  mistLevels: 2
42
43
  },
44
+ {
45
+ isValid: (input) => input.includes(DeviceName.LV600S),
46
+ hasAutoMode: true,
47
+ mistMinLevel: 1,
48
+ mistLevels: 9
49
+ },
43
50
  ];
44
51
  exports.default = deviceTypes;
45
52
  //# sourceMappingURL=deviceTypes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"deviceTypes.js","sourceRoot":"","sources":["../../src/api/deviceTypes.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,QAAQ,CAAC,UAAU,CAAC,MAAM,CAAC;QACrC,WAAW,EAAE,IAAI;QACjB,YAAY,EAAE,CAAC;QACf,UAAU,EAAE,CAAC;KAChB;CACJ,CAAC;AAEF,kBAAe,WAAW,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.3.1",
7
+ "version": "1.4.0",
8
8
  "private": false,
9
9
  "bugs": {
10
10
  "url": "https://github.com/pschroeder89/homebridge-levoit-humidifiers/issues"