@switchbot/homebridge-switchbot 3.1.1-beta.1 → 3.1.1-beta.2
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 +0 -5
- package/dist/device/blindtilt.d.ts.map +1 -1
- package/dist/device/blindtilt.js +0 -2
- package/dist/device/blindtilt.js.map +1 -1
- package/dist/device/bot.d.ts.map +1 -1
- package/dist/device/bot.js +0 -2
- package/dist/device/bot.js.map +1 -1
- package/dist/device/ceilinglight.d.ts.map +1 -1
- package/dist/device/ceilinglight.js +0 -5
- package/dist/device/ceilinglight.js.map +1 -1
- package/dist/device/colorbulb.d.ts.map +1 -1
- package/dist/device/colorbulb.js +0 -5
- package/dist/device/colorbulb.js.map +1 -1
- package/dist/device/contact.d.ts.map +1 -1
- package/dist/device/contact.js +0 -1
- package/dist/device/contact.js.map +1 -1
- package/dist/device/curtain.d.ts.map +1 -1
- package/dist/device/curtain.js +0 -2
- package/dist/device/curtain.js.map +1 -1
- package/dist/device/hub.d.ts.map +1 -1
- package/dist/device/hub.js +0 -1
- package/dist/device/hub.js.map +1 -1
- package/dist/device/humidifier.d.ts.map +1 -1
- package/dist/device/humidifier.js +0 -4
- package/dist/device/humidifier.js.map +1 -1
- package/dist/device/iosensor.d.ts.map +1 -1
- package/dist/device/iosensor.js +0 -1
- package/dist/device/iosensor.js.map +1 -1
- package/dist/device/lightstrip.d.ts.map +1 -1
- package/dist/device/lightstrip.js +0 -4
- package/dist/device/lightstrip.js.map +1 -1
- package/dist/device/lock.d.ts.map +1 -1
- package/dist/device/lock.js +0 -2
- package/dist/device/lock.js.map +1 -1
- package/dist/device/meter.d.ts.map +1 -1
- package/dist/device/meter.js +0 -1
- package/dist/device/meter.js.map +1 -1
- package/dist/device/meterplus.d.ts.map +1 -1
- package/dist/device/meterplus.js +0 -1
- package/dist/device/meterplus.js.map +1 -1
- package/dist/device/motion.d.ts.map +1 -1
- package/dist/device/motion.js +0 -1
- package/dist/device/motion.js.map +1 -1
- package/dist/device/plug.d.ts.map +1 -1
- package/dist/device/plug.js +0 -2
- package/dist/device/plug.js.map +1 -1
- package/dist/device/robotvacuumcleaner.d.ts.map +1 -1
- package/dist/device/robotvacuumcleaner.js +0 -3
- package/dist/device/robotvacuumcleaner.js.map +1 -1
- package/dist/irdevice/airconditioner.d.ts.map +1 -1
- package/dist/irdevice/airconditioner.js +0 -1
- package/dist/irdevice/airconditioner.js.map +1 -1
- package/dist/irdevice/airpurifier.d.ts.map +1 -1
- package/dist/irdevice/airpurifier.js +0 -1
- package/dist/irdevice/airpurifier.js.map +1 -1
- package/dist/irdevice/camera.d.ts.map +1 -1
- package/dist/irdevice/camera.js +0 -1
- package/dist/irdevice/camera.js.map +1 -1
- package/dist/irdevice/fan.d.ts.map +1 -1
- package/dist/irdevice/fan.js +0 -1
- package/dist/irdevice/fan.js.map +1 -1
- package/dist/irdevice/light.d.ts.map +1 -1
- package/dist/irdevice/light.js +0 -1
- package/dist/irdevice/light.js.map +1 -1
- package/dist/irdevice/other.d.ts.map +1 -1
- package/dist/irdevice/other.js +0 -1
- package/dist/irdevice/other.js.map +1 -1
- package/dist/irdevice/tv.d.ts.map +1 -1
- package/dist/irdevice/tv.js +0 -1
- package/dist/irdevice/tv.js.map +1 -1
- package/dist/irdevice/vacuumcleaner.d.ts.map +1 -1
- package/dist/irdevice/vacuumcleaner.js +0 -1
- package/dist/irdevice/vacuumcleaner.js.map +1 -1
- package/dist/irdevice/waterheater.d.ts.map +1 -1
- package/dist/irdevice/waterheater.js +0 -1
- package/dist/irdevice/waterheater.js.map +1 -1
- package/dist/platform.d.ts.map +1 -1
- package/dist/platform.js +0 -1
- package/dist/platform.js.map +1 -1
- package/package.json +1 -3
- package/src/device/blindtilt.ts +0 -2
- package/src/device/bot.ts +0 -2
- package/src/device/ceilinglight.ts +0 -5
- package/src/device/colorbulb.ts +0 -5
- package/src/device/contact.ts +0 -1
- package/src/device/curtain.ts +0 -2
- package/src/device/hub.ts +0 -1
- package/src/device/humidifier.ts +0 -4
- package/src/device/iosensor.ts +0 -1
- package/src/device/lightstrip.ts +0 -4
- package/src/device/lock.ts +0 -2
- package/src/device/meter.ts +0 -1
- package/src/device/meterplus.ts +0 -1
- package/src/device/motion.ts +0 -1
- package/src/device/plug.ts +0 -2
- package/src/device/robotvacuumcleaner.ts +0 -3
- package/src/irdevice/airconditioner.ts +0 -1
- package/src/irdevice/airpurifier.ts +0 -1
- package/src/irdevice/camera.ts +0 -1
- package/src/irdevice/fan.ts +0 -1
- package/src/irdevice/light.ts +0 -1
- package/src/irdevice/other.ts +0 -1
- package/src/irdevice/tv.ts +0 -1
- package/src/irdevice/vacuumcleaner.ts +0 -1
- package/src/irdevice/waterheater.ts +0 -1
- package/src/platform.ts +0 -1
package/src/device/contact.ts
CHANGED
|
@@ -414,7 +414,6 @@ export class Contact {
|
|
|
414
414
|
const { body, statusCode, headers } = await request(`${Devices}/${this.device.deviceId}/status`, {
|
|
415
415
|
headers: this.platform.generateHeaders(),
|
|
416
416
|
});
|
|
417
|
-
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} body: ${JSON.stringify(body)}`);
|
|
418
417
|
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} statusCode: ${statusCode}`);
|
|
419
418
|
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} headers: ${JSON.stringify(headers)}`);
|
|
420
419
|
const deviceStatus: any = await body.json();
|
package/src/device/curtain.ts
CHANGED
|
@@ -612,7 +612,6 @@ export class Curtain {
|
|
|
612
612
|
const { body, statusCode, headers } = await request(`${Devices}/${this.device.deviceId}/status`, {
|
|
613
613
|
headers: this.platform.generateHeaders(),
|
|
614
614
|
});
|
|
615
|
-
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} body: ${JSON.stringify(body)}`);
|
|
616
615
|
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} statusCode: ${statusCode}`);
|
|
617
616
|
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} headers: ${JSON.stringify(headers)}`);
|
|
618
617
|
const deviceStatus: any = await body.json();
|
|
@@ -779,7 +778,6 @@ export class Curtain {
|
|
|
779
778
|
method: 'POST',
|
|
780
779
|
headers: this.platform.generateHeaders(),
|
|
781
780
|
});
|
|
782
|
-
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} body: ${JSON.stringify(body)}`);
|
|
783
781
|
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} statusCode: ${statusCode}`);
|
|
784
782
|
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} headers: ${JSON.stringify(headers)}`);
|
|
785
783
|
const deviceStatus: any = await body.json();
|
package/src/device/hub.ts
CHANGED
|
@@ -431,7 +431,6 @@ export class Hub {
|
|
|
431
431
|
const { body, statusCode, headers } = await request(`${Devices}/${this.device.deviceId}/status`, {
|
|
432
432
|
headers: this.platform.generateHeaders(),
|
|
433
433
|
});
|
|
434
|
-
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} body: ${JSON.stringify(body)}`);
|
|
435
434
|
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} statusCode: ${statusCode}`);
|
|
436
435
|
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} headers: ${JSON.stringify(headers)}`);
|
|
437
436
|
const deviceStatus: any = await body.json();
|
package/src/device/humidifier.ts
CHANGED
|
@@ -405,7 +405,6 @@ export class Humidifier {
|
|
|
405
405
|
const { body, statusCode, headers } = await request(`${Devices}/${this.device.deviceId}/status`, {
|
|
406
406
|
headers: this.platform.generateHeaders(),
|
|
407
407
|
});
|
|
408
|
-
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} body: ${JSON.stringify(body)}`);
|
|
409
408
|
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} statusCode: ${statusCode}`);
|
|
410
409
|
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} headers: ${JSON.stringify(headers)}`);
|
|
411
410
|
const deviceStatus: any = await body.json();
|
|
@@ -511,7 +510,6 @@ export class Humidifier {
|
|
|
511
510
|
method: 'POST',
|
|
512
511
|
headers: this.platform.generateHeaders(),
|
|
513
512
|
});
|
|
514
|
-
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} body: ${JSON.stringify(body)}`);
|
|
515
513
|
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} statusCode: ${statusCode}`);
|
|
516
514
|
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} headers: ${JSON.stringify(headers)}`);
|
|
517
515
|
const deviceStatus: any = await body.json();
|
|
@@ -564,7 +562,6 @@ export class Humidifier {
|
|
|
564
562
|
method: 'POST',
|
|
565
563
|
headers: this.platform.generateHeaders(),
|
|
566
564
|
});
|
|
567
|
-
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} body: ${JSON.stringify(body)}`);
|
|
568
565
|
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} statusCode: ${statusCode}`);
|
|
569
566
|
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} headers: ${JSON.stringify(headers)}`);
|
|
570
567
|
const deviceStatus: any = await body.json();
|
|
@@ -612,7 +609,6 @@ export class Humidifier {
|
|
|
612
609
|
method: 'POST',
|
|
613
610
|
headers: this.platform.generateHeaders(),
|
|
614
611
|
});
|
|
615
|
-
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} body: ${JSON.stringify(body)}`);
|
|
616
612
|
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} statusCode: ${statusCode}`);
|
|
617
613
|
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} headers: ${JSON.stringify(headers)}`);
|
|
618
614
|
const deviceStatus: any = await body.json();
|
package/src/device/iosensor.ts
CHANGED
|
@@ -384,7 +384,6 @@ export class IOSensor {
|
|
|
384
384
|
const { body, statusCode, headers } = await request(`${Devices}/${this.device.deviceId}/status`, {
|
|
385
385
|
headers: this.platform.generateHeaders(),
|
|
386
386
|
});
|
|
387
|
-
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} body: ${JSON.stringify(body)}`);
|
|
388
387
|
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} statusCode: ${statusCode}`);
|
|
389
388
|
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} headers: ${JSON.stringify(headers)}`);
|
|
390
389
|
const deviceStatus: any = await body.json();
|
package/src/device/lightstrip.ts
CHANGED
|
@@ -420,7 +420,6 @@ export class StripLight {
|
|
|
420
420
|
const { body, statusCode, headers } = await request(`${Devices}/${this.device.deviceId}/status`, {
|
|
421
421
|
headers: this.platform.generateHeaders(),
|
|
422
422
|
});
|
|
423
|
-
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} body: ${JSON.stringify(body)}`);
|
|
424
423
|
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} statusCode: ${statusCode}`);
|
|
425
424
|
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} headers: ${JSON.stringify(headers)}`);
|
|
426
425
|
const deviceStatus: any = await body.json();
|
|
@@ -643,7 +642,6 @@ export class StripLight {
|
|
|
643
642
|
method: 'POST',
|
|
644
643
|
headers: this.platform.generateHeaders(),
|
|
645
644
|
});
|
|
646
|
-
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} body: ${JSON.stringify(body)}`);
|
|
647
645
|
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} statusCode: ${statusCode}`);
|
|
648
646
|
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} headers: ${JSON.stringify(headers)}`);
|
|
649
647
|
const deviceStatus: any = await body.json();
|
|
@@ -701,7 +699,6 @@ export class StripLight {
|
|
|
701
699
|
method: 'POST',
|
|
702
700
|
headers: this.platform.generateHeaders(),
|
|
703
701
|
});
|
|
704
|
-
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} body: ${JSON.stringify(body)}`);
|
|
705
702
|
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} statusCode: ${statusCode}`);
|
|
706
703
|
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} headers: ${JSON.stringify(headers)}`);
|
|
707
704
|
const deviceStatus: any = await body.json();
|
|
@@ -745,7 +742,6 @@ export class StripLight {
|
|
|
745
742
|
method: 'POST',
|
|
746
743
|
headers: this.platform.generateHeaders(),
|
|
747
744
|
});
|
|
748
|
-
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} body: ${JSON.stringify(body)}`);
|
|
749
745
|
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} statusCode: ${statusCode}`);
|
|
750
746
|
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} headers: ${JSON.stringify(headers)}`);
|
|
751
747
|
const deviceStatus: any = await body.json();
|
package/src/device/lock.ts
CHANGED
|
@@ -443,7 +443,6 @@ export class Lock {
|
|
|
443
443
|
const { body, statusCode, headers } = await request(`${Devices}/${this.device.deviceId}/status`, {
|
|
444
444
|
headers: this.platform.generateHeaders(),
|
|
445
445
|
});
|
|
446
|
-
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} body: ${JSON.stringify(body)}`);
|
|
447
446
|
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} statusCode: ${statusCode}`);
|
|
448
447
|
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} headers: ${JSON.stringify(headers)}`);
|
|
449
448
|
const deviceStatus: any = await body.json();
|
|
@@ -563,7 +562,6 @@ export class Lock {
|
|
|
563
562
|
method: 'POST',
|
|
564
563
|
headers: this.platform.generateHeaders(),
|
|
565
564
|
});
|
|
566
|
-
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} body: ${JSON.stringify(body)}`);
|
|
567
565
|
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} statusCode: ${statusCode}`);
|
|
568
566
|
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} headers: ${JSON.stringify(headers)}`);
|
|
569
567
|
const deviceStatus: any = await body.json();
|
package/src/device/meter.ts
CHANGED
|
@@ -373,7 +373,6 @@ export class Meter {
|
|
|
373
373
|
const { body, statusCode, headers } = await request(`${Devices}/${this.device.deviceId}/status`, {
|
|
374
374
|
headers: this.platform.generateHeaders(),
|
|
375
375
|
});
|
|
376
|
-
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} body: ${JSON.stringify(body)}`);
|
|
377
376
|
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} statusCode: ${statusCode}`);
|
|
378
377
|
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} headers: ${JSON.stringify(headers)}`);
|
|
379
378
|
const deviceStatus: any = await body.json();
|
package/src/device/meterplus.ts
CHANGED
|
@@ -375,7 +375,6 @@ export class MeterPlus {
|
|
|
375
375
|
const { body, statusCode, headers } = await request(`${Devices}/${this.device.deviceId}/status`, {
|
|
376
376
|
headers: this.platform.generateHeaders(),
|
|
377
377
|
});
|
|
378
|
-
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} body: ${JSON.stringify(body)}`);
|
|
379
378
|
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} statusCode: ${statusCode}`);
|
|
380
379
|
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} headers: ${JSON.stringify(headers)}`);
|
|
381
380
|
const deviceStatus: any = await body.json();
|
package/src/device/motion.ts
CHANGED
|
@@ -368,7 +368,6 @@ export class Motion {
|
|
|
368
368
|
const { body, statusCode, headers } = await request(`${Devices}/${this.device.deviceId}/status`, {
|
|
369
369
|
headers: this.platform.generateHeaders(),
|
|
370
370
|
});
|
|
371
|
-
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} body: ${JSON.stringify(body)}`);
|
|
372
371
|
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} statusCode: ${statusCode}`);
|
|
373
372
|
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} headers: ${JSON.stringify(headers)}`);
|
|
374
373
|
const deviceStatus: any = await body.json();
|
package/src/device/plug.ts
CHANGED
|
@@ -276,7 +276,6 @@ export class Plug {
|
|
|
276
276
|
const { body, statusCode, headers } = await request(`${Devices}/${this.device.deviceId}/status`, {
|
|
277
277
|
headers: this.platform.generateHeaders(),
|
|
278
278
|
});
|
|
279
|
-
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} body: ${JSON.stringify(body)}`);
|
|
280
279
|
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} statusCode: ${statusCode}`);
|
|
281
280
|
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} headers: ${JSON.stringify(headers)}`);
|
|
282
281
|
const deviceStatus: any = await body.json();
|
|
@@ -403,7 +402,6 @@ export class Plug {
|
|
|
403
402
|
method: 'POST',
|
|
404
403
|
headers: this.platform.generateHeaders(),
|
|
405
404
|
});
|
|
406
|
-
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} body: ${JSON.stringify(body)}`);
|
|
407
405
|
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} statusCode: ${statusCode}`);
|
|
408
406
|
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} headers: ${JSON.stringify(headers)}`);
|
|
409
407
|
const deviceStatus: any = await body.json();
|
|
@@ -323,7 +323,6 @@ export class RobotVacuumCleaner {
|
|
|
323
323
|
const { body, statusCode, headers } = await request(`${Devices}/${this.device.deviceId}/status`, {
|
|
324
324
|
headers: this.platform.generateHeaders(),
|
|
325
325
|
});
|
|
326
|
-
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} body: ${JSON.stringify(body)}`);
|
|
327
326
|
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} statusCode: ${statusCode}`);
|
|
328
327
|
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} headers: ${JSON.stringify(headers)}`);
|
|
329
328
|
const deviceStatus: any = await body.json();
|
|
@@ -451,7 +450,6 @@ export class RobotVacuumCleaner {
|
|
|
451
450
|
method: 'POST',
|
|
452
451
|
headers: this.platform.generateHeaders(),
|
|
453
452
|
});
|
|
454
|
-
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} body: ${JSON.stringify(body)}`);
|
|
455
453
|
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} statusCode: ${statusCode}`);
|
|
456
454
|
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} headers: ${JSON.stringify(headers)}`);
|
|
457
455
|
const deviceStatus: any = await body.json();
|
|
@@ -490,7 +488,6 @@ export class RobotVacuumCleaner {
|
|
|
490
488
|
method: 'POST',
|
|
491
489
|
headers: this.platform.generateHeaders(),
|
|
492
490
|
});
|
|
493
|
-
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} body: ${JSON.stringify(body)}`);
|
|
494
491
|
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} statusCode: ${statusCode}`);
|
|
495
492
|
this.debugWarnLog(`${this.device.deviceType}: ${this.accessory.displayName} headers: ${JSON.stringify(headers)}`);
|
|
496
493
|
const deviceStatus: any = await body.json();
|
|
@@ -264,7 +264,6 @@ export class AirConditioner {
|
|
|
264
264
|
method: 'POST',
|
|
265
265
|
headers: this.platform.generateHeaders(),
|
|
266
266
|
});
|
|
267
|
-
this.debugWarnLog(`${this.device.remoteType}: ${this.accessory.displayName} body: ${JSON.stringify(body)}`);
|
|
268
267
|
this.debugWarnLog(`${this.device.remoteType}: ${this.accessory.displayName} statusCode: ${statusCode}`);
|
|
269
268
|
this.debugWarnLog(`${this.device.remoteType}: ${this.accessory.displayName} headers: ${JSON.stringify(headers)}`);
|
|
270
269
|
const deviceStatus: any = await body.json();
|
|
@@ -220,7 +220,6 @@ export class AirPurifier {
|
|
|
220
220
|
method: 'POST',
|
|
221
221
|
headers: this.platform.generateHeaders(),
|
|
222
222
|
});
|
|
223
|
-
this.debugWarnLog(`${this.device.remoteType}: ${this.accessory.displayName} body: ${JSON.stringify(body)}`);
|
|
224
223
|
this.debugWarnLog(`${this.device.remoteType}: ${this.accessory.displayName} statusCode: ${statusCode}`);
|
|
225
224
|
this.debugWarnLog(`${this.device.remoteType}: ${this.accessory.displayName} headers: ${JSON.stringify(headers)}`);
|
|
226
225
|
const deviceStatus: any = await body.json();
|
package/src/irdevice/camera.ts
CHANGED
|
@@ -125,7 +125,6 @@ export class Camera {
|
|
|
125
125
|
method: 'POST',
|
|
126
126
|
headers: this.platform.generateHeaders(),
|
|
127
127
|
});
|
|
128
|
-
this.debugWarnLog(`${this.device.remoteType}: ${this.accessory.displayName} body: ${JSON.stringify(body)}`);
|
|
129
128
|
this.debugWarnLog(`${this.device.remoteType}: ${this.accessory.displayName} statusCode: ${statusCode}`);
|
|
130
129
|
this.debugWarnLog(`${this.device.remoteType}: ${this.accessory.displayName} headers: ${JSON.stringify(headers)}`);
|
|
131
130
|
const deviceStatus: any = await body.json();
|
package/src/irdevice/fan.ts
CHANGED
|
@@ -242,7 +242,6 @@ export class Fan {
|
|
|
242
242
|
method: 'POST',
|
|
243
243
|
headers: this.platform.generateHeaders(),
|
|
244
244
|
});
|
|
245
|
-
this.debugWarnLog(`${this.device.remoteType}: ${this.accessory.displayName} body: ${JSON.stringify(body)}`);
|
|
246
245
|
this.debugWarnLog(`${this.device.remoteType}: ${this.accessory.displayName} statusCode: ${statusCode}`);
|
|
247
246
|
this.debugWarnLog(`${this.device.remoteType}: ${this.accessory.displayName} headers: ${JSON.stringify(headers)}`);
|
|
248
247
|
const deviceStatus: any = await body.json();
|
package/src/irdevice/light.ts
CHANGED
|
@@ -240,7 +240,6 @@ export class Light {
|
|
|
240
240
|
method: 'POST',
|
|
241
241
|
headers: this.platform.generateHeaders(),
|
|
242
242
|
});
|
|
243
|
-
this.debugWarnLog(`${this.device.remoteType}: ${this.accessory.displayName} body: ${JSON.stringify(body)}`);
|
|
244
243
|
this.debugWarnLog(`${this.device.remoteType}: ${this.accessory.displayName} statusCode: ${statusCode}`);
|
|
245
244
|
this.debugWarnLog(`${this.device.remoteType}: ${this.accessory.displayName} headers: ${JSON.stringify(headers)}`);
|
|
246
245
|
const deviceStatus: any = await body.json();
|
package/src/irdevice/other.ts
CHANGED
|
@@ -432,7 +432,6 @@ export class Others {
|
|
|
432
432
|
method: 'POST',
|
|
433
433
|
headers: this.platform.generateHeaders(),
|
|
434
434
|
});
|
|
435
|
-
this.debugWarnLog(`${this.device.remoteType}: ${this.accessory.displayName} body: ${JSON.stringify(body)}`);
|
|
436
435
|
this.debugWarnLog(`${this.device.remoteType}: ${this.accessory.displayName} statusCode: ${statusCode}`);
|
|
437
436
|
this.debugWarnLog(`${this.device.remoteType}: ${this.accessory.displayName} headers: ${JSON.stringify(headers)}`);
|
|
438
437
|
const deviceStatus: any = await body.json();
|
package/src/irdevice/tv.ts
CHANGED
|
@@ -374,7 +374,6 @@ export class TV {
|
|
|
374
374
|
method: 'POST',
|
|
375
375
|
headers: this.platform.generateHeaders(),
|
|
376
376
|
});
|
|
377
|
-
this.debugWarnLog(`${this.device.remoteType}: ${this.accessory.displayName} body: ${JSON.stringify(body)}`);
|
|
378
377
|
this.debugWarnLog(`${this.device.remoteType}: ${this.accessory.displayName} statusCode: ${statusCode}`);
|
|
379
378
|
this.debugWarnLog(`${this.device.remoteType}: ${this.accessory.displayName} headers: ${JSON.stringify(headers)}`);
|
|
380
379
|
const deviceStatus: any = await body.json();
|
|
@@ -121,7 +121,6 @@ export class VacuumCleaner {
|
|
|
121
121
|
method: 'POST',
|
|
122
122
|
headers: this.platform.generateHeaders(),
|
|
123
123
|
});
|
|
124
|
-
this.debugWarnLog(`${this.device.remoteType}: ${this.accessory.displayName} body: ${JSON.stringify(body)}`);
|
|
125
124
|
this.debugWarnLog(`${this.device.remoteType}: ${this.accessory.displayName} statusCode: ${statusCode}`);
|
|
126
125
|
this.debugWarnLog(`${this.device.remoteType}: ${this.accessory.displayName} headers: ${JSON.stringify(headers)}`);
|
|
127
126
|
const deviceStatus: any = await body.json();
|
|
@@ -130,7 +130,6 @@ export class WaterHeater {
|
|
|
130
130
|
method: 'POST',
|
|
131
131
|
headers: this.platform.generateHeaders(),
|
|
132
132
|
});
|
|
133
|
-
this.debugWarnLog(`${this.device.remoteType}: ${this.accessory.displayName} body: ${JSON.stringify(body)}`);
|
|
134
133
|
this.debugWarnLog(`${this.device.remoteType}: ${this.accessory.displayName} statusCode: ${statusCode}`);
|
|
135
134
|
this.debugWarnLog(`${this.device.remoteType}: ${this.accessory.displayName} headers: ${JSON.stringify(headers)}`);
|
|
136
135
|
const deviceStatus: any = await body.json();
|
package/src/platform.ts
CHANGED
|
@@ -493,7 +493,6 @@ export class SwitchBotPlatform implements DynamicPlatformPlugin {
|
|
|
493
493
|
const { body, statusCode, headers } = await request(Devices, {
|
|
494
494
|
headers: this.generateHeaders(),
|
|
495
495
|
});
|
|
496
|
-
this.debugWarnLog(`body: ${JSON.stringify(body)}`);
|
|
497
496
|
this.debugWarnLog(`statusCode: ${statusCode}`);
|
|
498
497
|
this.debugWarnLog(`headers: ${JSON.stringify(headers)}`);
|
|
499
498
|
const devicesAPI: any = await body.json();
|