@homebridge-plugins/homebridge-ewelink 12.12.0 → 12.13.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.
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to `@homebridge-plugins/homebridge-ewelink` will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## v12.13.0 (2026-04-12)
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- feat: implement `ZBM5-1C-80/86` and `ZBM5-3C-80/86`
|
|
10
|
+
- chore: dependency updates
|
|
11
|
+
|
|
5
12
|
## v12.12.0 (2026-04-09)
|
|
6
13
|
|
|
7
14
|
### Changed
|
package/lib/connection/ws.js
CHANGED
|
@@ -169,8 +169,10 @@ export default class {
|
|
|
169
169
|
this.log.warn(this.lang.wsLogin406)
|
|
170
170
|
const delay = Math.min(5000 * 2 ** (this.authRetries || 0), 300000)
|
|
171
171
|
this.authRetries = (this.authRetries || 0) + 1
|
|
172
|
+
this.log.error('delay: %s ', delay, 'authRetries: %s', this.authRetries)
|
|
172
173
|
if (this.authRetries <= 10) {
|
|
173
174
|
await sleep(delay)
|
|
175
|
+
this.log.error('retrying login')
|
|
174
176
|
await this.login()
|
|
175
177
|
}
|
|
176
178
|
} else {
|
|
@@ -267,7 +269,7 @@ export default class {
|
|
|
267
269
|
msg.params.updateSource = 'WS'
|
|
268
270
|
emitter.emit('update', { deviceid: msg.deviceid, params: msg.params })
|
|
269
271
|
}
|
|
270
|
-
} else {
|
|
272
|
+
} else if (msg.error !== 406) {
|
|
271
273
|
// WS message received has an unknown action
|
|
272
274
|
this.log.warn('%s.\n%s', this.lang.wsUnkCmd, JSON.stringify(msg, null, 2))
|
|
273
275
|
}
|
|
@@ -190,7 +190,7 @@ export default class {
|
|
|
190
190
|
case '2':
|
|
191
191
|
case '3':
|
|
192
192
|
case '4': {
|
|
193
|
-
const isZigbee = [2256, 3256, 4256, 7029].includes(this.accessory.context.eweUIID)
|
|
193
|
+
const isZigbee = [2256, 3256, 4256, 7029, 7030].includes(this.accessory.context.eweUIID)
|
|
194
194
|
if (isZigbee) {
|
|
195
195
|
for (let i = 1; i <= this.accessory.context.channelCount; i += 1) {
|
|
196
196
|
if (i === Number.parseInt(switchNumber, 10)) {
|
|
@@ -187,7 +187,7 @@ export default class {
|
|
|
187
187
|
case '3':
|
|
188
188
|
case '4': {
|
|
189
189
|
// Zigbee multi-channel switches require all channels in the array
|
|
190
|
-
const isZigbee = [2256, 3256, 4256, 7029].includes(this.accessory.context.eweUIID)
|
|
190
|
+
const isZigbee = [2256, 3256, 4256, 7029, 7030].includes(this.accessory.context.eweUIID)
|
|
191
191
|
if (isZigbee) {
|
|
192
192
|
for (let i = 1; i <= this.accessory.context.channelCount; i += 1) {
|
|
193
193
|
if (i === Number.parseInt(switchNumber, 10)) {
|
package/lib/utils/constants.js
CHANGED
|
@@ -289,7 +289,7 @@ export default {
|
|
|
289
289
|
275,
|
|
290
290
|
277,
|
|
291
291
|
],
|
|
292
|
-
switchSingle: [1, 6, 14, 24, 27, 216, 225, 226, 268, 1009, 1256, 7004, 7005, 7010, 7032, 20001],
|
|
292
|
+
switchSingle: [1, 6, 14, 24, 27, 216, 225, 226, 268, 1009, 1256, 7004, 7005, 7010, 7028, 7032, 20001],
|
|
293
293
|
switchSCM: [77, 78, 81, 107, 112, 138, 160, 191, 209, 264],
|
|
294
294
|
switchSCMPower: [182, 190, 276],
|
|
295
295
|
switchSinglePower: [5, 32],
|
|
@@ -323,6 +323,7 @@ export default {
|
|
|
323
323
|
3256,
|
|
324
324
|
4256,
|
|
325
325
|
7029,
|
|
326
|
+
7030,
|
|
326
327
|
20004,
|
|
327
328
|
],
|
|
328
329
|
switchMultiPower: [126, 165, 262],
|
|
@@ -569,7 +570,9 @@ export default {
|
|
|
569
570
|
7017: 1, // https://github.com/homebridge-plugins/homebridge-ewelink/issues/518
|
|
570
571
|
7019: 1, // Zigbee Water Sensor
|
|
571
572
|
7027: 1, // Zigbee Smart Water Valve
|
|
573
|
+
7028: 1, // ZBM5-1C-80/86 Zigbee 1-gang switch
|
|
572
574
|
7029: 2, // Zigbee MINI DUO-L (MINI-ZB2GS-L) 2-gang relay
|
|
575
|
+
7030: 3, // ZBM5-3C-80/86 Zigbee 3-gang switch
|
|
573
576
|
7032: 1, // Zigbee Power Monitoring Switch
|
|
574
577
|
7033: 1, // SNZB-02WD Zigbee Temperature and Humidity Display Sensor
|
|
575
578
|
20001: 1, // iHost sub-device single switch
|
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.13.1-beta.0",
|
|
7
7
|
"description": "Homebridge plugin to integrate eWeLink devices into HomeKit.",
|
|
8
8
|
"author": {
|
|
9
9
|
"name": "bwp91",
|
|
@@ -62,13 +62,13 @@
|
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
64
|
"@homebridge/plugin-ui-utils": "^2.2.3",
|
|
65
|
-
"axios": "^1.15.
|
|
65
|
+
"axios": "^1.15.1",
|
|
66
66
|
"node-persist": "^4.0.4",
|
|
67
67
|
"p-queue": "^9.1.2",
|
|
68
68
|
"websocket-as-promised": "^3.0.1",
|
|
69
69
|
"ws": "^8.20.0"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
|
-
"@antfu/eslint-config": "^8.
|
|
72
|
+
"@antfu/eslint-config": "^8.2.0"
|
|
73
73
|
}
|
|
74
74
|
}
|