@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.
- package/CHANGELOG.md +21 -0
- package/LICENSE +1 -1
- package/README.md +1 -1
- package/eslint.config.js +36 -1
- package/lib/connection/http.js +2 -0
- package/lib/connection/lan.js +2 -0
- package/lib/connection/ws.js +6 -5
- package/lib/device/diffuser.js +2 -2
- package/lib/device/fan.js +1 -1
- package/lib/device/group.js +1 -1
- package/lib/device/index.js +3 -3
- package/lib/device/light-cct.js +1 -1
- package/lib/device/light-dimmer.js +1 -1
- package/lib/device/light-rgb-cct.js +1 -1
- package/lib/device/light-rgb.js +1 -1
- package/lib/device/outlet-multi.js +2 -2
- package/lib/device/outlet-single-inched.js +1 -1
- package/lib/device/outlet-single.js +1 -1
- package/lib/device/panel.js +3 -3
- package/lib/device/rf-bridge.js +1 -0
- package/lib/device/sensor-ambient.js +3 -3
- package/lib/device/sensor-contact.js +1 -1
- package/lib/device/sensor-temp-humi.js +2 -2
- package/lib/device/simulation/cooler.js +2 -2
- package/lib/device/simulation/doorbell.js +1 -1
- package/lib/device/simulation/heater.js +2 -2
- package/lib/device/simulation/index.js +1 -1
- package/lib/device/simulation/light-fan.js +1 -1
- package/lib/device/simulation/lock-eachen.js +1 -1
- package/lib/device/simulation/lock-one.js +1 -1
- package/lib/device/simulation/p-button.js +1 -1
- package/lib/device/simulation/purifier.js +1 -1
- package/lib/device/simulation/sensor-leak.js +1 -1
- package/lib/device/simulation/sensor-visible.js +1 -1
- package/lib/device/simulation/switch-valve.js +1 -1
- package/lib/device/simulation/th-cooler.js +3 -3
- package/lib/device/simulation/th-dehumidifier.js +3 -3
- package/lib/device/simulation/th-heater.js +3 -3
- package/lib/device/simulation/th-humidifier.js +3 -3
- package/lib/device/simulation/th-thermostat.js +1 -1
- package/lib/device/simulation/tv.js +1 -1
- package/lib/device/switch-mate.js +1 -1
- package/lib/device/switch-multi.js +1 -1
- package/lib/device/switch-single-inched.js +1 -1
- package/lib/device/switch-single.js +1 -1
- package/lib/device/thermostat.js +1 -1
- package/lib/device/zigbee/index.js +2 -0
- package/lib/device/zigbee/light-cct.js +1 -1
- package/lib/device/zigbee/light-dimmer.js +1 -1
- package/lib/device/zigbee/light-rgb-cct.js +1 -1
- package/lib/device/zigbee/motor.js +1 -1
- package/lib/device/zigbee/sensor-ambient.js +3 -3
- package/lib/device/zigbee/sensor-contact.js +1 -1
- package/lib/device/zigbee/sensor-leak.js +1 -1
- package/lib/device/zigbee/sensor-motion.js +1 -1
- package/lib/device/zigbee/sensor-occupancy.js +1 -1
- package/lib/device/zigbee/sensor-smoke.js +2 -2
- package/lib/device/zigbee/switch-stateless.js +2 -2
- package/lib/device/zigbee/thermostat.js +1 -1
- package/lib/device/zigbee/zigbee-water-valve.js +195 -0
- package/lib/fakegato/fakegato-history.js +5 -4
- package/lib/homebridge-ui/public/index.html +4 -0
- package/lib/homebridge-ui/server.js +1 -0
- package/lib/index.js +1 -0
- package/lib/node-dns-sd/lib/dns-sd-composer.js +1 -1
- package/lib/node-dns-sd/lib/dns-sd-parser.js +1 -1
- package/lib/node-dns-sd/lib/dns-sd.js +2 -1
- package/lib/platform.js +31 -21
- package/lib/utils/constants.js +5 -1
- package/lib/utils/custom-chars.js +2 -2
- package/lib/utils/eve-chars.js +9 -9
- 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.
|
|
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.
|
|
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.
|
|
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": "^
|
|
65
|
-
"axios": "^1.
|
|
66
|
-
"node-persist": "^4.0.
|
|
67
|
-
"p-queue": "^8.0
|
|
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.
|
|
69
|
+
"ws": "^8.18.1"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
|
-
"@antfu/eslint-config": "^
|
|
73
|
-
"eslint": "^9.
|
|
72
|
+
"@antfu/eslint-config": "^4.10.2",
|
|
73
|
+
"eslint": "^9.23.0"
|
|
74
74
|
}
|
|
75
75
|
}
|