homebridge-levoit-humidifiers 1.2.1 → 1.2.5

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
@@ -1,44 +1,31 @@
1
- [![Build and Lint](https://github.com/RaresAil/homebridge-levoit-humidifiers/actions/workflows/build.yml/badge.svg)](https://github.com/RaresAil/homebridge-levoit-humidifier/actions/workflows/build.yml)
2
-
3
1
  # Homebridge Levoit Humidifiers
4
2
 
5
3
  This is a Homebridge plugin to control Levoit Humidifiers with via the VeSync Platform.
6
4
 
7
5
  | Supported Versions | Tested |
8
6
  | ------------------ | -------------------------------- |
9
- | Core 300S | ✅ |
10
- | Core 400S | ✅ |
11
- | Core 400S Pro | ✅ |
12
- | Core 200S | ❔ (Untested but it should work) |
13
-
14
- **If you have the version 400S or 200S and you have issues,
15
- please open a issue and if it can be fixed without owning one
16
- of those models i will fix it, if not i will omit the specified
17
- model from the plugin.**
18
-
19
- This plugin uses similar API calls as
20
- [homebridge-levoitcore-client](https://github.com/tushardhadiwal/homebridge-levoitcore-client) but with differences on API implementation
21
- and extra features.
7
+ | Classic 300S | ✅ |
8
+ | Dual 200S | ✅ |
22
9
 
23
- Any device from VeSync that is not listed in the supported versions are automatically skipped when discovering devices.
10
+ 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.
24
11
 
25
12
  ### Features
26
13
 
27
- #. MistLevel option:
28
- - 0 -> Off
29
- - 1 -> Sleep Mode
30
- - 2 -> Level 1
31
- - 3 -> Level 2
32
- - 4 -> Level 3
33
- - 5 -> Level 4 (Only for Core 400S and 400S Pro)
34
- #. Mode change
14
+ 1. Set Mist Level
15
+ - Levels 1-9 on 300s, 1-2 on 200s
16
+
17
+ 2. Mode change
35
18
  - Auto
36
19
  - Manual
37
20
 
21
+ <a href="url"><img src="https://github.com/pschroeder89/homebridge-levoit-humidifiers/blob/main/images/auto.png?raw=true" width=25% height=25%></a>
22
+ <a href="url"><img src="https://github.com/pschroeder89/homebridge-levoit-humidifiers/blob/main/images/humidity.png?raw=true" width=25% height=25%></a>
23
+ <a href="url"><img src="https://github.com/pschroeder89/homebridge-levoit-humidifiers/blob/main/images/off.png?raw=true" width=25% height=25%></a>
24
+
38
25
  The read data is cached for 5 seconds to not trigger the rate limiter for the API.
39
26
  Each request is delayed by 500ms to not trigger the rate limiter if a huge number of requests are sent.
40
27
 
41
- The timers are not included because you can accomplish similar results by using Home App's Automatization or the Shortcuts app
28
+ The timers are not included because you can accomplish similar results by using Home App's Automation or the Shortcuts app
42
29
 
43
30
  ### Configuration
44
31
 
@@ -1,5 +1,6 @@
1
1
  export declare enum DeviceName {
2
- Classic300S = "300S"
2
+ Classic300S = "300S",
3
+ Dual200S = "Dual200S"
3
4
  }
4
5
  export interface DeviceType {
5
6
  isValid: (input: string) => boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"deviceTypes.d.ts","sourceRoot":"","sources":["../../src/api/deviceTypes.ts"],"names":[],"mappings":"AAAA,oBAAY,UAAU;IACpB,WAAW,SAAS;CACrB;AAED,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC;IACpC,WAAW,EAAE,OAAO,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,QAAA,MAAM,WAAW,EAAE,UAAU,EAQ5B,CAAC;AAEF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"deviceTypes.d.ts","sourceRoot":"","sources":["../../src/api/deviceTypes.ts"],"names":[],"mappings":"AAAA,oBAAY,UAAU;IACpB,WAAW,SAAS;IACpB,QAAQ,aAAa;CACtB;AAED,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC;IACpC,WAAW,EAAE,OAAO,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,QAAA,MAAM,WAAW,EAAE,UAAU,EAc5B,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -4,6 +4,7 @@ exports.DeviceName = void 0;
4
4
  var DeviceName;
5
5
  (function (DeviceName) {
6
6
  DeviceName["Classic300S"] = "300S";
7
+ DeviceName["Dual200S"] = "Dual200S";
7
8
  })(DeviceName = exports.DeviceName || (exports.DeviceName = {}));
8
9
  const deviceTypes = [
9
10
  {
@@ -11,7 +12,13 @@ const deviceTypes = [
11
12
  hasAutoMode: true,
12
13
  mistMinLevel: 1,
13
14
  mistLevels: 9
14
- }
15
+ },
16
+ {
17
+ isValid: (input) => input.includes(DeviceName.Dual200S),
18
+ hasAutoMode: true,
19
+ mistMinLevel: 1,
20
+ mistLevels: 2
21
+ },
15
22
  ];
16
23
  exports.default = deviceTypes;
17
24
  //# sourceMappingURL=deviceTypes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"deviceTypes.js","sourceRoot":"","sources":["../../src/api/deviceTypes.ts"],"names":[],"mappings":";;;AAAA,IAAY,UAEX;AAFD,WAAY,UAAU;IACpB,kCAAoB,CAAA;AACtB,CAAC,EAFW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAErB;AASD,MAAM,WAAW,GAAiB;IAChC;QACE,OAAO,EAAE,CAAC,KAAa,EAAE,EAAE,CACzB,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,WAAW,CAAC;QACxC,WAAW,EAAE,IAAI;QACjB,YAAY,EAAE,CAAC;QACf,UAAU,EAAE,CAAC;KACd;CACF,CAAC;AAEF,kBAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"deviceTypes.js","sourceRoot":"","sources":["../../src/api/deviceTypes.ts"],"names":[],"mappings":";;;AAAA,IAAY,UAGX;AAHD,WAAY,UAAU;IACpB,kCAAoB,CAAA;IACpB,mCAAqB,CAAA;AACvB,CAAC,EAHW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAGrB;AASD,MAAM,WAAW,GAAiB;IAChC;QACE,OAAO,EAAE,CAAC,KAAa,EAAE,EAAE,CACzB,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,WAAW,CAAC;QACxC,WAAW,EAAE,IAAI;QACjB,YAAY,EAAE,CAAC;QACf,UAAU,EAAE,CAAC;KACd;IACD;QACE,OAAO,EAAE,CAAC,KAAa,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC;QAC/D,WAAW,EAAE,IAAI;QACjB,YAAY,EAAE,CAAC;QACf,UAAU,EAAE,CAAC;KACd;CACF,CAAC;AAEF,kBAAe,WAAW,CAAC"}
Binary file
Binary file
package/images/off.png ADDED
Binary file
package/package.json CHANGED
@@ -4,13 +4,13 @@
4
4
  "displayName": "Levoit Humidifiers",
5
5
  "main": "dist/index.js",
6
6
  "license": "Apache-2.0",
7
- "version": "1.2.1",
7
+ "version": "1.2.5",
8
8
  "private": false,
9
9
  "bugs": {
10
- "url": "https://github.com/RaresAil/homebridge-levoit-humidifiers/issues"
10
+ "url": "https://github.com/pschroeder89/homebridge-levoit-humidifiers/issues"
11
11
  },
12
12
  "repository": {
13
- "url": "git://github.com/RaresAil/homebridge-levoit-humidifiers.git",
13
+ "url": "git://github.com/pschroeder89/homebridge-levoit-humidifiers.git",
14
14
  "type": "git"
15
15
  },
16
16
  "scripts": {
@@ -49,6 +49,6 @@
49
49
  "300s"
50
50
  ],
51
51
  "types": "./dist/index.d.ts",
52
- "homepage": "https://github.com/RaresAil/homebridge-levoit-humidifiers#readme",
52
+ "homepage": "https://github.com/pschroeder89/homebridge-levoit-humidifiers#readme",
53
53
  "author": "Paul Schroeder"
54
54
  }