homebridge-tuya-plus 3.14.0-dev.31 → 3.14.0-dev.32
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/lib/TuyaAccessory.js +18 -18
- package/package.json +1 -1
package/lib/TuyaAccessory.js
CHANGED
|
@@ -328,8 +328,8 @@ class TuyaAccessory extends EventEmitter {
|
|
|
328
328
|
data = JSON.parse(decryptedMsg);
|
|
329
329
|
} catch (ex) {
|
|
330
330
|
data = decryptedMsg;
|
|
331
|
-
this.log.
|
|
332
|
-
this.log.
|
|
331
|
+
this.log.debug(`Odd message from ${this.context.name} with command ${cmd}:`, data);
|
|
332
|
+
this.log.debug(`Raw message from ${this.context.name} (${this.context.version}) with command ${cmd}:`, task.msg.toString('hex'));
|
|
333
333
|
break;
|
|
334
334
|
}
|
|
335
335
|
|
|
@@ -351,8 +351,8 @@ class TuyaAccessory extends EventEmitter {
|
|
|
351
351
|
try {
|
|
352
352
|
data = JSON.parse(data);
|
|
353
353
|
} catch (ex) {
|
|
354
|
-
this.log.
|
|
355
|
-
this.log.
|
|
354
|
+
this.log.debug(`Malformed update from ${this.context.name} with command ${cmd}:`, data);
|
|
355
|
+
this.log.debug(`Raw update from ${this.context.name} (${this.context.version}) with command ${cmd}:`, task.msg.toString('hex'));
|
|
356
356
|
break;
|
|
357
357
|
}
|
|
358
358
|
|
|
@@ -361,8 +361,8 @@ class TuyaAccessory extends EventEmitter {
|
|
|
361
361
|
break;
|
|
362
362
|
|
|
363
363
|
default:
|
|
364
|
-
this.log.
|
|
365
|
-
this.log.
|
|
364
|
+
this.log.debug(`Odd message from ${this.context.name} with command ${cmd}:`, data);
|
|
365
|
+
this.log.debug(`Raw message from ${this.context.name} (${this.context.version}) with command ${cmd}:`, task.msg.toString('hex'));
|
|
366
366
|
}
|
|
367
367
|
|
|
368
368
|
callback();
|
|
@@ -416,8 +416,8 @@ class TuyaAccessory extends EventEmitter {
|
|
|
416
416
|
try {
|
|
417
417
|
data = JSON.parse(decryptedMsg);
|
|
418
418
|
} catch(ex) {
|
|
419
|
-
this.log.
|
|
420
|
-
this.log.
|
|
419
|
+
this.log.debug(`Odd message from ${this.context.name} with command ${cmd}:`, decryptedMsg);
|
|
420
|
+
this.log.debug(`Raw message from ${this.context.name} (${this.context.version}) with command ${cmd}:`, task.msg.toString('hex'));
|
|
421
421
|
return callback();
|
|
422
422
|
}
|
|
423
423
|
|
|
@@ -429,15 +429,15 @@ class TuyaAccessory extends EventEmitter {
|
|
|
429
429
|
//this.log.info(`Heard back from ${this.context.name} with command ${cmd}`);
|
|
430
430
|
this._change(data.dps);
|
|
431
431
|
} else {
|
|
432
|
-
this.log.
|
|
433
|
-
this.log.
|
|
432
|
+
this.log.debug(`Malformed message from ${this.context.name} with command ${cmd}:`, decryptedMsg);
|
|
433
|
+
this.log.debug(`Raw message from ${this.context.name} (${this.context.version}) with command ${cmd}:`, task.msg.toString('hex'));
|
|
434
434
|
}
|
|
435
435
|
}
|
|
436
436
|
break;
|
|
437
437
|
|
|
438
438
|
default:
|
|
439
|
-
this.log.
|
|
440
|
-
this.log.
|
|
439
|
+
this.log.debug(`Odd message from ${this.context.name} with command ${cmd}:`, decryptedMsg);
|
|
440
|
+
this.log.debug(`Raw message from ${this.context.name} (${this.context.version}) with command ${cmd}:`, task.msg.toString('hex'));
|
|
441
441
|
}
|
|
442
442
|
|
|
443
443
|
callback();
|
|
@@ -550,15 +550,15 @@ class TuyaAccessory extends EventEmitter {
|
|
|
550
550
|
//this.log.info(`Heard back from ${this.context.name} with command ${cmd}`);
|
|
551
551
|
this._change(parsedPayload.dps);
|
|
552
552
|
} else {
|
|
553
|
-
this.log.
|
|
554
|
-
this.log.
|
|
553
|
+
this.log.debug(`Malformed message from ${this.context.name} with command ${cmd}:`, decryptedMsg);
|
|
554
|
+
this.log.debug(`Raw message from ${this.context.name} (${this.context.version}) with command ${cmd}:`, task.msg.toString('hex'));
|
|
555
555
|
}
|
|
556
556
|
}
|
|
557
557
|
break;
|
|
558
558
|
|
|
559
559
|
default:
|
|
560
|
-
this.log.
|
|
561
|
-
this.log.
|
|
560
|
+
this.log.debug(`Odd message from ${this.context.name} with command ${cmd}:`, decryptedMsg);
|
|
561
|
+
this.log.debug(`Raw message from ${this.context.name} (${this.context.version}) with command ${cmd}:`, task.msg.toString('hex'));
|
|
562
562
|
}
|
|
563
563
|
|
|
564
564
|
callback();
|
|
@@ -674,11 +674,11 @@ class TuyaAccessory extends EventEmitter {
|
|
|
674
674
|
if (parsedPayload && parsedPayload.dps) {
|
|
675
675
|
this._change(parsedPayload.dps);
|
|
676
676
|
} else {
|
|
677
|
-
this.log.
|
|
677
|
+
this.log.debug(`Malformed message from ${this.context.name} with command ${cmd}:`, payload.toString('utf8'));
|
|
678
678
|
}
|
|
679
679
|
break;
|
|
680
680
|
default:
|
|
681
|
-
this.log.
|
|
681
|
+
this.log.debug(`Odd message from ${this.context.name} with command ${cmd}:`, payload.toString('utf8'));
|
|
682
682
|
}
|
|
683
683
|
|
|
684
684
|
callback();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "homebridge-tuya-plus",
|
|
3
|
-
"version": "3.14.0-dev.
|
|
3
|
+
"version": "3.14.0-dev.32",
|
|
4
4
|
"description": "A community-maintained Homebridge plugin for controlling Tuya devices in HomeKit. LAN-first, with an optional Tuya Cloud fallback for any device the LAN can't reach.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|