@homebridge-plugins/homebridge-ewelink 12.3.3 → 12.4.1

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 (72) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/LICENSE +1 -1
  3. package/README.md +1 -1
  4. package/eslint.config.js +36 -1
  5. package/lib/connection/http.js +2 -0
  6. package/lib/connection/lan.js +2 -0
  7. package/lib/connection/ws.js +6 -5
  8. package/lib/device/diffuser.js +2 -2
  9. package/lib/device/fan.js +1 -1
  10. package/lib/device/group.js +1 -1
  11. package/lib/device/index.js +3 -3
  12. package/lib/device/light-cct.js +1 -1
  13. package/lib/device/light-dimmer.js +1 -1
  14. package/lib/device/light-rgb-cct.js +1 -1
  15. package/lib/device/light-rgb.js +1 -1
  16. package/lib/device/outlet-multi.js +2 -2
  17. package/lib/device/outlet-single-inched.js +1 -1
  18. package/lib/device/outlet-single.js +1 -1
  19. package/lib/device/panel.js +3 -3
  20. package/lib/device/rf-bridge.js +1 -0
  21. package/lib/device/sensor-ambient.js +3 -3
  22. package/lib/device/sensor-contact.js +1 -1
  23. package/lib/device/sensor-temp-humi.js +2 -2
  24. package/lib/device/simulation/cooler.js +2 -2
  25. package/lib/device/simulation/doorbell.js +1 -1
  26. package/lib/device/simulation/heater.js +2 -2
  27. package/lib/device/simulation/index.js +1 -1
  28. package/lib/device/simulation/light-fan.js +1 -1
  29. package/lib/device/simulation/lock-eachen.js +1 -1
  30. package/lib/device/simulation/lock-one.js +1 -1
  31. package/lib/device/simulation/p-button.js +1 -1
  32. package/lib/device/simulation/purifier.js +1 -1
  33. package/lib/device/simulation/sensor-leak.js +1 -1
  34. package/lib/device/simulation/sensor-visible.js +1 -1
  35. package/lib/device/simulation/switch-valve.js +1 -1
  36. package/lib/device/simulation/th-cooler.js +3 -3
  37. package/lib/device/simulation/th-dehumidifier.js +3 -3
  38. package/lib/device/simulation/th-heater.js +3 -3
  39. package/lib/device/simulation/th-humidifier.js +3 -3
  40. package/lib/device/simulation/th-thermostat.js +1 -1
  41. package/lib/device/simulation/tv.js +1 -1
  42. package/lib/device/switch-mate.js +1 -1
  43. package/lib/device/switch-multi.js +1 -1
  44. package/lib/device/switch-single-inched.js +1 -1
  45. package/lib/device/switch-single.js +1 -1
  46. package/lib/device/thermostat.js +1 -1
  47. package/lib/device/zigbee/index.js +2 -0
  48. package/lib/device/zigbee/light-cct.js +1 -1
  49. package/lib/device/zigbee/light-dimmer.js +1 -1
  50. package/lib/device/zigbee/light-rgb-cct.js +1 -1
  51. package/lib/device/zigbee/motor.js +1 -1
  52. package/lib/device/zigbee/sensor-ambient.js +3 -3
  53. package/lib/device/zigbee/sensor-contact.js +1 -1
  54. package/lib/device/zigbee/sensor-leak.js +1 -1
  55. package/lib/device/zigbee/sensor-motion.js +1 -1
  56. package/lib/device/zigbee/sensor-occupancy.js +1 -1
  57. package/lib/device/zigbee/sensor-smoke.js +2 -2
  58. package/lib/device/zigbee/switch-stateless.js +2 -2
  59. package/lib/device/zigbee/thermostat.js +1 -1
  60. package/lib/device/zigbee/zigbee-water-valve.js +195 -0
  61. package/lib/fakegato/fakegato-history.js +5 -4
  62. package/lib/homebridge-ui/public/index.html +4 -0
  63. package/lib/homebridge-ui/server.js +1 -0
  64. package/lib/index.js +1 -0
  65. package/lib/node-dns-sd/lib/dns-sd-composer.js +1 -1
  66. package/lib/node-dns-sd/lib/dns-sd-parser.js +1 -1
  67. package/lib/node-dns-sd/lib/dns-sd.js +2 -1
  68. package/lib/platform.js +31 -21
  69. package/lib/utils/constants.js +5 -1
  70. package/lib/utils/custom-chars.js +2 -2
  71. package/lib/utils/eve-chars.js +9 -9
  72. package/package.json +9 -9
