@switchbot/homebridge-switchbot 1.9.0 → 1.9.1-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 (111) hide show
  1. package/.eslintrc +3 -1
  2. package/.github/ISSUE_TEMPLATE/bug-report.yml +3 -3
  3. package/.github/ISSUE_TEMPLATE/feature-request.yml +2 -2
  4. package/.github/ISSUE_TEMPLATE/support-request.yml +3 -3
  5. package/.github/labeler.yml +1 -1
  6. package/.github/workflows/codeql-analysis.yml +29 -29
  7. package/.github/workflows/nodejs-beta.yml +1 -1
  8. package/.github/workflows/prerelease-beta.js +1 -1
  9. package/.github/workflows/stale.yml +1 -1
  10. package/.prettierrc +9 -0
  11. package/.vscode/settings.json +13 -1
  12. package/README.md +100 -99
  13. package/SECURITY.md +2 -2
  14. package/dist/devices/bots.d.ts +2 -2
  15. package/dist/devices/bots.d.ts.map +1 -1
  16. package/dist/devices/bots.js +91 -86
  17. package/dist/devices/bots.js.map +1 -1
  18. package/dist/devices/colorbulb.d.ts +15 -15
  19. package/dist/devices/colorbulb.d.ts.map +1 -1
  20. package/dist/devices/colorbulb.js +60 -71
  21. package/dist/devices/colorbulb.js.map +1 -1
  22. package/dist/devices/contact.d.ts +2 -2
  23. package/dist/devices/contact.d.ts.map +1 -1
  24. package/dist/devices/contact.js +33 -31
  25. package/dist/devices/contact.js.map +1 -1
  26. package/dist/devices/curtains.d.ts +2 -2
  27. package/dist/devices/curtains.d.ts.map +1 -1
  28. package/dist/devices/curtains.js +71 -71
  29. package/dist/devices/curtains.js.map +1 -1
  30. package/dist/devices/humidifiers.d.ts +2 -2
  31. package/dist/devices/humidifiers.d.ts.map +1 -1
  32. package/dist/devices/humidifiers.js +74 -76
  33. package/dist/devices/humidifiers.js.map +1 -1
  34. package/dist/devices/meters.d.ts +2 -2
  35. package/dist/devices/meters.d.ts.map +1 -1
  36. package/dist/devices/meters.js +29 -27
  37. package/dist/devices/meters.js.map +1 -1
  38. package/dist/devices/motion.d.ts +2 -2
  39. package/dist/devices/motion.d.ts.map +1 -1
  40. package/dist/devices/motion.js +34 -32
  41. package/dist/devices/motion.js.map +1 -1
  42. package/dist/devices/plugs.d.ts +7 -7
  43. package/dist/devices/plugs.d.ts.map +1 -1
  44. package/dist/devices/plugs.js +18 -23
  45. package/dist/devices/plugs.js.map +1 -1
  46. package/dist/irdevices/airconditioners.d.ts +2 -2
  47. package/dist/irdevices/airconditioners.d.ts.map +1 -1
  48. package/dist/irdevices/airconditioners.js +36 -45
  49. package/dist/irdevices/airconditioners.js.map +1 -1
  50. package/dist/irdevices/airpurifiers.d.ts +2 -2
  51. package/dist/irdevices/airpurifiers.d.ts.map +1 -1
  52. package/dist/irdevices/airpurifiers.js +12 -17
  53. package/dist/irdevices/airpurifiers.js.map +1 -1
  54. package/dist/irdevices/cameras.d.ts +2 -2
  55. package/dist/irdevices/cameras.d.ts.map +1 -1
  56. package/dist/irdevices/cameras.js +10 -13
  57. package/dist/irdevices/cameras.js.map +1 -1
  58. package/dist/irdevices/fans.d.ts +2 -2
  59. package/dist/irdevices/fans.d.ts.map +1 -1
  60. package/dist/irdevices/fans.js +15 -17
  61. package/dist/irdevices/fans.js.map +1 -1
  62. package/dist/irdevices/lights.d.ts +2 -2
  63. package/dist/irdevices/lights.d.ts.map +1 -1
  64. package/dist/irdevices/lights.js +10 -13
  65. package/dist/irdevices/lights.js.map +1 -1
  66. package/dist/irdevices/others.d.ts +2 -2
  67. package/dist/irdevices/others.d.ts.map +1 -1
  68. package/dist/irdevices/others.js +10 -13
  69. package/dist/irdevices/others.js.map +1 -1
  70. package/dist/irdevices/tvs.d.ts +2 -2
  71. package/dist/irdevices/tvs.d.ts.map +1 -1
  72. package/dist/irdevices/tvs.js +22 -30
  73. package/dist/irdevices/tvs.js.map +1 -1
  74. package/dist/irdevices/vacuumcleaners.d.ts +2 -2
  75. package/dist/irdevices/vacuumcleaners.d.ts.map +1 -1
  76. package/dist/irdevices/vacuumcleaners.js +11 -13
  77. package/dist/irdevices/vacuumcleaners.js.map +1 -1
  78. package/dist/irdevices/waterheaters.d.ts +2 -2
  79. package/dist/irdevices/waterheaters.d.ts.map +1 -1
  80. package/dist/irdevices/waterheaters.js +10 -13
  81. package/dist/irdevices/waterheaters.js.map +1 -1
  82. package/dist/platform.d.ts +3 -3
  83. package/dist/platform.d.ts.map +1 -1
  84. package/dist/platform.js +13 -14
  85. package/dist/platform.js.map +1 -1
  86. package/dist/settings.d.ts.map +1 -1
  87. package/dist/settings.js.map +1 -1
  88. package/homebridge-ui/public/index.html +231 -245
  89. package/homebridge-ui/server.js +2 -4
  90. package/nodemon.json +2 -4
  91. package/package.json +75 -71
  92. package/src/devices/bots.ts +217 -186
  93. package/src/devices/colorbulb.ts +90 -84
  94. package/src/devices/contact.ts +85 -78
  95. package/src/devices/curtains.ts +152 -135
  96. package/src/devices/humidifiers.ts +162 -137
  97. package/src/devices/meters.ts +76 -73
  98. package/src/devices/motion.ts +87 -78
  99. package/src/devices/plugs.ts +27 -31
  100. package/src/irdevices/airconditioners.ts +72 -55
  101. package/src/irdevices/airpurifiers.ts +22 -23
  102. package/src/irdevices/cameras.ts +18 -19
  103. package/src/irdevices/fans.ts +27 -25
  104. package/src/irdevices/lights.ts +18 -20
  105. package/src/irdevices/others.ts +18 -19
  106. package/src/irdevices/tvs.ts +33 -41
  107. package/src/irdevices/vacuumcleaners.ts +19 -19
  108. package/src/irdevices/waterheaters.ts +21 -31
  109. package/src/platform.ts +32 -33
  110. package/src/settings.ts +8 -19
  111. package/.github/PULL_REQUEST_TEMPLATE/pull_requests.md +0 -27
