@switchbot/homebridge-switchbot 1.8.1 → 1.8.2-beta.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.
Files changed (52) hide show
  1. package/dist/devices/bots.js +1 -1
  2. package/dist/devices/bots.js.map +1 -1
  3. package/dist/devices/colorbulb.js +1 -1
  4. package/dist/devices/colorbulb.js.map +1 -1
  5. package/dist/devices/contact.js +1 -1
  6. package/dist/devices/contact.js.map +1 -1
  7. package/dist/devices/curtains.js +1 -1
  8. package/dist/devices/curtains.js.map +1 -1
  9. package/dist/devices/humidifiers.js +1 -1
  10. package/dist/devices/humidifiers.js.map +1 -1
  11. package/dist/devices/meters.js +1 -1
  12. package/dist/devices/meters.js.map +1 -1
  13. package/dist/devices/motion.js +1 -1
  14. package/dist/devices/motion.js.map +1 -1
  15. package/dist/devices/plugs.js +1 -1
  16. package/dist/devices/plugs.js.map +1 -1
  17. package/dist/irdevices/airconditioners.js +1 -1
  18. package/dist/irdevices/airconditioners.js.map +1 -1
  19. package/dist/irdevices/airpurifiers.js +1 -1
  20. package/dist/irdevices/airpurifiers.js.map +1 -1
  21. package/dist/irdevices/cameras.js +1 -1
  22. package/dist/irdevices/cameras.js.map +1 -1
  23. package/dist/irdevices/fans.js +1 -1
  24. package/dist/irdevices/fans.js.map +1 -1
  25. package/dist/irdevices/lights.js +1 -1
  26. package/dist/irdevices/lights.js.map +1 -1
  27. package/dist/irdevices/others.js +1 -1
  28. package/dist/irdevices/others.js.map +1 -1
  29. package/dist/irdevices/tvs.js +1 -1
  30. package/dist/irdevices/tvs.js.map +1 -1
  31. package/dist/irdevices/vacuumcleaners.js +1 -1
  32. package/dist/irdevices/vacuumcleaners.js.map +1 -1
  33. package/dist/irdevices/waterheaters.js +1 -1
  34. package/dist/irdevices/waterheaters.js.map +1 -1
  35. package/package.json +71 -71
  36. package/src/devices/bots.ts +1 -1
  37. package/src/devices/colorbulb.ts +1 -1
  38. package/src/devices/contact.ts +1 -1
  39. package/src/devices/curtains.ts +1 -1
  40. package/src/devices/humidifiers.ts +1 -1
  41. package/src/devices/meters.ts +1 -1
  42. package/src/devices/motion.ts +1 -1
  43. package/src/devices/plugs.ts +1 -1
  44. package/src/irdevices/airconditioners.ts +1 -1
  45. package/src/irdevices/airpurifiers.ts +1 -1
  46. package/src/irdevices/cameras.ts +1 -1
  47. package/src/irdevices/fans.ts +1 -1
  48. package/src/irdevices/lights.ts +1 -1
  49. package/src/irdevices/others.ts +1 -1
  50. package/src/irdevices/tvs.ts +1 -1
  51. package/src/irdevices/vacuumcleaners.ts +1 -1
  52. package/src/irdevices/waterheaters.ts +1 -1
