@switchbot/homebridge-switchbot 3.5.0-beta.45 → 3.5.0-beta.47
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/colorbulb.js +3 -3
- package/dist/device/colorbulb.js.map +1 -1
- package/dist/device/curtain.js +1 -1
- package/dist/device/curtain.js.map +1 -1
- package/dist/device/device.js +1 -1
- package/dist/device/device.js.map +1 -1
- package/dist/device/fan.js +1 -1
- package/dist/device/fan.js.map +1 -1
- package/dist/device/humidifier.js +3 -3
- package/dist/device/humidifier.js.map +1 -1
- package/dist/device/lightstrip.js +3 -3
- package/dist/device/lightstrip.js.map +1 -1
- package/dist/device/lock.js +1 -1
- package/dist/device/lock.js.map +1 -1
- package/dist/device/plug.js +1 -1
- package/dist/device/plug.js.map +1 -1
- package/dist/device/robotvacuumcleaner.js +1 -1
- package/dist/device/robotvacuumcleaner.js.map +1 -1
- package/package.json +1 -1
- package/src/device/colorbulb.ts +3 -3
- package/src/device/curtain.ts +1 -1
- package/src/device/device.ts +1 -1
- package/src/device/fan.ts +1 -1
- package/src/device/humidifier.ts +3 -3
- package/src/device/lightstrip.ts +3 -3
- package/src/device/lock.ts +1 -1
- package/src/device/plug.ts +1 -1
- package/src/device/robotvacuumcleaner.ts +1 -1
package/src/device/colorbulb.ts
CHANGED
|
@@ -755,7 +755,7 @@ export class ColorBulb extends deviceBase {
|
|
|
755
755
|
this.debugErrorLog(`${this.device.deviceType}: ${this.accessory.displayName} `
|
|
756
756
|
+ `statusCode: ${statusCode} & deviceStatus StatusCode: ${deviceStatus.statusCode}`);
|
|
757
757
|
this.successLog(`${this.device.deviceType}: ${this.accessory.displayName} `
|
|
758
|
-
+ `request to SwitchBot API, body: ${deviceStatus} sent successfully`);
|
|
758
|
+
+ `request to SwitchBot API, body: ${JSON.stringify(deviceStatus)} sent successfully`);
|
|
759
759
|
} else {
|
|
760
760
|
this.statusCode(statusCode);
|
|
761
761
|
this.statusCode(deviceStatus.statusCode);
|
|
@@ -801,7 +801,7 @@ export class ColorBulb extends deviceBase {
|
|
|
801
801
|
this.debugErrorLog(`${this.device.deviceType}: ${this.accessory.displayName} `
|
|
802
802
|
+ `statusCode: ${statusCode} & deviceStatus StatusCode: ${deviceStatus.statusCode}`);
|
|
803
803
|
this.successLog(`${this.device.deviceType}: ${this.accessory.displayName} `
|
|
804
|
-
+ `request to SwitchBot API, body: ${deviceStatus} sent successfully`);
|
|
804
|
+
+ `request to SwitchBot API, body: ${JSON.stringify(deviceStatus)} sent successfully`);
|
|
805
805
|
} else {
|
|
806
806
|
this.statusCode(statusCode);
|
|
807
807
|
this.statusCode(deviceStatus.statusCode);
|
|
@@ -841,7 +841,7 @@ export class ColorBulb extends deviceBase {
|
|
|
841
841
|
this.debugErrorLog(`${this.device.deviceType}: ${this.accessory.displayName} `
|
|
842
842
|
+ `statusCode: ${statusCode} & deviceStatus StatusCode: ${deviceStatus.statusCode}`);
|
|
843
843
|
this.successLog(`${this.device.deviceType}: ${this.accessory.displayName} `
|
|
844
|
-
+ `request to SwitchBot API, body: ${deviceStatus} sent successfully`);
|
|
844
|
+
+ `request to SwitchBot API, body: ${JSON.stringify(deviceStatus)} sent successfully`);
|
|
845
845
|
} else {
|
|
846
846
|
this.statusCode(statusCode);
|
|
847
847
|
this.statusCode(deviceStatus.statusCode);
|
package/src/device/curtain.ts
CHANGED
|
@@ -667,7 +667,7 @@ export class Curtain extends deviceBase {
|
|
|
667
667
|
this.debugErrorLog(`${this.device.deviceType}: ${this.accessory.displayName} `
|
|
668
668
|
+ `statusCode: ${statusCode} & deviceStatus StatusCode: ${deviceStatus.statusCode}`);
|
|
669
669
|
this.successLog(`${this.device.deviceType}: ${this.accessory.displayName} `
|
|
670
|
-
+ `request to SwitchBot API, body: ${deviceStatus} sent successfully`);
|
|
670
|
+
+ `request to SwitchBot API, body: ${JSON.stringify(deviceStatus)} sent successfully`);
|
|
671
671
|
} else {
|
|
672
672
|
this.statusCode(statusCode);
|
|
673
673
|
this.statusCode(deviceStatus.statusCode);
|
package/src/device/device.ts
CHANGED
package/src/device/fan.ts
CHANGED
|
@@ -412,7 +412,7 @@ export class Fan extends deviceBase {
|
|
|
412
412
|
this.debugErrorLog(`${this.device.deviceType}: ${this.accessory.displayName} `
|
|
413
413
|
+ `statusCode: ${statusCode} & deviceStatus StatusCode: ${deviceStatus.statusCode}`);
|
|
414
414
|
this.successLog(`${this.device.deviceType}: ${this.accessory.displayName} `
|
|
415
|
-
+ `request to SwitchBot API, body: ${deviceStatus} sent successfully`);
|
|
415
|
+
+ `request to SwitchBot API, body: ${JSON.stringify(deviceStatus)} sent successfully`);
|
|
416
416
|
} else {
|
|
417
417
|
this.statusCode(statusCode);
|
|
418
418
|
this.statusCode(deviceStatus.statusCode);
|
package/src/device/humidifier.ts
CHANGED
|
@@ -445,7 +445,7 @@ export class Humidifier extends deviceBase {
|
|
|
445
445
|
this.debugErrorLog(`${this.device.deviceType}: ${this.accessory.displayName} `
|
|
446
446
|
+ `statusCode: ${statusCode} & deviceStatus StatusCode: ${deviceStatus.statusCode}`);
|
|
447
447
|
this.successLog(`${this.device.deviceType}: ${this.accessory.displayName} `
|
|
448
|
-
+ `request to SwitchBot API, body: ${deviceStatus} sent successfully`);
|
|
448
|
+
+ `request to SwitchBot API, body: ${JSON.stringify(deviceStatus)} sent successfully`);
|
|
449
449
|
} else {
|
|
450
450
|
this.statusCode(statusCode);
|
|
451
451
|
this.statusCode(deviceStatus.statusCode);
|
|
@@ -500,7 +500,7 @@ export class Humidifier extends deviceBase {
|
|
|
500
500
|
this.debugErrorLog(`${this.device.deviceType}: ${this.accessory.displayName} `
|
|
501
501
|
+ `statusCode: ${statusCode} & deviceStatus StatusCode: ${deviceStatus.statusCode}`);
|
|
502
502
|
this.successLog(`${this.device.deviceType}: ${this.accessory.displayName} `
|
|
503
|
-
+ `request to SwitchBot API, body: ${deviceStatus} sent successfully`);
|
|
503
|
+
+ `request to SwitchBot API, body: ${JSON.stringify(deviceStatus)} sent successfully`);
|
|
504
504
|
} else {
|
|
505
505
|
this.statusCode(statusCode);
|
|
506
506
|
this.statusCode(deviceStatus.statusCode);
|
|
@@ -546,7 +546,7 @@ export class Humidifier extends deviceBase {
|
|
|
546
546
|
this.debugErrorLog(`${this.device.deviceType}: ${this.accessory.displayName} `
|
|
547
547
|
+ `statusCode: ${statusCode} & deviceStatus StatusCode: ${deviceStatus.statusCode}`);
|
|
548
548
|
this.successLog(`${this.device.deviceType}: ${this.accessory.displayName} `
|
|
549
|
-
+ `request to SwitchBot API, body: ${deviceStatus} sent successfully`);
|
|
549
|
+
+ `request to SwitchBot API, body: ${JSON.stringify(deviceStatus)} sent successfully`);
|
|
550
550
|
} else {
|
|
551
551
|
this.statusCode(statusCode);
|
|
552
552
|
this.statusCode(deviceStatus.statusCode);
|
package/src/device/lightstrip.ts
CHANGED
|
@@ -630,7 +630,7 @@ export class StripLight extends deviceBase {
|
|
|
630
630
|
this.debugErrorLog(`${this.device.deviceType}: ${this.accessory.displayName} `
|
|
631
631
|
+ `statusCode: ${statusCode} & deviceStatus StatusCode: ${deviceStatus.statusCode}`);
|
|
632
632
|
this.successLog(`${this.device.deviceType}: ${this.accessory.displayName} `
|
|
633
|
-
+ `request to SwitchBot API, body: ${deviceStatus} sent successfully`);
|
|
633
|
+
+ `request to SwitchBot API, body: ${JSON.stringify(deviceStatus)} sent successfully`);
|
|
634
634
|
} else {
|
|
635
635
|
this.statusCode(statusCode);
|
|
636
636
|
this.statusCode(deviceStatus.statusCode);
|
|
@@ -688,7 +688,7 @@ export class StripLight extends deviceBase {
|
|
|
688
688
|
this.debugErrorLog(`${this.device.deviceType}: ${this.accessory.displayName} `
|
|
689
689
|
+ `statusCode: ${statusCode} & deviceStatus StatusCode: ${deviceStatus.statusCode}`);
|
|
690
690
|
this.successLog(`${this.device.deviceType}: ${this.accessory.displayName} `
|
|
691
|
-
+ `request to SwitchBot API, body: ${deviceStatus} sent successfully`);
|
|
691
|
+
+ `request to SwitchBot API, body: ${JSON.stringify(deviceStatus)} sent successfully`);
|
|
692
692
|
} else {
|
|
693
693
|
this.statusCode(statusCode);
|
|
694
694
|
this.statusCode(deviceStatus.statusCode);
|
|
@@ -732,7 +732,7 @@ export class StripLight extends deviceBase {
|
|
|
732
732
|
this.debugErrorLog(`${this.device.deviceType}: ${this.accessory.displayName} `
|
|
733
733
|
+ `statusCode: ${statusCode} & deviceStatus StatusCode: ${deviceStatus.statusCode}`);
|
|
734
734
|
this.successLog(`${this.device.deviceType}: ${this.accessory.displayName} `
|
|
735
|
-
+ `request to SwitchBot API, body: ${deviceStatus} sent successfully`);
|
|
735
|
+
+ `request to SwitchBot API, body: ${JSON.stringify(deviceStatus)} sent successfully`);
|
|
736
736
|
} else {
|
|
737
737
|
this.statusCode(statusCode);
|
|
738
738
|
this.statusCode(deviceStatus.statusCode);
|
package/src/device/lock.ts
CHANGED
|
@@ -452,7 +452,7 @@ export class Lock extends deviceBase {
|
|
|
452
452
|
this.debugErrorLog(`${this.device.deviceType}: ${this.accessory.displayName} `
|
|
453
453
|
+ `statusCode: ${statusCode} & deviceStatus StatusCode: ${deviceStatus.statusCode}`);
|
|
454
454
|
this.successLog(`${this.device.deviceType}: ${this.accessory.displayName} `
|
|
455
|
-
+ `request to SwitchBot API, body: ${deviceStatus} sent successfully`);
|
|
455
|
+
+ `request to SwitchBot API, body: ${JSON.stringify(deviceStatus)} sent successfully`);
|
|
456
456
|
} else {
|
|
457
457
|
this.statusCode(statusCode);
|
|
458
458
|
this.statusCode(deviceStatus.statusCode);
|
package/src/device/plug.ts
CHANGED
|
@@ -336,7 +336,7 @@ export class Plug extends deviceBase {
|
|
|
336
336
|
this.debugErrorLog(`${this.device.deviceType}: ${this.accessory.displayName} `
|
|
337
337
|
+ `statusCode: ${statusCode} & deviceStatus StatusCode: ${deviceStatus.statusCode}`);
|
|
338
338
|
this.successLog(`${this.device.deviceType}: ${this.accessory.displayName} `
|
|
339
|
-
+ `request to SwitchBot API, body: ${deviceStatus} sent successfully`);
|
|
339
|
+
+ `request to SwitchBot API, body: ${JSON.stringify(deviceStatus)} sent successfully`);
|
|
340
340
|
} else {
|
|
341
341
|
this.statusCode(statusCode);
|
|
342
342
|
this.statusCode(deviceStatus.statusCode);
|
|
@@ -482,7 +482,7 @@ export class RobotVacuumCleaner extends deviceBase {
|
|
|
482
482
|
this.debugSuccessLog(`${this.device.deviceType}: ${this.accessory.displayName} `
|
|
483
483
|
+ `statusCode: ${statusCode} & deviceStatus StatusCode: ${deviceStatus.statusCode}`);
|
|
484
484
|
this.successLog(`${this.device.deviceType}: ${this.accessory.displayName} `
|
|
485
|
-
+ `request to SwitchBot API, body: ${deviceStatus} sent successfully`);
|
|
485
|
+
+ `request to SwitchBot API, body: ${JSON.stringify(deviceStatus)} sent successfully`);
|
|
486
486
|
} else {
|
|
487
487
|
this.statusCode(statusCode);
|
|
488
488
|
this.statusCode(deviceStatus.statusCode);
|