@homebridge-plugins/homebridge-ewelink 12.13.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.
@@ -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
  }
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "displayName": "Homebridge eWeLink",
4
4
  "alias": "eWeLink",
5
5
  "type": "module",
6
- "version": "12.13.0",
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.0",
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.1.1"
72
+ "@antfu/eslint-config": "^8.2.0"
73
73
  }
74
74
  }