package/package.json CHANGED
@@ -1,74 +1,74 @@
1
1
  {
2
- "displayName": "Homebridge SwitchBot",
3
- "name": "@switchbot/homebridge-switchbot",
4
- "version": "1.8.1",
5
- "description": "The [Homebridge](https://homebridge.io) SwitchBot plugin allows you to access your [SwitchBot](https://www.switch-bot.com) device(s) from HomeKit.",
6
- "author": "SwitchBot <support@wondertechlabs.com> (https://github.com/SwitchBot)",
7
- "license": "ISC",
8
- "repository": {
9
- "type": "git",
10
- "url": "git://github.com/OpenWonderLabs/homebridge-switchbot.git"
11
- },
12
- "bugs": {
13
- "url": "https://github.com/OpenWonderLabs/homebridge-switchbot/issues"
14
- },
15
- "engines": {
16
- "homebridge": "^1.3.9",
17
- "node": "^14.18.3 || ^16.13.2"
18
- },
19
- "main": "dist/index.js",
20
- "scripts": {
21
- "check": "npm install && npm outdated",
22
- "update": "ncu -u && npm update && npm install",
23
- "lint": "eslint src/**.ts",
24
- "watch": "npm run build && npm link && nodemon",
25
- "build": "rimraf ./dist && tsc",
26
- "prepublishOnly": "npm run lint && npm run build"
27
- },
28
- "funding": [
29
- {
30
- "type": "Paypal",
31
- "url": "https://paypal.me/donavanbecker"
2
+ "displayName": "Homebridge SwitchBot",
3
+ "name": "@switchbot/homebridge-switchbot",
4
+ "version": "1.8.2-beta.0",
5
+ "description": "The [Homebridge](https://homebridge.io) SwitchBot plugin allows you to access your [SwitchBot](https://www.switch-bot.com) device(s) from HomeKit.",
6
+ "author": "SwitchBot <support@wondertechlabs.com> (https://github.com/SwitchBot)",
7
+ "license": "ISC",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git://github.com/OpenWonderLabs/homebridge-switchbot.git"
32
11
  },
33
- {
34
- "type": "GitHub",
35
- "url": "https://github.com/sponsors/donavanbecker"
12
+ "bugs": {
13
+ "url": "https://github.com/OpenWonderLabs/homebridge-switchbot/issues"
14
+ },
15
+ "engines": {
16
+ "homebridge": "^1.3.9",
17
+ "node": "^14.18.3 || ^16.13.2"
18
+ },
19
+ "main": "dist/index.js",
20
+ "scripts": {
21
+ "check": "npm install && npm outdated",
22
+ "update": "ncu -u && npm update && npm install",
23
+ "lint": "eslint src/**.ts",
24
+ "watch": "npm run build && npm link && nodemon",
25
+ "build": "rimraf ./dist && tsc",
26
+ "prepublishOnly": "npm run lint && npm run build"
27
+ },
28
+ "funding": [
29
+ {
30
+ "type": "Paypal",
31
+ "url": "https://paypal.me/donavanbecker"
32
+ },
33
+ {
34
+ "type": "GitHub",
35
+ "url": "https://github.com/sponsors/donavanbecker"
36
+ }
37
+ ],
38
+ "publishConfig": {
39
+ "access": "public"
40
+ },
41
+ "keywords": [
42
+ "homebridge-plugin",
43
+ "switchbot",
44
+ "humidifier",
45
+ "humidity",
46
+ "temperature",
47
+ "bot",
48
+ "curtains",
49
+ "windows",
50
+ "ble",
51
+ "ir"
52
+ ],
53
+ "dependencies": {
54
+ "@homebridge/plugin-ui-utils": "^0.0.19",
55
+ "axios": "^0.24.0",
56
+ "rxjs": "^7.5.2"
57
+ },
58
+ "devDependencies": {
59
+ "@types/node": "^17.0.8",
60
+ "@typescript-eslint/eslint-plugin": "^5.9.1",
61
+ "@typescript-eslint/parser": "^5.9.1",
62
+ "eslint": "^8.6.0",
63
+ "homebridge": "^1.3.9",
64
+ "nodemon": "^2.0.15",
65
+ "npm-check-updates": "^12.1.0",
66
+ "rimraf": "^3.0.2",
67
+ "ts-node": "^10.4.0",
68
+ "typescript": "^4.5.4",
69
+ "typescript-axios-wb": "^1.0.3"
70
+ },
71
+ "optionalDependencies": {
72
+ "node-switchbot": "^1.1.2"
36
73
  }
37
- ],
38
- "publishConfig": {
39
- "access": "public"
40
- },
41
- "keywords": [
42
- "homebridge-plugin",
43
- "switchbot",
44
- "humidifier",
45
- "humidity",
46
- "temperature",
47
- "bot",
48
- "curtains",
49
- "windows",
50
- "ble",
51
- "ir"
52
- ],
53
- "dependencies": {
54
- "@homebridge/plugin-ui-utils": "^0.0.19",
55
- "axios": "^0.24.0",
56
- "rxjs": "^7.5.2"
57
- },
58
- "devDependencies": {
59
- "@types/node": "^17.0.8",
60
- "@typescript-eslint/eslint-plugin": "^5.9.1",
61
- "@typescript-eslint/parser": "^5.9.1",
62
- "eslint": "^8.6.0",
63
- "homebridge": "^1.3.9",
64
- "nodemon": "^2.0.15",
65
- "npm-check-updates": "^12.1.0",
66
- "rimraf": "^3.0.2",
67
- "ts-node": "^10.4.0",
68
- "typescript": "^4.5.4",
69
- "typescript-axios-wb": "^1.0.3"
70
- },
71
- "optionalDependencies": {
72
- "node-switchbot": "^1.1.2"
73
- }
74
- }
74
+ }
@@ -1030,7 +1030,7 @@ export class Bot {
1030
1030
  if (device.scanDuration !== undefined) {
1031
1031
  config['scanDuration'] = device.scanDuration;
1032
1032
  }
1033
- if (config !== undefined) {
1033
+ if (Object.entries(config).length === 0) {
1034
1034
  this.warnLog(`Bot: ${this.accessory.displayName} Config: ${JSON.stringify(config)}`);
1035
1035
  }
1036
1036
  }
@@ -634,7 +634,7 @@ export class ColorBulb {
634
634
  if (device.scanDuration !== undefined) {
635
635
  config['scanDuration'] = device.scanDuration;
636
636
  }
637
- if (config !== undefined) {
637
+ if (Object.entries(config).length === 0) {
638
638
  this.warnLog(`Color Bulb: ${this.accessory.displayName} Config: ${JSON.stringify(config)}`);
639
639
  }
640
640
  }
@@ -441,7 +441,7 @@ export class Contact {
441
441
  if (device.scanDuration !== undefined) {
442
442
  config['scanDuration'] = device.scanDuration;
443
443
  }
444
- if (config !== undefined) {
444
+ if (Object.entries(config).length === 0) {
445
445
  this.warnLog(`Contact Sensor: ${this.accessory.displayName} Config: ${JSON.stringify(config)}`);
446
446
  }
447
447
  }
@@ -734,7 +734,7 @@ export class Curtain {
734
734
  if (device.scanDuration !== undefined) {
735
735
  config['scanDuration'] = device.scanDuration;
736
736
  }
737
- if (config !== undefined) {
737
+ if (Object.entries(config).length === 0) {
738
738
  this.warnLog(`Curtain: ${this.accessory.displayName} Config: ${JSON.stringify(config)}`);
739
739
  }
740
740
  }
@@ -728,7 +728,7 @@ export class Humidifier {
728
728
  if (device.scanDuration !== undefined) {
729
729
  config['scanDuration'] = device.scanDuration;
730
730
  }
731
- if (config !== undefined) {
731
+ if (Object.entries(config).length === 0) {
732
732
  this.warnLog(`Humidifier: ${this.accessory.displayName} Config: ${JSON.stringify(config)}`);
733
733
  }
734
734
  }
@@ -407,7 +407,7 @@ export class Meter {
407
407
  if (device.scanDuration !== undefined) {
408
408
  config['scanDuration'] = device.scanDuration;
409
409
  }
410
- if (config !== undefined) {
410
+ if (Object.entries(config).length === 0) {
411
411
  this.warnLog(`Meter: ${this.accessory.displayName} Config: ${JSON.stringify(config)}`);
412
412
  }
413
413
  }
@@ -381,7 +381,7 @@ export class Motion {
381
381
  if (device.scanDuration !== undefined) {
382
382
  config['scanDuration'] = device.scanDuration;
383
383
  }
384
- if (config !== undefined) {
384
+ if (Object.entries(config).length === 0) {
385
385
  this.warnLog(`Motion Sensor: ${this.accessory.displayName} Config: ${JSON.stringify(config)}`);
386
386
  }
387
387
  }
@@ -266,7 +266,7 @@ export class Plug {
266
266
  if (device.scanDuration !== undefined) {
267
267
  config['scanDuration'] = device.scanDuration;
268
268
  }
269
- if (config !== undefined) {
269
+ if (Object.entries(config).length === 0) {
270
270
  this.warnLog(`Plug: ${this.accessory.displayName} Config: ${JSON.stringify(config)}`);
271
271
  }
272
272
  }
@@ -566,7 +566,7 @@ export class AirConditioner {
566
566
  if (device.logging !== undefined) {
567
567
  config['logging'] = device.logging;
568
568
  }
569
- if (config !== undefined) {
569
+ if (Object.entries(config).length === 0) {
570
570
  this.warnLog(`Air Conditioner: ${this.accessory.displayName} Config: ${JSON.stringify(config)}`);
571
571
  }
572
572
  }
@@ -288,7 +288,7 @@ export class AirPurifier {
288
288
  if (device.logging !== undefined) {
289
289
  config['logging'] = device.logging;
290
290
  }
291
- if (config !== undefined) {
291
+ if (Object.entries(config).length === 0) {
292
292
  this.warnLog(`Air Purifier: ${this.accessory.displayName} Config: ${JSON.stringify(config)}`);
293
293
  }
294
294
  }
@@ -177,7 +177,7 @@ export class Camera {
177
177
  if (device.logging !== undefined) {
178
178
  config['logging'] = device.logging;
179
179
  }
180
- if (config !== undefined) {
180
+ if (Object.entries(config).length === 0) {
181
181
  this.warnLog(`Camera: ${this.accessory.displayName} Config: ${JSON.stringify(config)}`);
182
182
  }
183
183
  }
@@ -301,7 +301,7 @@ export class Fan {
301
301
  if (device.logging !== undefined) {
302
302
  config['logging'] = device.logging;
303
303
  }
304
- if (config !== undefined) {
304
+ if (Object.entries(config).length === 0) {
305
305
  this.warnLog(`Fan: ${this.accessory.displayName} Config: ${JSON.stringify(config)}`);
306
306
  }
307
307
  }
@@ -211,7 +211,7 @@ export class Light {
211
211
  if (device.logging !== undefined) {
212
212
  config['logging'] = device.logging;
213
213
  }
214
- if (config !== undefined) {
214
+ if (Object.entries(config).length === 0) {
215
215
  this.warnLog(`Light: ${this.accessory.displayName} Config: ${JSON.stringify(config)}`);
216
216
  }
217
217
  }
@@ -220,7 +220,7 @@ export class Others {
220
220
  if (device.logging !== undefined) {
221
221
  config['logging'] = device.logging;
222
222
  }
223
- if (config !== undefined) {
223
+ if (Object.entries(config).length === 0) {
224
224
  this.warnLog(`Other: ${this.accessory.displayName} Config: ${JSON.stringify(config)}`);
225
225
  }
226
226
  }
@@ -417,7 +417,7 @@ export class TV {
417
417
  if (device.logging !== undefined) {
418
418
  config['logging'] = device.logging;
419
419
  }
420
- if (config !== undefined) {
420
+ if (Object.entries(config).length === 0) {
421
421
  this.warnLog(`${this.device.remoteType}: ${this.accessory.displayName} Config: ${JSON.stringify(config)}`);
422
422
  }
423
423
  }
@@ -177,7 +177,7 @@ export class VacuumCleaner {
177
177
  if (device.logging !== undefined) {
178
178
  config['logging'] = device.logging;
179
179
  }
180
- if (config !== undefined) {
180
+ if (Object.entries(config).length === 0) {
181
181
  this.warnLog(`Vacuum Cleaner: ${this.accessory.displayName} Config: ${JSON.stringify(config)}`);
182
182
  }
183
183
  }
@@ -191,7 +191,7 @@ export class WaterHeater {
191
191
  if (device.logging !== undefined) {
192
192
  config['logging'] = device.logging;
193
193
  }
194
- if (config !== undefined) {
194
+ if (Object.entries(config).length === 0) {
195
195
  this.warnLog(`Water Heater: ${this.accessory.displayName} Config: ${JSON.stringify(config)}`);
196
196
  }
197
197
  }