@@ -13,7 +13,7 @@ export default class {
13
13
  self.hapChar.call(this, 'Invert Switch', self.uuids.invertSwitch)
14
14
  this.setProps({
15
15
  format: api.hap.Formats.BOOL,
16
- perms: [api.hap.Perms.READ, api.hap.Perms.WRITE, api.hap.Perms.NOTIFY],
16
+ perms: [api.hap.Perms.PAIRED_READ, api.hap.Perms.PAIRED_WRITE, api.hap.Perms.NOTIFY],
17
17
  })
18
18
  this.value = this.getDefaultValue()
19
19
  }
@@ -21,7 +21,7 @@ export default class {
21
21
  self.hapChar.call(this, 'Festive Scene', self.uuids.festiveScene)
22
22
  this.setProps({
23
23
  format: api.hap.Formats.BOOL,
24
- perms: [api.hap.Perms.READ, api.hap.Perms.WRITE, api.hap.Perms.NOTIFY],
24
+ perms: [api.hap.Perms.PAIRED_READ, api.hap.Perms.PAIRED_WRITE, api.hap.Perms.NOTIFY],
25
25
  })
26
26
  this.value = this.getDefaultValue()
27
27
  }
@@ -24,7 +24,7 @@ export default class {
24
24
  maxValue: 100000,
25
25
  minValue: 0,
26
26
  minStep: 1,
27
- perms: [api.hap.Perms.READ, api.hap.Perms.NOTIFY],
27
+ perms: [api.hap.Perms.PAIRED_READ, api.hap.Perms.NOTIFY],
28
28
  })
29
29
  this.value = this.getDefaultValue()
30
30
  }
@@ -36,7 +36,7 @@ export default class {
36
36
  maxValue: 100000000000,
37
37
  minValue: 0,
38
38
  minStep: 0.01,
39
- perms: [api.hap.Perms.READ, api.hap.Perms.NOTIFY],
39
+ perms: [api.hap.Perms.PAIRED_READ, api.hap.Perms.NOTIFY],
40
40
  })
41
41
  this.value = this.getDefaultValue()
42
42
  }
@@ -48,7 +48,7 @@ export default class {
48
48
  maxValue: 100000000000,
49
49
  minValue: 0,
50
50
  minStep: 1,
51
- perms: [api.hap.Perms.READ, api.hap.Perms.NOTIFY],
51
+ perms: [api.hap.Perms.PAIRED_READ, api.hap.Perms.NOTIFY],
52
52
  })
53
53
  this.value = this.getDefaultValue()
54
54
  }
@@ -60,7 +60,7 @@ export default class {
60
60
  maxValue: 100000000000,
61
61
  minValue: 0,
62
62
  minStep: 0.1,
63
- perms: [api.hap.Perms.READ, api.hap.Perms.NOTIFY],
63
+ perms: [api.hap.Perms.PAIRED_READ, api.hap.Perms.NOTIFY],
64
64
  })
65
65
  this.value = this.getDefaultValue()
66
66
  }
@@ -69,7 +69,7 @@ export default class {
69
69
  this.setProps({
70
70
  format: api.hap.Formats.UINT32,
71
71
  unit: api.hap.Units.seconds,
72
- perms: [api.hap.Perms.READ, api.hap.Perms.NOTIFY, api.hap.Perms.WRITE],
72
+ perms: [api.hap.Perms.PAIRED_READ, api.hap.Perms.NOTIFY, api.hap.Perms.PAIRED_WRITE],
73
73
  })
74
74
  this.value = this.getDefaultValue()
75
75
  }
