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 +12 -25
- package/dist/api/deviceTypes.d.ts +2 -1
- package/dist/api/deviceTypes.d.ts.map +1 -1
- package/dist/api/deviceTypes.js +8 -1
- package/dist/api/deviceTypes.js.map +1 -1
- package/images/auto.png +0 -0
- package/images/humidity.png +0 -0
- package/images/off.png +0 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,44 +1,31 @@
|
|
|
1
|
-
[](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
|
-
|
|
|
10
|
-
|
|
|
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
|
-
|
|
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
|
-
|
|
28
|
-
-
|
|
29
|
-
|
|
30
|
-
|
|
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
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deviceTypes.d.ts","sourceRoot":"","sources":["../../src/api/deviceTypes.ts"],"names":[],"mappings":"AAAA,oBAAY,UAAU;IACpB,WAAW,SAAS;
|
|
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"}
|
package/dist/api/deviceTypes.js
CHANGED
|
@@ -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,
|
|
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"}
|
package/images/auto.png
ADDED
|
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.
|
|
7
|
+
"version": "1.2.5",
|
|
8
8
|
"private": false,
|
|
9
9
|
"bugs": {
|
|
10
|
-
"url": "https://github.com/
|
|
10
|
+
"url": "https://github.com/pschroeder89/homebridge-levoit-humidifiers/issues"
|
|
11
11
|
},
|
|
12
12
|
"repository": {
|
|
13
|
-
"url": "git://github.com/
|
|
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/
|
|
52
|
+
"homepage": "https://github.com/pschroeder89/homebridge-levoit-humidifiers#readme",
|
|
53
53
|
"author": "Paul Schroeder"
|
|
54
54
|
}
|