homebridge-levoit-humidifiers 1.7.0-beta1 → 1.7.0-beta2

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.
@@ -22,6 +22,47 @@
22
22
  "type": "string",
23
23
  "required": true,
24
24
  "description": "VeSync's account password"
25
+ },
26
+ "password": {
27
+ "title": "Password",
28
+ "type": "string",
29
+ "required": true,
30
+ "description": "VeSync's account password"
31
+ },
32
+ "accessories": {
33
+ "type": "object",
34
+ "properties": {
35
+ "cool_mist": {
36
+ "title": "Cool Mist Fan",
37
+ "type": "boolean",
38
+ "default": true,
39
+ "description": "Enable fan for the Cool Mist"
40
+ },
41
+ "warm_mist": {
42
+ "title": "Warm Mist Fan",
43
+ "type": "boolean",
44
+ "default": true,
45
+ "description": "Enable fan for Warm Mist"
46
+ },
47
+ "sleep_mode": {
48
+ "title": "Sleep Mode Switch",
49
+ "type": "boolean",
50
+ "default": true,
51
+ "description": "Enable switch for Sleep Mode"
52
+ },
53
+ "display": {
54
+ "title": "Display Switch",
55
+ "type": "boolean",
56
+ "default": true,
57
+ "description": "Enable switch for the Display"
58
+ },
59
+ "night_light": {
60
+ "title": "Night Light Slider",
61
+ "type": "boolean",
62
+ "default": true,
63
+ "description": "Enable brightness slider / switch for the Night Light"
64
+ }
65
+ }
25
66
  }
26
67
  }
27
68
  }
@@ -1 +1 @@
1
- {"version":3,"file":"WarmActive.d.ts","sourceRoot":"","sources":["../../src/characteristics/WarmActive.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,wBAAwB,EAAE,wBAAwB,EAGrD,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAC,iBAAiB,EAAC,MAAM,oBAAoB,CAAC;AAErD,QAAA,MAAM,cAAc,EAAE;IACd,GAAG,EAAE,wBAAwB,CAAC;IAC9B,GAAG,EAAE,wBAAwB,CAAC;CACjC,GAAG,iBAeH,CACJ;AAED,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"WarmActive.d.ts","sourceRoot":"","sources":["../../src/characteristics/WarmActive.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,wBAAwB,EAAE,wBAAwB,EAGrD,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAC,iBAAiB,EAAC,MAAM,oBAAoB,CAAC;AAErD,QAAA,MAAM,cAAc,EAAE;IACd,GAAG,EAAE,wBAAwB,CAAC;IAC9B,GAAG,EAAE,wBAAwB,CAAC;CACjC,GAAG,iBAsBH,CACJ;AAED,eAAe,cAAc,CAAC"}
@@ -12,7 +12,14 @@ const characteristic = {
12
12
  await this.device.updateInfo();
13
13
  }
14
14
  else if (!this.device.warmEnabled && this.device.warmLevel == 0) {
15
- await this.device.changeWarmMistLevel(this.device.expectedWarmLevel);
15
+ /*
16
+ If turning on Warm Mode from Off state, we set it to the highest warmMistLevel value.
17
+ This is because we can't determine the selected slider number from the WarmMistLevel characteristic.
18
+ This appears like a bug (from Off, set to lowest level, but it will set to highest level instead),
19
+ but there's not a good way to handle this since VeSync doesn't have an on/off for Warm Mode, just
20
+ level selection.
21
+ */
22
+ await this.device.changeWarmMistLevel(Number(this.device.deviceType.warmMistLevels));
16
23
  await this.device.updateInfo();
17
24
  }
18
25
  }
@@ -1 +1 @@
1
- {"version":3,"file":"WarmActive.js","sourceRoot":"","sources":["../../src/characteristics/WarmActive.ts"],"names":[],"mappings":";;AAQA,MAAM,cAAc,GAGQ;IACpB,GAAG,EAAE,KAAK;QACN,MAAM,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC;QAC/B,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;IACzD,CAAC;IACD,GAAG,EAAE,KAAK,WAAW,KAA0B;QAC3C,MAAM,SAAS,GAAG,KAAK,IAAI,CAAC,CAAC;QAC7B,IAAI,CAAC,SAAS,EAAE;YACZ,MAAM,IAAI,CAAC,MAAM,CAAC,mBAAmB,CAAC,CAAC,CAAC,C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;AAED,kBAAe,cAAc,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"WarmMistLevel.d.ts","sourceRoot":"","sources":["../../src/characteristics/WarmMistLevel.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,wBAAwB,EACxB,wBAAwB,EAG3B,MAAM,YAAY,CAAC;AAGpB,OAAO,EAAC,iBAAiB,EAAC,MAAM,oBAAoB,CAAC;AAOrD,QAAA,MAAM,cAAc,EAAE;IAClB,GAAG,EAAE,wBAAwB,CAAC;IAC9B,GAAG,EAAE,wBAAwB,CAAC;CACjC,GAAG,iBAoBH,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"WarmMistLevel.d.ts","sourceRoot":"","sources":["../../src/characteristics/WarmMistLevel.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,wBAAwB,EACxB,wBAAwB,EAG3B,MAAM,YAAY,CAAC;AAGpB,OAAO,EAAC,iBAAiB,EAAC,MAAM,oBAAoB,CAAC;AAOrD,QAAA,MAAM,cAAc,EAAE;IAClB,GAAG,EAAE,wBAAwB,CAAC;IAC9B,GAAG,EAAE,wBAAwB,CAAC;CACjC,GAAG,iBAmBH,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -10,9 +10,8 @@ const characteristic = {
10
10
  return calculateWarmMistLevel(this.device);
11
11
  },
12
12
  set: async function (value) {
13
- this.device.expectedWarmLevel = value;
14
13
  if (!this.device.warmEnabled && value > 0) {
15
- // if from Off state and level is greater than 0, return immediately
14
+ // if from Off state and level is greater than 0, return immediately.
16
15
  return;
17
16
  }
18
17
  if (this.device.warmEnabled && value == 0) {
@@ -1 +1 @@
1
- {"version":3,"file":"WarmMistLevel.js","sourceRoot":"","sources":["../../src/characteristics/WarmMistLevel.ts"],"names":[],"mappings":";;AAUA,MAAM,sBAAsB,GAAG,CAAC,MAAiB,EAAE,EAAE;IACjD,MAAM,gBAAgB,GAAG,MAAM,CAAC,SAAS,CAAC;IAC1C,OAAO,MAAM,CAAC,IA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AAM,CAAC,WAAW,IAAI,KAAK,GAAG,CAAC,EAAC;YACtC,qEAAqE;YACrE,OAAO;SACV;QACD,IAAI,IAAI,CAAC,MAAM,CAAC,WAAW,IAAI,KAAK,IAAI,CAAC,EAAC;YACtC,gEAAgE;YAChE,OAAO;SACV;QAED,MAAM,IAAI,CAAC,MAAM,CAAC,mBAAmB,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;IAEzD,CAAC;CACJ,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.7.0-beta1",
7
+ "version": "1.7.0-beta2",
8
8
  "private": false,
9
9
  "bugs": {
10
10
  "url": "https://github.com/pschroeder89/homebridge-levoit-humidifiers/issues"