@homebridge-plugins/homebridge-ewelink 12.4.0 → 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.
- package/CHANGELOG.md +10 -0
- package/LICENSE +1 -1
- package/README.md +1 -1
- package/lib/fakegato/fakegato-history.js +4 -4
- package/lib/utils/custom-chars.js +2 -2
- package/lib/utils/eve-chars.js +9 -9
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,16 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr
|
|
|
8
8
|
- `MINOR` version when a new device type is added, or when a new feature is added that is backwards-compatible
|
|
9
9
|
- `PATCH` version when backwards-compatible bug fixes are implemented
|
|
10
10
|
|
|
11
|
+
## 12.4.1 (2025-03-22)
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
|
|
15
|
+
- updated dependencies
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
|
|
19
|
+
- fix hap-nodejs permissions for hb2
|
|
20
|
+
|
|
11
21
|
## 12.4.0 (2025-02-24)
|
|
12
22
|
|
|
13
23
|
### Added
|
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -29,7 +29,7 @@ Homebridge plugin to integrate eWeLink devices into HomeKit
|
|
|
29
29
|
### Prerequisites
|
|
30
30
|
|
|
31
31
|
- To use this plugin, you will need to already have:
|
|
32
|
-
- [Node](https://nodejs.org): latest version of `v18` or `
|
|
32
|
+
- [Node](https://nodejs.org): latest version of `v18`, `v20` or `v22` - any other major version is not supported.
|
|
33
33
|
- [Homebridge](https://homebridge.io): `v1.6` - refer to link for more information and installation instructions.
|
|
34
34
|
|
|
35
35
|
### Setup
|
|
@@ -51,7 +51,7 @@ export default function (homebridge) {
|
|
|
51
51
|
super('S2R1', S2R1Characteristic.UUID)
|
|
52
52
|
this.setProps({
|
|
53
53
|
format: homebridge.hap.Formats.DATA,
|
|
54
|
-
perms: [homebridge.hap.Perms.
|
|
54
|
+
perms: [homebridge.hap.Perms.PAIRED_READ, homebridge.hap.Perms.NOTIFY, homebridge.hap.Perms.HIDDEN],
|
|
55
55
|
})
|
|
56
56
|
}
|
|
57
57
|
}
|
|
@@ -63,7 +63,7 @@ export default function (homebridge) {
|
|
|
63
63
|
super('S2R2', S2R2Characteristic.UUID)
|
|
64
64
|
this.setProps({
|
|
65
65
|
format: homebridge.hap.Formats.DATA,
|
|
66
|
-
perms: [homebridge.hap.Perms.
|
|
66
|
+
perms: [homebridge.hap.Perms.PAIRED_READ, homebridge.hap.Perms.NOTIFY, homebridge.hap.Perms.HIDDEN],
|
|
67
67
|
})
|
|
68
68
|
}
|
|
69
69
|
}
|
|
@@ -75,7 +75,7 @@ export default function (homebridge) {
|
|
|
75
75
|
super('S2W1', S2W1Characteristic.UUID)
|
|
76
76
|
this.setProps({
|
|
77
77
|
format: homebridge.hap.Formats.DATA,
|
|
78
|
-
perms: [homebridge.hap.Perms.
|
|
78
|
+
perms: [homebridge.hap.Perms.PAIRED_WRITE, homebridge.hap.Perms.HIDDEN],
|
|
79
79
|
})
|
|
80
80
|
}
|
|
81
81
|
}
|
|
@@ -87,7 +87,7 @@ export default function (homebridge) {
|
|
|
87
87
|
super('S2W2', S2W2Characteristic.UUID)
|
|
88
88
|
this.setProps({
|
|
89
89
|
format: homebridge.hap.Formats.DATA,
|
|
90
|
-
perms: [homebridge.hap.Perms.
|
|
90
|
+
perms: [homebridge.hap.Perms.PAIRED_WRITE, homebridge.hap.Perms.HIDDEN],
|
|
91
91
|
})
|
|
92
92
|
}
|
|
93
93
|
}
|
|
@@ -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.
|
|
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.
|
|
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
|
}
|
package/lib/utils/eve-chars.js
CHANGED
|
@@ -24,7 +24,7 @@ export default class {
|
|
|
24
24
|
maxValue: 100000,
|
|
25
25
|
minValue: 0,
|
|
26
26
|
minStep: 1,
|
|
27
|
-
perms: [api.hap.Perms.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.4.
|
|
6
|
+
"version": "12.4.1",
|
|
7
7
|
"description": "Homebridge plugin to integrate eWeLink devices into HomeKit.",
|
|
8
8
|
"author": {
|
|
9
9
|
"name": "bwp91",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"main": "lib/index.js",
|
|
55
55
|
"engines": {
|
|
56
56
|
"homebridge": "^1.6.0 || ^2.0.0-beta.0",
|
|
57
|
-
"node": "^18.20.7 || ^20.
|
|
57
|
+
"node": "^18.20.7 || ^20.19.0 || ^22.14.0"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|
|
60
60
|
"lint": "eslint . --fix",
|
|
@@ -62,14 +62,14 @@
|
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
64
|
"@homebridge/plugin-ui-utils": "^2.0.1",
|
|
65
|
-
"axios": "^1.
|
|
65
|
+
"axios": "^1.8.4",
|
|
66
66
|
"node-persist": "^4.0.4",
|
|
67
67
|
"p-queue": "^8.1.0",
|
|
68
68
|
"websocket-as-promised": "^3.0.0",
|
|
69
69
|
"ws": "^8.18.1"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
|
-
"@antfu/eslint-config": "^4.
|
|
73
|
-
"eslint": "^9.
|
|
72
|
+
"@antfu/eslint-config": "^4.10.2",
|
|
73
|
+
"eslint": "^9.23.0"
|
|
74
74
|
}
|
|
75
75
|
}
|