package/package.json CHANGED
@@ -1,74 +1,78 @@
1
1
  {
2
- "displayName": "Homebridge SwitchBot",
3
- "name": "@switchbot/homebridge-switchbot",
4
- "version": "1.9.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"
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.9.1-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.25.0",
56
+ "rxjs": "^7.5.2"
57
+ },
58
+ "devDependencies": {
59
+ "@types/jest": "27.0.2",
60
+ "@types/node": "^17.0.10",
61
+ "@typescript-eslint/eslint-plugin": "^5.10.0",
62
+ "@typescript-eslint/parser": "^5.10.0",
63
+ "eslint": "^8.7.0",
64
+ "homebridge": "^1.3.9",
65
+ "nodemon": "^2.0.15",
66
+ "npm-check-updates": "^12.1.0",
67
+ "rimraf": "^3.0.2",
68
+ "ts-node": "^10.4.0",
69
+ "typescript": "^4.5.5",
70
+ "typescript-axios-wb": "^1.0.3",
71
+ "eslint-config-prettier": "8.3.0",
72
+ "eslint-plugin-prettier": "4.0.0",
73
+ "prettier": "2.4.1"
74
+ },
75
+ "optionalDependencies": {
76
+ "node-switchbot": "^1.1.2"
36
77
  }
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.25.0",
56
- "rxjs": "^7.5.2"
57
- },
58
- "devDependencies": {
59
- "@types/node": "^17.0.10",
60
- "@typescript-eslint/eslint-plugin": "^5.10.0",
61
- "@typescript-eslint/parser": "^5.10.0",
62
- "eslint": "^8.7.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.5",
69
- "typescript-axios-wb": "^1.0.3"
70
- },
71
- "optionalDependencies": {
72
- "node-switchbot": "^1.1.2"
73
- }
74
- }
78
+ }