@@ -78,7 +78,7 @@ export default class {
78
78
  this.setProps({
79
79
  format: api.hap.Formats.UINT32,
80
80
  unit: api.hap.Units.SECONDS,
81
- perms: [api.hap.Perms.READ, api.hap.Perms.NOTIFY],
81
+ perms: [api.hap.Perms.PAIRED_READ, api.hap.Perms.NOTIFY],
82
82
  })
83
83
  this.value = this.getDefaultValue()
84
84
  }
@@ -87,7 +87,7 @@ export default class {
87
87
  this.setProps({
88
88
  format: api.hap.Formats.UINT32,
89
89
  unit: api.hap.Units.SECONDS,
90
- perms: [api.hap.Perms.READ, api.hap.Perms.NOTIFY, api.hap.Perms.WRITE],
90
+ perms: [api.hap.Perms.PAIRED_READ, api.hap.Perms.NOTIFY, api.hap.Perms.PAIRED_WRITE],
91
91
  })
92
92
  this.value = this.getDefaultValue()
93
93
  }
@@ -96,7 +96,7 @@ export default class {
96
96
  this.setProps({
97
97
  format: api.hap.Formats.UINT32,
98
98
  unit: api.hap.Units.SECONDS,
99
- perms: [api.hap.Perms.READ, api.hap.Perms.NOTIFY, api.hap.Perms.WRITE],
99
+ perms: [api.hap.Perms.PAIRED_READ, api.hap.Perms.NOTIFY, api.hap.Perms.PAIRED_WRITE],
100
100
  })
101
101
  this.value = this.getDefaultValue()
102
102
  }
@@ -104,7 +104,7 @@ export default class {
104
104
  self.hapChar.call(this, 'Times Opened', self.uuids.timesOpened)
105
105
  this.setProps({
106
106
  format: api.hap.Formats.UINT32,
107
- perms: [api.hap.Perms.READ, api.hap.Perms.NOTIFY],
107
+ perms: [api.hap.Perms.PAIRED_READ, api.hap.Perms.NOTIFY],
108
108
  })
109
109
  this.value = this.getDefaultValue()
110
110
  }
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "displayName": "Homebridge eWeLink",
4
4
  "alias": "eWeLink",
5
5
  "type": "module",
6
- "version": "12.3.3",
6
+ "version": "12.4.1",
7
7
  "description": "Homebridge plugin to integrate eWeLink devices into HomeKit.",
8
8
  "author": {
9
9
  "name": "bwp91",
@@ -54,22 +54,22 @@
54
54
  "main": "lib/index.js",
55
55
  "engines": {
56
56
  "homebridge": "^1.6.0 || ^2.0.0-beta.0",
57
- "node": "^18.20.4 || ^20.18.0 || ^22.10.0"
57
+ "node": "^18.20.7 || ^20.19.0 || ^22.14.0"
58
58
  },
59
59
  "scripts": {
60
60
  "lint": "eslint . --fix",
61
61
  "rebuild": "rm -rf package-lock.json && rm -rf node_modules && npm install"
62
62
  },
63
63
  "dependencies": {
64
- "@homebridge/plugin-ui-utils": "^1.0.3",
65
- "axios": "^1.7.7",
66
- "node-persist": "^4.0.3",
67
- "p-queue": "^8.0.1",
64
+ "@homebridge/plugin-ui-utils": "^2.0.1",
65
+ "axios": "^1.8.4",
66
+ "node-persist": "^4.0.4",
67
+ "p-queue": "^8.1.0",
68
68
  "websocket-as-promised": "^3.0.0",
69
- "ws": "^8.18.0"
69
+ "ws": "^8.18.1"
70
70
  },
71
71
  "devDependencies": {
72
- "@antfu/eslint-config": "^3.8.0",
73
- "eslint": "^9.13.0"
72
+ "@antfu/eslint-config": "^4.10.2",
73
+ "eslint": "^9.23.0"
74
74
  }
75
75
  }