@switchbot/homebridge-switchbot 3.7.1-beta.20 → 3.7.1-beta.21
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/dist/device/bot-old.d.ts.map +1 -1
- package/dist/device/bot-old.js +30 -62
- package/dist/device/bot-old.js.map +1 -1
- package/dist/irdevice/airconditioner.d.ts.map +1 -1
- package/dist/irdevice/airconditioner.js +3 -6
- package/dist/irdevice/airconditioner.js.map +1 -1
- package/dist/platform.d.ts.map +1 -1
- package/dist/platform.js +1 -3
- package/dist/platform.js.map +1 -1
- package/dist/types/bledevicestatus.d.ts.map +1 -1
- package/dist/types/devicewebhookstatus.d.ts.map +1 -1
- package/package.json +6 -8
- package/src/device/bot-old.ts +30 -68
- package/src/irdevice/airconditioner.ts +3 -6
- package/src/platform.ts +1 -3
- package/src/types/bledevicestatus.ts +1 -5
- package/src/types/devicewebhookstatus.ts +4 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bledevicestatus.d.ts","sourceRoot":"","sources":["../../src/types/bledevicestatus.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAC5C,OAAO,KAAK,EAAE,iBAAiB,EAAE,6BAA6B,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAA;AAE7G,MAAM,WAAW,SAAS;IACxB,QAAQ,EAAE,CAAC,IAAI,EAAE;QAAE,QAAQ,CAAC,EAAE,GAAG,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,OAAO,CAAC;QAAC,EAAE,CAAC,EAAE,UAAU,CAAA;KAAE,KAAK,OAAO,CAAC,GAAG,CAAC,CAAA;IACpG,IAAI,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,GAAG,CAAA;CAC5B;AAED,MAAM,WAAW,EAAE;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,OAAO,EAAE,MAAM,CAAA;IACf,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A;AAED,MAAM,MAAM,wBAAwB,GAAG,oBAAoB,GAAG;IAC5D,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,SAAS,GAAG,YAAY,CAAA;CAChC,CAAA"}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@switchbot/homebridge-switchbot",
|
|
3
3
|
"displayName": "SwitchBot",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "3.7.1-beta.
|
|
5
|
+
"version": "3.7.1-beta.21",
|
|
6
6
|
"description": "The SwitchBot plugin allows you to access your SwitchBot device(s) from HomeKit.",
|
|
7
7
|
"author": "SwitchBot <support@wondertechlabs.com> (https://github.com/SwitchBot)",
|
|
8
8
|
"contributors": [
|
|
@@ -81,14 +81,12 @@
|
|
|
81
81
|
"async-mqtt": "^2.6.3",
|
|
82
82
|
"fakegato-history": "^0.6.5",
|
|
83
83
|
"homebridge-lib": "^7.0.8",
|
|
84
|
+
"node-switchbot": "2.3.0",
|
|
84
85
|
"rxjs": "^7.8.1",
|
|
85
86
|
"undici": "^6.19.8"
|
|
86
87
|
},
|
|
87
|
-
"optionalDependencies": {
|
|
88
|
-
"node-switchbot": "2.3.0"
|
|
89
|
-
},
|
|
90
88
|
"devDependencies": {
|
|
91
|
-
"@antfu/eslint-config": "^3.
|
|
89
|
+
"@antfu/eslint-config": "^3.5.1",
|
|
92
90
|
"@types/aes-js": "^3.1.4",
|
|
93
91
|
"@types/debug": "^4.1.12",
|
|
94
92
|
"@types/fs-extra": "^11.0.4",
|
|
@@ -101,14 +99,14 @@
|
|
|
101
99
|
"eslint": "^9.10.0",
|
|
102
100
|
"eslint-plugin-format": "^0.1.2",
|
|
103
101
|
"homebridge": "^1.8.4",
|
|
104
|
-
"homebridge-config-ui-x": "4.
|
|
102
|
+
"homebridge-config-ui-x": "4.58.0",
|
|
105
103
|
"jest": "^29.7.0",
|
|
106
104
|
"nodemon": "^3.1.4",
|
|
107
105
|
"npm-check-updates": "^17.1.1",
|
|
108
106
|
"shx": "^0.3.4",
|
|
109
107
|
"ts-node": "^10.9.2",
|
|
110
|
-
"typedoc": "^0.26.
|
|
111
|
-
"typescript": "^5.
|
|
108
|
+
"typedoc": "^0.26.7",
|
|
109
|
+
"typescript": "^5.6.2",
|
|
112
110
|
"typescript-axios-wb": "^1.0.3",
|
|
113
111
|
"vitest": "^2.0.5"
|
|
114
112
|
},
|
package/src/device/bot-old.ts
CHANGED
|
@@ -127,8 +127,7 @@ export class Bot {
|
|
|
127
127
|
this.removeStatefulProgrammableSwitchService(accessory)
|
|
128
128
|
|
|
129
129
|
// Add switchService
|
|
130
|
-
this.switchService = (accessory.getService(this.hap.Service.Switch)
|
|
131
|
-
|| accessory.addService(this.hap.Service.Switch))
|
|
130
|
+
this.switchService = (accessory.getService(this.hap.Service.Switch) || accessory.addService(this.hap.Service.Switch))
|
|
132
131
|
this.debugWarnLog(`${this.device.deviceType}: ${accessory.displayName} Displaying as Switch`)
|
|
133
132
|
|
|
134
133
|
this.switchService.setCharacteristic(this.hap.Characteristic.Name, accessory.displayName)
|
|
@@ -148,8 +147,7 @@ export class Bot {
|
|
|
148
147
|
this.removeStatefulProgrammableSwitchService(accessory)
|
|
149
148
|
|
|
150
149
|
// Add garageDoorService
|
|
151
|
-
this.garageDoorService = (accessory.getService(this.hap.Service.GarageDoorOpener)
|
|
152
|
-
|| accessory.addService(this.hap.Service.GarageDoorOpener))
|
|
150
|
+
this.garageDoorService = (accessory.getService(this.hap.Service.GarageDoorOpener) || accessory.addService(this.hap.Service.GarageDoorOpener))
|
|
153
151
|
this.debugWarnLog(`${this.device.deviceType}: ${accessory.displayName} Displaying as Garage Door Opener`)
|
|
154
152
|
|
|
155
153
|
this.garageDoorService.setCharacteristic(this.hap.Characteristic.Name, accessory.displayName)
|
|
@@ -170,8 +168,7 @@ export class Bot {
|
|
|
170
168
|
this.removeStatefulProgrammableSwitchService(accessory)
|
|
171
169
|
|
|
172
170
|
// Add doorService
|
|
173
|
-
this.doorService = accessory.getService(this.hap.Service.Door)
|
|
174
|
-
|| accessory.addService(this.hap.Service.Door)
|
|
171
|
+
this.doorService = accessory.getService(this.hap.Service.Door) || accessory.addService(this.hap.Service.Door)
|
|
175
172
|
this.debugWarnLog(`${this.device.deviceType}: ${accessory.displayName} Displaying as Door`)
|
|
176
173
|
|
|
177
174
|
this.doorService.setCharacteristic(this.hap.Characteristic.Name, accessory.displayName)
|
|
@@ -200,8 +197,7 @@ export class Bot {
|
|
|
200
197
|
this.removeStatefulProgrammableSwitchService(accessory)
|
|
201
198
|
|
|
202
199
|
// Add windowService
|
|
203
|
-
this.windowService = accessory.getService(this.hap.Service.Window)
|
|
204
|
-
|| accessory.addService(this.hap.Service.Window)
|
|
200
|
+
this.windowService = accessory.getService(this.hap.Service.Window) || accessory.addService(this.hap.Service.Window)
|
|
205
201
|
this.debugWarnLog(`${this.device.deviceType}: ${accessory.displayName} Displaying as Window`)
|
|
206
202
|
|
|
207
203
|
this.windowService.setCharacteristic(this.hap.Characteristic.Name, accessory.displayName)
|
|
@@ -230,8 +226,7 @@ export class Bot {
|
|
|
230
226
|
this.removeStatefulProgrammableSwitchService(accessory)
|
|
231
227
|
|
|
232
228
|
// Add windowCoveringService
|
|
233
|
-
this.windowCoveringService = accessory.getService(this.hap.Service.WindowCovering)
|
|
234
|
-
|| accessory.addService(this.hap.Service.WindowCovering)
|
|
229
|
+
this.windowCoveringService = accessory.getService(this.hap.Service.WindowCovering) || accessory.addService(this.hap.Service.WindowCovering)
|
|
235
230
|
this.debugWarnLog(`${this.device.deviceType}: ${accessory.displayName} Displaying as Window Covering`)
|
|
236
231
|
|
|
237
232
|
this.windowCoveringService.setCharacteristic(this.hap.Characteristic.Name, accessory.displayName)
|
|
@@ -260,8 +255,7 @@ export class Bot {
|
|
|
260
255
|
this.removeStatefulProgrammableSwitchService(accessory)
|
|
261
256
|
|
|
262
257
|
// Add lockService
|
|
263
|
-
this.lockService = accessory.getService(this.hap.Service.LockMechanism)
|
|
264
|
-
|| accessory.addService(this.hap.Service.LockMechanism)
|
|
258
|
+
this.lockService = accessory.getService(this.hap.Service.LockMechanism) || accessory.addService(this.hap.Service.LockMechanism)
|
|
265
259
|
this.debugWarnLog(`${this.device.deviceType}: ${accessory.displayName} Displaying as Lock`)
|
|
266
260
|
|
|
267
261
|
this.lockService.setCharacteristic(this.hap.Characteristic.Name, accessory.displayName)
|
|
@@ -281,8 +275,7 @@ export class Bot {
|
|
|
281
275
|
this.removeStatefulProgrammableSwitchService(accessory)
|
|
282
276
|
|
|
283
277
|
// Add faucetService
|
|
284
|
-
this.faucetService = accessory.getService(this.hap.Service.Faucet)
|
|
285
|
-
|| accessory.addService(this.hap.Service.Faucet)
|
|
278
|
+
this.faucetService = accessory.getService(this.hap.Service.Faucet) || accessory.addService(this.hap.Service.Faucet)
|
|
286
279
|
this.debugWarnLog(`${this.device.deviceType}: ${accessory.displayName} Displaying as Faucet`)
|
|
287
280
|
|
|
288
281
|
this.faucetService.setCharacteristic(this.hap.Characteristic.Name, accessory.displayName)
|
|
@@ -302,8 +295,7 @@ export class Bot {
|
|
|
302
295
|
this.removeStatefulProgrammableSwitchService(accessory)
|
|
303
296
|
|
|
304
297
|
// Add fanService
|
|
305
|
-
this.fanService = accessory.getService(this.hap.Service.Fan)
|
|
306
|
-
|| accessory.addService(this.hap.Service.Fan)
|
|
298
|
+
this.fanService = accessory.getService(this.hap.Service.Fan) || accessory.addService(this.hap.Service.Fan)
|
|
307
299
|
this.debugWarnLog(`${this.device.deviceType}: ${accessory.displayName} Displaying as Fan`)
|
|
308
300
|
|
|
309
301
|
this.fanService.setCharacteristic(this.hap.Characteristic.Name, accessory.displayName)
|
|
@@ -323,8 +315,7 @@ export class Bot {
|
|
|
323
315
|
this.removeWindowCoveringService(accessory)
|
|
324
316
|
|
|
325
317
|
// Add statefulProgrammableSwitchService
|
|
326
|
-
this.statefulProgrammableSwitchService = (accessory.getService(this.hap.Service.StatefulProgrammableSwitch)
|
|
327
|
-
|| accessory.addService(this.hap.Service.StatefulProgrammableSwitch))
|
|
318
|
+
this.statefulProgrammableSwitchService = (accessory.getService(this.hap.Service.StatefulProgrammableSwitch) || accessory.addService(this.hap.Service.StatefulProgrammableSwitch))
|
|
328
319
|
this.debugWarnLog(`${this.device.deviceType}: ${accessory.displayName} Displaying as Stateful Programmable Switch`)
|
|
329
320
|
|
|
330
321
|
this.statefulProgrammableSwitchService.setCharacteristic(this.hap.Characteristic.Name, accessory.displayName)
|
|
@@ -346,8 +337,7 @@ export class Bot {
|
|
|
346
337
|
this.removeStatefulProgrammableSwitchService(accessory)
|
|
347
338
|
|
|
348
339
|
// Add outletService
|
|
349
|
-
this.outletService = (accessory.getService(this.hap.Service.Outlet)
|
|
350
|
-
|| accessory.addService(this.hap.Service.Outlet))
|
|
340
|
+
this.outletService = (accessory.getService(this.hap.Service.Outlet) || accessory.addService(this.hap.Service.Outlet))
|
|
351
341
|
this.debugWarnLog(`${this.device.deviceType}: ${accessory.displayName} Displaying as Outlet`)
|
|
352
342
|
|
|
353
343
|
this.outletService.setCharacteristic(this.hap.Characteristic.Name, accessory.displayName)
|
|
@@ -358,8 +348,7 @@ export class Bot {
|
|
|
358
348
|
}
|
|
359
349
|
|
|
360
350
|
// batteryService
|
|
361
|
-
this.batteryService = (this.accessory.getService(this.hap.Service.Battery)
|
|
362
|
-
|| accessory.addService(this.hap.Service.Battery))
|
|
351
|
+
this.batteryService = (this.accessory.getService(this.hap.Service.Battery) || accessory.addService(this.hap.Service.Battery))
|
|
363
352
|
|
|
364
353
|
this.batteryService.setCharacteristic(this.hap.Characteristic.Name, `${accessory.displayName} Battery`)
|
|
365
354
|
if (!this.batteryService.testCharacteristic(this.hap.Characteristic.ConfiguredName)) {
|
|
@@ -385,17 +374,13 @@ export class Bot {
|
|
|
385
374
|
this.debugLog(`${this.device.deviceType}: ${this.accessory.displayName} received Webhook: ${JSON.stringify(context)}`)
|
|
386
375
|
const { power, battery, deviceMode } = context
|
|
387
376
|
const { On, BatteryLevel, botMode } = this
|
|
388
|
-
this.debugLog(`${this.device.deviceType}: ${this.accessory.displayName} `
|
|
389
|
-
+ '(power, battery, deviceMode) = '
|
|
390
|
-
+ `Webhook:(${power}, ${battery}, ${deviceMode}), `
|
|
391
|
-
+ `current:(${On}, ${BatteryLevel}, ${botMode})`)
|
|
377
|
+
this.debugLog(`${this.device.deviceType}: ${this.accessory.displayName} (power, battery, deviceMode) = Webhook:(${power}, ${battery}, ${deviceMode}), current:(${On}, ${BatteryLevel}, ${botMode})`)
|
|
392
378
|
this.On = power
|
|
393
379
|
this.BatteryLevel = battery
|
|
394
380
|
this.botMode = deviceMode
|
|
395
381
|
this.updateHomeKitCharacteristics()
|
|
396
382
|
} catch (e: any) {
|
|
397
|
-
this.errorLog(`${this.device.deviceType}: ${this.accessory.displayName} `
|
|
398
|
-
+ `failed to handle webhook. Received: ${JSON.stringify(context)} Error: ${e}`)
|
|
383
|
+
this.errorLog(`${this.device.deviceType}: ${this.accessory.displayName} failed to handle webhook. Received: ${JSON.stringify(context)} Error: ${e}`)
|
|
399
384
|
}
|
|
400
385
|
}
|
|
401
386
|
}
|
|
@@ -473,8 +458,7 @@ export class Bot {
|
|
|
473
458
|
if (Number.isNaN(this.BatteryLevel)) {
|
|
474
459
|
this.BatteryLevel = 100
|
|
475
460
|
}
|
|
476
|
-
this.debugLog(`${this.device.deviceType}: ${this.accessory.displayName} BatteryLevel: ${this.BatteryLevel}
|
|
477
|
-
+ ` StatusLowBattery: ${this.StatusLowBattery}`)
|
|
461
|
+
this.debugLog(`${this.device.deviceType}: ${this.accessory.displayName} BatteryLevel: ${this.BatteryLevel}, StatusLowBattery: ${this.StatusLowBattery}`)
|
|
478
462
|
}
|
|
479
463
|
|
|
480
464
|
async openAPIparseStatus(): Promise<void> {
|
|
@@ -500,8 +484,7 @@ export class Bot {
|
|
|
500
484
|
if (Number.isNaN(this.BatteryLevel)) {
|
|
501
485
|
this.BatteryLevel = 100
|
|
502
486
|
}
|
|
503
|
-
this.debugLog(`${this.device.deviceType}: ${this.accessory.displayName} BatteryLevel: ${this.BatteryLevel}
|
|
504
|
-
+ ` StatusLowBattery: ${this.StatusLowBattery}`)
|
|
487
|
+
this.debugLog(`${this.device.deviceType}: ${this.accessory.displayName} BatteryLevel: ${this.BatteryLevel}, StatusLowBattery: ${this.StatusLowBattery}`)
|
|
505
488
|
|
|
506
489
|
// FirmwareRevision
|
|
507
490
|
this.FirmwareRevision = this.OpenAPI_FirmwareRevision!
|
|
@@ -627,8 +610,7 @@ export class Bot {
|
|
|
627
610
|
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} deviceStatus: ${JSON.stringify(deviceStatus)}`)
|
|
628
611
|
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} deviceStatus statusCode: ${deviceStatus.statusCode}`)
|
|
629
612
|
if ((statusCode === 200 || statusCode === 100) && (deviceStatus.statusCode === 200 || deviceStatus.statusCode === 100)) {
|
|
630
|
-
this.debugErrorLog(`${this.device.deviceType}: ${this.accessory.displayName} `
|
|
631
|
-
+ `statusCode: ${statusCode} & deviceStatus StatusCode: ${deviceStatus.statusCode}`)
|
|
613
|
+
this.debugErrorLog(`${this.device.deviceType}: ${this.accessory.displayName} statusCode: ${statusCode} & deviceStatus StatusCode: ${deviceStatus.statusCode}`)
|
|
632
614
|
this.OpenAPI_On = deviceStatus.body.power
|
|
633
615
|
this.OpenAPI_BatteryLevel = deviceStatus.body.battery
|
|
634
616
|
this.OpenAPI_FirmwareRevision = deviceStatus.body.version
|
|
@@ -796,8 +778,7 @@ export class Bot {
|
|
|
796
778
|
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} deviceStatus body: ${JSON.stringify(deviceStatus.body)}`)
|
|
797
779
|
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} deviceStatus statusCode: ${deviceStatus.statusCode}`)
|
|
798
780
|
if ((statusCode === 200 || statusCode === 100) && (deviceStatus.statusCode === 200 || deviceStatus.statusCode === 100)) {
|
|
799
|
-
this.debugErrorLog(`${this.device.deviceType}: ${this.accessory.displayName} `
|
|
800
|
-
+ `statusCode: ${statusCode} & deviceStatus StatusCode: ${deviceStatus.statusCode}`)
|
|
781
|
+
this.debugErrorLog(`${this.device.deviceType}: ${this.accessory.displayName} statusCode: ${statusCode} & deviceStatus StatusCode: ${deviceStatus.statusCode}`)
|
|
801
782
|
} else {
|
|
802
783
|
this.statusCode(statusCode)
|
|
803
784
|
this.statusCode(deviceStatus.statusCode)
|
|
@@ -1226,8 +1207,7 @@ export class Bot {
|
|
|
1226
1207
|
}
|
|
1227
1208
|
|
|
1228
1209
|
async BLERefreshConnection(switchbot: any): Promise<void> {
|
|
1229
|
-
this.errorLog(`${this.device.deviceType}: ${this.accessory.displayName} wasn't able to establish BLE Connection, node-switchbot
|
|
1230
|
-
+ ` ${JSON.stringify(switchbot)}`)
|
|
1210
|
+
this.errorLog(`${this.device.deviceType}: ${this.accessory.displayName} wasn't able to establish BLE Connection, node-switchbot: ${JSON.stringify(switchbot)}`)
|
|
1231
1211
|
if (this.platform.config.credentials?.token && this.device.connectionType === 'BLE/OpenAPI') {
|
|
1232
1212
|
this.warnLog(`${this.device.deviceType}: ${this.accessory.displayName} Using OpenAPI Connection to Refresh Status`)
|
|
1233
1213
|
await this.openAPIRefreshStatus()
|
|
@@ -1312,17 +1292,11 @@ export class Bot {
|
|
|
1312
1292
|
this.offlineOff()
|
|
1313
1293
|
break
|
|
1314
1294
|
case 171:
|
|
1315
|
-
this.errorLog(
|
|
1316
|
-
`${this.device.deviceType}: ${this.accessory.displayName} Hub Device is offline, statusCode: ${statusCode}. `
|
|
1317
|
-
+ `Hub: ${this.device.hubDeviceId}`,
|
|
1318
|
-
)
|
|
1295
|
+
this.errorLog(`${this.device.deviceType}: ${this.accessory.displayName} Hub Device is offline, statusCode: ${statusCode}. Hub: ${this.device.hubDeviceId}`)
|
|
1319
1296
|
this.offlineOff()
|
|
1320
1297
|
break
|
|
1321
1298
|
case 190:
|
|
1322
|
-
this.errorLog(
|
|
1323
|
-
`${this.device.deviceType}: ${this.accessory.displayName} Device internal error due to device states not synchronized with server,`
|
|
1324
|
-
+ ` Or command format is invalid, statusCode: ${statusCode}`,
|
|
1325
|
-
)
|
|
1299
|
+
this.errorLog(`${this.device.deviceType}: ${this.accessory.displayName} Device internal error due to device states not synchronized with server, Or command format is invalid, statusCode: ${statusCode}`)
|
|
1326
1300
|
break
|
|
1327
1301
|
case 100:
|
|
1328
1302
|
this.debugLog(`${this.device.deviceType}: ${this.accessory.displayName} Command successfully sent, statusCode: ${statusCode}`)
|
|
@@ -1331,46 +1305,34 @@ export class Bot {
|
|
|
1331
1305
|
this.debugLog(`${this.device.deviceType}: ${this.accessory.displayName} Request successful, statusCode: ${statusCode}`)
|
|
1332
1306
|
break
|
|
1333
1307
|
case 400:
|
|
1334
|
-
this.errorLog(`${this.device.deviceType}: ${this.accessory.displayName} Bad Request, The client has issued an invalid request. `
|
|
1335
|
-
+ `This is commonly used to specify validation errors in a request payload, statusCode: ${statusCode}`)
|
|
1308
|
+
this.errorLog(`${this.device.deviceType}: ${this.accessory.displayName} Bad Request, The client has issued an invalid request. This is commonly used to specify validation errors in a request payload, statusCode: ${statusCode}`)
|
|
1336
1309
|
break
|
|
1337
1310
|
case 401:
|
|
1338
|
-
this.errorLog(`${this.device.deviceType}: ${this.accessory.displayName} Unauthorized, Authorization for the API is required, `
|
|
1339
|
-
+ `but the request has not been authenticated, statusCode: ${statusCode}`)
|
|
1311
|
+
this.errorLog(`${this.device.deviceType}: ${this.accessory.displayName} Unauthorized, Authorization for the API is required, but the request has not been authenticated, statusCode: ${statusCode}`)
|
|
1340
1312
|
break
|
|
1341
1313
|
case 403:
|
|
1342
|
-
this.errorLog(`${this.device.deviceType}: ${this.accessory.displayName} Forbidden, The request has been authenticated but does not `
|
|
1343
|
-
+ `have appropriate permissions, or a requested resource is not found, statusCode: ${statusCode}`)
|
|
1314
|
+
this.errorLog(`${this.device.deviceType}: ${this.accessory.displayName} Forbidden, The request has been authenticated but does not have appropriate permissions, or a requested resource is not found, statusCode: ${statusCode}`)
|
|
1344
1315
|
break
|
|
1345
1316
|
case 404:
|
|
1346
|
-
this.errorLog(`${this.device.deviceType}: ${this.accessory.displayName} Not Found, Specifies the requested path does not exist, `
|
|
1347
|
-
+ `statusCode: ${statusCode}`)
|
|
1317
|
+
this.errorLog(`${this.device.deviceType}: ${this.accessory.displayName} Not Found, Specifies the requested path does not exist, statusCode: ${statusCode}`)
|
|
1348
1318
|
break
|
|
1349
1319
|
case 406:
|
|
1350
|
-
this.errorLog(`${this.device.deviceType}: ${this.accessory.displayName} Not Acceptable, The client has requested a MIME type via `
|
|
1351
|
-
+ `the Accept header for a value not supported by the server, statusCode: ${statusCode}`)
|
|
1320
|
+
this.errorLog(`${this.device.deviceType}: ${this.accessory.displayName} Not Acceptable, The client has requested a MIME type via the Accept header for a value not supported by the server, statusCode: ${statusCode}`)
|
|
1352
1321
|
break
|
|
1353
1322
|
case 415:
|
|
1354
|
-
this.errorLog(`${this.device.deviceType}: ${this.accessory.displayName} Unsupported Media Type, The client has defined a contentType `
|
|
1355
|
-
+ `header that is not supported by the server, statusCode: ${statusCode}`)
|
|
1323
|
+
this.errorLog(`${this.device.deviceType}: ${this.accessory.displayName} Unsupported Media Type, The client has defined a contentType header that is not supported by the server, statusCode: ${statusCode}`)
|
|
1356
1324
|
break
|
|
1357
1325
|
case 422:
|
|
1358
|
-
this.errorLog(`${this.device.deviceType}: ${this.accessory.displayName} Unprocessable Entity, The client has made a valid request, `
|
|
1359
|
-
+ `but the server cannot process it. This is often used for APIs for which certain limits have been exceeded, statusCode: ${statusCode}`)
|
|
1326
|
+
this.errorLog(`${this.device.deviceType}: ${this.accessory.displayName} Unprocessable Entity, The client has made a valid request, but the server cannot process it. This is often used for APIs for which certain limits have been exceeded, statusCode: ${statusCode}`)
|
|
1360
1327
|
break
|
|
1361
1328
|
case 429:
|
|
1362
|
-
this.errorLog(`${this.device.deviceType}: ${this.accessory.displayName} Too Many Requests, The client has exceeded the number of `
|
|
1363
|
-
+ `requests allowed for a given time window, statusCode: ${statusCode}`)
|
|
1329
|
+
this.errorLog(`${this.device.deviceType}: ${this.accessory.displayName} Too Many Requests, The client has exceeded the number of requests allowed for a given time window, statusCode: ${statusCode}`)
|
|
1364
1330
|
break
|
|
1365
1331
|
case 500:
|
|
1366
|
-
this.errorLog(`${this.device.deviceType}: ${this.accessory.displayName} Internal Server Error, An unexpected error on the SmartThings `
|
|
1367
|
-
+ `servers has occurred. These errors should be rare, statusCode: ${statusCode}`)
|
|
1332
|
+
this.errorLog(`${this.device.deviceType}: ${this.accessory.displayName} Internal Server Error, An unexpected error on the SmartThings servers has occurred. These errors should be rare, statusCode: ${statusCode}`)
|
|
1368
1333
|
break
|
|
1369
1334
|
default:
|
|
1370
|
-
this.infoLog(
|
|
1371
|
-
`${this.device.deviceType}: ${this.accessory.displayName} Unknown statusCode: `
|
|
1372
|
-
+ `${statusCode}, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug`,
|
|
1373
|
-
)
|
|
1335
|
+
this.infoLog(`${this.device.deviceType}: ${this.accessory.displayName} Unknown statusCode: ${statusCode}, Submit Bugs Here: https://tinyurl.com/SwitchBotBug`)
|
|
1374
1336
|
}
|
|
1375
1337
|
}
|
|
1376
1338
|
|
|
@@ -466,13 +466,11 @@ export class AirConditioner extends irdeviceBase {
|
|
|
466
466
|
|
|
467
467
|
this.HeaterCooler.CurrentTemperature = (this.HeaterCooler.CurrentTemperature === undefined && this.accessory.context.CurrentTemperature === undefined)
|
|
468
468
|
? 24
|
|
469
|
-
: this.HeaterCooler.CurrentTemperature
|
|
470
|
-
?? this.accessory.context.CurrentTemperature
|
|
469
|
+
: this.HeaterCooler.CurrentTemperature ?? this.accessory.context.CurrentTemperature
|
|
471
470
|
|
|
472
471
|
this.HeaterCooler.ThresholdTemperature = this.HeaterCooler.ThresholdTemperature === undefined
|
|
473
472
|
? 24
|
|
474
|
-
: this.HeaterCooler.ThresholdTemperature
|
|
475
|
-
?? this.accessory.context.ThresholdTemperature
|
|
473
|
+
: this.HeaterCooler.ThresholdTemperature ?? this.accessory.context.ThresholdTemperature
|
|
476
474
|
|
|
477
475
|
this.HeaterCooler.RotationSpeed = (this.HeaterCooler.RotationSpeed === undefined && this.accessory.context.RotationSpeed === undefined)
|
|
478
476
|
? 4
|
|
@@ -483,8 +481,7 @@ export class AirConditioner extends irdeviceBase {
|
|
|
483
481
|
if (this.meter && this.HumiditySensor?.Service) {
|
|
484
482
|
this.HumiditySensor.CurrentRelativeHumidity = (this.HumiditySensor.CurrentRelativeHumidity === undefined && this.accessory.context.CurrentRelativeHumidity === undefined)
|
|
485
483
|
? 0
|
|
486
|
-
: this.HumiditySensor.CurrentRelativeHumidity
|
|
487
|
-
?? this.accessory.context.CurrentRelativeHumidity
|
|
484
|
+
: this.HumiditySensor.CurrentRelativeHumidity ?? this.accessory.context.CurrentRelativeHumidity
|
|
488
485
|
}
|
|
489
486
|
await this.debugLog(`Get ThresholdTemperature: ${this.HeaterCooler.ThresholdTemperature}`)
|
|
490
487
|
return this.HeaterCooler.ThresholdTemperature
|
package/src/platform.ts
CHANGED
|
@@ -26,7 +26,7 @@ import { EveHomeKitTypes } from 'homebridge-lib/EveHomeKitTypes'
|
|
|
26
26
|
* For Testing Locally:
|
|
27
27
|
* import { SwitchBotModel } from '/Users/Shared/GitHub/OpenWonderLabs/node-switchbot/dist/index.js';
|
|
28
28
|
*/
|
|
29
|
-
import { SwitchBotModel } from 'node-switchbot'
|
|
29
|
+
import { SwitchBot, SwitchBotModel } from 'node-switchbot'
|
|
30
30
|
import { queueScheduler } from 'rxjs'
|
|
31
31
|
import { request } from 'undici'
|
|
32
32
|
|
|
@@ -333,7 +333,6 @@ export class SwitchBotPlatform implements DynamicPlatformPlugin {
|
|
|
333
333
|
async setupBlE() {
|
|
334
334
|
if (this.config.options?.BLE) {
|
|
335
335
|
await this.debugLog('setupBLE')
|
|
336
|
-
const SwitchBot = (await import('node-switchbot')).SwitchBot
|
|
337
336
|
const switchbot = new SwitchBot()
|
|
338
337
|
if (switchbot === undefined) {
|
|
339
338
|
await this.errorLog(`wasn't able to establish BLE Connection, node-switchbot: ${switchbot}`)
|
|
@@ -2659,7 +2658,6 @@ export class SwitchBotPlatform implements DynamicPlatformPlugin {
|
|
|
2659
2658
|
// BLE Connection
|
|
2660
2659
|
async connectBLE(accessory: PlatformAccessory, device: device & devicesConfig): Promise<any> {
|
|
2661
2660
|
try {
|
|
2662
|
-
const { SwitchBot } = await import('node-switchbot')
|
|
2663
2661
|
const switchbot = new SwitchBot()
|
|
2664
2662
|
queueScheduler.schedule(async () => switchbot)
|
|
2665
2663
|
await this.debugLog(`${device.deviceType}: ${accessory.displayName} 'node-switchbot' found: ${switchbot}`)
|
|
@@ -14,11 +14,7 @@ export interface ad {
|
|
|
14
14
|
id: string
|
|
15
15
|
address: string
|
|
16
16
|
rssi: number
|
|
17
|
-
serviceData: botServiceData | colorBulbServiceData | contactSensorServiceData |
|
|
18
|
-
curtainServiceData | curtain3ServiceData | stripLightServiceData | lockServiceData |
|
|
19
|
-
lockProServiceData | meterServiceData | meterPlusServiceData | motionSensorServiceData | outdoorMeterServiceData |
|
|
20
|
-
plugMiniUSServiceData | plugMiniJPServiceData | blindTiltServiceData | ceilingLightServiceData | ceilingLightProServiceData |
|
|
21
|
-
hub2ServiceData | batteryCirculatorFanServiceData | waterLeakDetectorServiceData | humidifierServiceData | robotVacuumCleanerServiceData
|
|
17
|
+
serviceData: botServiceData | colorBulbServiceData | contactSensorServiceData | curtainServiceData | curtain3ServiceData | stripLightServiceData | lockServiceData | lockProServiceData | meterServiceData | meterPlusServiceData | motionSensorServiceData | outdoorMeterServiceData | plugMiniUSServiceData | plugMiniJPServiceData | blindTiltServiceData | ceilingLightServiceData | ceilingLightProServiceData | hub2ServiceData | batteryCirculatorFanServiceData | waterLeakDetectorServiceData | humidifierServiceData | robotVacuumCleanerServiceData
|
|
22
18
|
}
|
|
23
19
|
|
|
24
20
|
interface serviceData {
|
|
@@ -113,27 +113,23 @@ export type plugMiniJPWebhookContext = deviceWebhookContext & {
|
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
export type robotVacuumCleanerS1WebhookContext = deviceWebhookContext & {
|
|
116
|
-
workingStatus: 'Standby' | 'Clearing' | 'Paused' | 'GotoChargeBase' | 'Charging' | 'ChargeDone' | 'Dormant' | 'InTrouble'
|
|
117
|
-
| 'InRemoteControl' | 'InDustCollecting'
|
|
116
|
+
workingStatus: 'Standby' | 'Clearing' | 'Paused' | 'GotoChargeBase' | 'Charging' | 'ChargeDone' | 'Dormant' | 'InTrouble' | 'InRemoteControl' | 'InDustCollecting'
|
|
118
117
|
onlineStatus: 'online' | 'offline'
|
|
119
118
|
battery: number // 0~100
|
|
120
119
|
}
|
|
121
120
|
|
|
122
121
|
export type robotVacuumCleanerS1PlusWebhookContext = deviceWebhookContext & {
|
|
123
|
-
workingStatus: 'Standby' | 'Clearing' | 'Paused' | 'GotoChargeBase' | 'Charging' | 'ChargeDone' | 'Dormant' | 'InTrouble'
|
|
124
|
-
| 'InRemoteControl' | 'InDustCollecting'
|
|
122
|
+
workingStatus: 'Standby' | 'Clearing' | 'Paused' | 'GotoChargeBase' | 'Charging' | 'ChargeDone' | 'Dormant' | 'InTrouble' | 'InRemoteControl' | 'InDustCollecting'
|
|
125
123
|
onlineStatus: 'online' | 'offline'
|
|
126
124
|
battery: number // 0~100
|
|
127
125
|
}
|
|
128
126
|
|
|
129
127
|
export type floorCleaningRobotS10WebhookContext = deviceWebhookContext & {
|
|
130
|
-
workingStatus: 'Standby' | 'Clearing' | 'Paused' | 'GotoChargeBase' | 'Charging' | 'ChargeDone' | 'Dormant' | 'InTrouble'
|
|
131
|
-
| 'InRemoteControl' | 'InDustCollecting'
|
|
128
|
+
workingStatus: 'Standby' | 'Clearing' | 'Paused' | 'GotoChargeBase' | 'Charging' | 'ChargeDone' | 'Dormant' | 'InTrouble' | 'InRemoteControl' | 'InDustCollecting'
|
|
132
129
|
onlineStatus: 'online' | 'offline'
|
|
133
130
|
battery: number // 0~100
|
|
134
131
|
waterBaseBattery: number // 0~100
|
|
135
|
-
taskType: 'standBy' | 'explore' | 'cleanAll' | 'cleanArea' | 'cleanRoom' | 'fillWater' | 'deepWashing' | 'backToCharge' | 'markingWaterBase'
|
|
136
|
-
| 'drying' | 'collectDust' | 'remoteControl' | 'cleanWithExplorer' | 'fillWaterForHumi' | 'markingHumi'
|
|
132
|
+
taskType: 'standBy' | 'explore' | 'cleanAll' | 'cleanArea' | 'cleanRoom' | 'fillWater' | 'deepWashing' | 'backToCharge' | 'markingWaterBase' | 'drying' | 'collectDust' | 'remoteControl' | 'cleanWithExplorer' | 'fillWaterForHumi' | 'markingHumi'
|
|
137
133
|
}
|
|
138
134
|
|
|
139
135
|
export type ceilingLightWebhookContext = deviceWebhookContext & {
|