@switchbot/homebridge-switchbot 3.5.0-beta.69 → 3.5.0-beta.70
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/blindtilt.d.ts.map +1 -1
- package/dist/device/blindtilt.js +3 -1
- package/dist/device/blindtilt.js.map +1 -1
- package/dist/device/bot.js +1 -1
- package/dist/device/bot.js.map +1 -1
- package/dist/device/ceilinglight.js +3 -3
- package/dist/device/ceilinglight.js.map +1 -1
- package/dist/device/colorbulb.js +4 -4
- 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/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 +2 -2
- package/dist/device/robotvacuumcleaner.js.map +1 -1
- package/dist/irdevice/airconditioner.js +1 -1
- package/dist/irdevice/airconditioner.js.map +1 -1
- package/dist/irdevice/airpurifier.js +1 -1
- package/dist/irdevice/airpurifier.js.map +1 -1
- package/dist/irdevice/camera.js +1 -1
- package/dist/irdevice/camera.js.map +1 -1
- package/dist/irdevice/fan.js +1 -1
- package/dist/irdevice/fan.js.map +1 -1
- package/dist/irdevice/light.js +1 -1
- package/dist/irdevice/light.js.map +1 -1
- package/dist/irdevice/other.js +1 -1
- package/dist/irdevice/other.js.map +1 -1
- package/dist/irdevice/tv.js +1 -1
- package/dist/irdevice/tv.js.map +1 -1
- package/dist/irdevice/vacuumcleaner.js +1 -1
- package/dist/irdevice/vacuumcleaner.js.map +1 -1
- package/dist/irdevice/waterheater.js +1 -1
- package/dist/irdevice/waterheater.js.map +1 -1
- package/package.json +1 -1
- package/src/device/blindtilt.ts +3 -1
- package/src/device/bot.ts +1 -1
- package/src/device/ceilinglight.ts +3 -3
- package/src/device/colorbulb.ts +4 -4
- package/src/device/curtain.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 +2 -2
- package/src/irdevice/airconditioner.ts +1 -1
- package/src/irdevice/airpurifier.ts +1 -1
- package/src/irdevice/camera.ts +1 -1
- package/src/irdevice/fan.ts +1 -1
- package/src/irdevice/light.ts +1 -1
- package/src/irdevice/other.ts +1 -1
- package/src/irdevice/tv.ts +1 -1
- package/src/irdevice/vacuumcleaner.ts +1 -1
- package/src/irdevice/waterheater.ts +1 -1
package/src/device/lightstrip.ts
CHANGED
|
@@ -639,7 +639,7 @@ export class StripLight extends deviceBase {
|
|
|
639
639
|
this.debugErrorLog(`${this.device.deviceType}: ${this.accessory.displayName} `
|
|
640
640
|
+ `statusCode: ${statusCode} & deviceStatus StatusCode: ${deviceStatus.statusCode}`);
|
|
641
641
|
this.successLog(`${this.device.deviceType}: ${this.accessory.displayName} `
|
|
642
|
-
+ `request to SwitchBot API, body: ${JSON.stringify(
|
|
642
|
+
+ `request to SwitchBot API, body: ${JSON.stringify(JSON.parse(bodyChange))} sent successfully`);
|
|
643
643
|
} else {
|
|
644
644
|
this.statusCode(statusCode);
|
|
645
645
|
this.statusCode(deviceStatus.statusCode);
|
|
@@ -697,7 +697,7 @@ export class StripLight extends deviceBase {
|
|
|
697
697
|
this.debugErrorLog(`${this.device.deviceType}: ${this.accessory.displayName} `
|
|
698
698
|
+ `statusCode: ${statusCode} & deviceStatus StatusCode: ${deviceStatus.statusCode}`);
|
|
699
699
|
this.successLog(`${this.device.deviceType}: ${this.accessory.displayName} `
|
|
700
|
-
+ `request to SwitchBot API, body: ${JSON.stringify(
|
|
700
|
+
+ `request to SwitchBot API, body: ${JSON.stringify(JSON.parse(bodyChange))} sent successfully`);
|
|
701
701
|
} else {
|
|
702
702
|
this.statusCode(statusCode);
|
|
703
703
|
this.statusCode(deviceStatus.statusCode);
|
|
@@ -741,7 +741,7 @@ export class StripLight extends deviceBase {
|
|
|
741
741
|
this.debugErrorLog(`${this.device.deviceType}: ${this.accessory.displayName} `
|
|
742
742
|
+ `statusCode: ${statusCode} & deviceStatus StatusCode: ${deviceStatus.statusCode}`);
|
|
743
743
|
this.successLog(`${this.device.deviceType}: ${this.accessory.displayName} `
|
|
744
|
-
+ `request to SwitchBot API, body: ${JSON.stringify(
|
|
744
|
+
+ `request to SwitchBot API, body: ${JSON.stringify(JSON.parse(bodyChange))} sent successfully`);
|
|
745
745
|
} else {
|
|
746
746
|
this.statusCode(statusCode);
|
|
747
747
|
this.statusCode(deviceStatus.statusCode);
|
package/src/device/lock.ts
CHANGED
|
@@ -475,7 +475,7 @@ export class Lock extends deviceBase {
|
|
|
475
475
|
this.debugErrorLog(`${this.device.deviceType}: ${this.accessory.displayName} `
|
|
476
476
|
+ `statusCode: ${statusCode} & deviceStatus StatusCode: ${deviceStatus.statusCode}`);
|
|
477
477
|
this.successLog(`${this.device.deviceType}: ${this.accessory.displayName} `
|
|
478
|
-
+ `request to SwitchBot API, body: ${JSON.stringify(
|
|
478
|
+
+ `request to SwitchBot API, body: ${JSON.stringify(JSON.parse(bodyChange))} sent successfully`);
|
|
479
479
|
} else {
|
|
480
480
|
this.statusCode(statusCode);
|
|
481
481
|
this.statusCode(deviceStatus.statusCode);
|
package/src/device/plug.ts
CHANGED
|
@@ -342,7 +342,7 @@ export class Plug extends deviceBase {
|
|
|
342
342
|
this.debugErrorLog(`${this.device.deviceType}: ${this.accessory.displayName} `
|
|
343
343
|
+ `statusCode: ${statusCode} & deviceStatus StatusCode: ${deviceStatus.statusCode}`);
|
|
344
344
|
this.successLog(`${this.device.deviceType}: ${this.accessory.displayName} `
|
|
345
|
-
+ `request to SwitchBot API, body: ${JSON.stringify(
|
|
345
|
+
+ `request to SwitchBot API, body: ${JSON.stringify(JSON.parse(bodyChange))} sent successfully`);
|
|
346
346
|
} else {
|
|
347
347
|
this.statusCode(statusCode);
|
|
348
348
|
this.statusCode(deviceStatus.statusCode);
|
|
@@ -425,7 +425,7 @@ export class RobotVacuumCleaner extends deviceBase {
|
|
|
425
425
|
this.debugErrorLog(`${this.device.deviceType}: ${this.accessory.displayName} `
|
|
426
426
|
+ `statusCode: ${statusCode} & deviceStatus StatusCode: ${deviceStatus.statusCode}`);
|
|
427
427
|
this.successLog(`${this.device.deviceType}: ${this.accessory.displayName} `
|
|
428
|
-
|
|
428
|
+
+ `request to SwitchBot API, body: ${JSON.stringify(JSON.parse(bodyChange))} sent successfully`);
|
|
429
429
|
} else {
|
|
430
430
|
this.statusCode(statusCode);
|
|
431
431
|
this.statusCode(deviceStatus.statusCode);
|
|
@@ -464,7 +464,7 @@ export class RobotVacuumCleaner extends deviceBase {
|
|
|
464
464
|
this.debugSuccessLog(`${this.device.deviceType}: ${this.accessory.displayName} `
|
|
465
465
|
+ `statusCode: ${statusCode} & deviceStatus StatusCode: ${deviceStatus.statusCode}`);
|
|
466
466
|
this.successLog(`${this.device.deviceType}: ${this.accessory.displayName} `
|
|
467
|
-
+ `request to SwitchBot API, body: ${JSON.stringify(
|
|
467
|
+
+ `request to SwitchBot API, body: ${JSON.stringify(JSON.parse(bodyChange))} sent successfully`);
|
|
468
468
|
} else {
|
|
469
469
|
this.statusCode(statusCode);
|
|
470
470
|
this.statusCode(deviceStatus.statusCode);
|
|
@@ -374,7 +374,7 @@ export class AirConditioner extends irdeviceBase {
|
|
|
374
374
|
this.debugSuccessLog(`${this.device.remoteType}: ${this.accessory.displayName} `
|
|
375
375
|
+ `statusCode: ${statusCode} & deviceStatus StatusCode: ${deviceStatus.statusCode}`);
|
|
376
376
|
this.successLog(`${this.device.remoteType}: ${this.accessory.displayName}`
|
|
377
|
-
+ ` request to SwitchBot API, body: ${JSON.stringify(bodyChange)} sent successfully`);
|
|
377
|
+
+ ` request to SwitchBot API, body: ${JSON.stringify(JSON.parse(bodyChange))} sent successfully`);
|
|
378
378
|
this.updateHomeKitCharacteristics();
|
|
379
379
|
} else {
|
|
380
380
|
this.statusCode(statusCode);
|
|
@@ -247,7 +247,7 @@ export class AirPurifier extends irdeviceBase {
|
|
|
247
247
|
this.debugSuccessLog(`${this.device.remoteType}: ${this.accessory.displayName} `
|
|
248
248
|
+ `statusCode: ${statusCode} & deviceStatus StatusCode: ${deviceStatus.statusCode}`);
|
|
249
249
|
this.successLog(`${this.device.remoteType}: ${this.accessory.displayName}`
|
|
250
|
-
+ ` request to SwitchBot API, body: ${JSON.stringify(bodyChange)} sent successfully`);
|
|
250
|
+
+ ` request to SwitchBot API, body: ${JSON.stringify(JSON.parse(bodyChange))} sent successfully`);
|
|
251
251
|
this.updateHomeKitCharacteristics();
|
|
252
252
|
} else {
|
|
253
253
|
this.statusCode(statusCode);
|
package/src/irdevice/camera.ts
CHANGED
|
@@ -118,7 +118,7 @@ export class Camera extends irdeviceBase {
|
|
|
118
118
|
this.debugSuccessLog(`${this.device.remoteType}: ${this.accessory.displayName} `
|
|
119
119
|
+ `statusCode: ${statusCode} & deviceStatus StatusCode: ${deviceStatus.statusCode}`);
|
|
120
120
|
this.successLog(`${this.device.remoteType}: ${this.accessory.displayName}`
|
|
121
|
-
+ ` request to SwitchBot API, body: ${JSON.stringify(bodyChange)} sent successfully`);
|
|
121
|
+
+ ` request to SwitchBot API, body: ${JSON.stringify(JSON.parse(bodyChange))} sent successfully`);
|
|
122
122
|
this.updateHomeKitCharacteristics();
|
|
123
123
|
} else {
|
|
124
124
|
this.statusCode(statusCode);
|
package/src/irdevice/fan.ts
CHANGED
|
@@ -253,7 +253,7 @@ export class IRFan extends irdeviceBase {
|
|
|
253
253
|
this.debugSuccessLog(`${this.device.remoteType}: ${this.accessory.displayName} `
|
|
254
254
|
+ `statusCode: ${statusCode} & deviceStatus StatusCode: ${deviceStatus.statusCode}`);
|
|
255
255
|
this.successLog(`${this.device.remoteType}: ${this.accessory.displayName}`
|
|
256
|
-
+ ` request to SwitchBot API, body: ${JSON.stringify(bodyChange)} sent successfully`);
|
|
256
|
+
+ ` request to SwitchBot API, body: ${JSON.stringify(JSON.parse(bodyChange))} sent successfully`);
|
|
257
257
|
this.updateHomeKitCharacteristics();
|
|
258
258
|
} else {
|
|
259
259
|
this.statusCode(statusCode);
|
package/src/irdevice/light.ts
CHANGED
|
@@ -230,7 +230,7 @@ export class Light extends irdeviceBase {
|
|
|
230
230
|
this.debugSuccessLog(`${this.device.remoteType}: ${this.accessory.displayName} `
|
|
231
231
|
+ `statusCode: ${statusCode} & deviceStatus StatusCode: ${deviceStatus.statusCode}`);
|
|
232
232
|
this.successLog(`${this.device.remoteType}: ${this.accessory.displayName}`
|
|
233
|
-
+ ` request to SwitchBot API, body: ${JSON.stringify(bodyChange)} sent successfully`);
|
|
233
|
+
+ ` request to SwitchBot API, body: ${JSON.stringify(JSON.parse(bodyChange))} sent successfully`);
|
|
234
234
|
this.accessory.context.On = On;
|
|
235
235
|
this.updateHomeKitCharacteristics();
|
|
236
236
|
} else {
|
package/src/irdevice/other.ts
CHANGED
|
@@ -548,7 +548,7 @@ export class Others extends irdeviceBase {
|
|
|
548
548
|
this.debugSuccessLog(`${this.device.remoteType}: ${this.accessory.displayName} `
|
|
549
549
|
+ `statusCode: ${statusCode} & deviceStatus StatusCode: ${deviceStatus.statusCode}`);
|
|
550
550
|
this.successLog(`${this.device.remoteType}: ${this.accessory.displayName}`
|
|
551
|
-
+ ` request to SwitchBot API, body: ${JSON.stringify(bodyChange)} sent successfully`);
|
|
551
|
+
+ ` request to SwitchBot API, body: ${JSON.stringify(JSON.parse(bodyChange))} sent successfully`);
|
|
552
552
|
this.updateHomeKitCharacteristics();
|
|
553
553
|
} else {
|
|
554
554
|
this.statusCode(statusCode);
|
package/src/irdevice/tv.ts
CHANGED
|
@@ -380,7 +380,7 @@ export class TV extends irdeviceBase {
|
|
|
380
380
|
this.debugSuccessLog(`${this.device.remoteType}: ${this.accessory.displayName} `
|
|
381
381
|
+ `statusCode: ${statusCode} & deviceStatus StatusCode: ${deviceStatus.statusCode}`);
|
|
382
382
|
this.successLog(`${this.device.remoteType}: ${this.accessory.displayName}`
|
|
383
|
-
+ ` request to SwitchBot API, body: ${JSON.stringify(bodyChange)} sent successfully`);
|
|
383
|
+
+ ` request to SwitchBot API, body: ${JSON.stringify(JSON.parse(bodyChange))} sent successfully`);
|
|
384
384
|
this.updateHomeKitCharacteristics();
|
|
385
385
|
} else {
|
|
386
386
|
this.statusCode(statusCode);
|
|
@@ -114,7 +114,7 @@ export class VacuumCleaner extends irdeviceBase {
|
|
|
114
114
|
this.debugSuccessLog(`${this.device.remoteType}: ${this.accessory.displayName} `
|
|
115
115
|
+ `statusCode: ${statusCode} & deviceStatus StatusCode: ${deviceStatus.statusCode}`);
|
|
116
116
|
this.successLog(`${this.device.remoteType}: ${this.accessory.displayName}`
|
|
117
|
-
+ ` request to SwitchBot API, body: ${JSON.stringify(bodyChange)} sent successfully`);
|
|
117
|
+
+ ` request to SwitchBot API, body: ${JSON.stringify(JSON.parse(bodyChange))} sent successfully`);
|
|
118
118
|
this.updateHomeKitCharacteristics();
|
|
119
119
|
} else {
|
|
120
120
|
this.statusCode(statusCode);
|
|
@@ -116,7 +116,7 @@ export class WaterHeater extends irdeviceBase {
|
|
|
116
116
|
this.debugSuccessLog(`${this.device.remoteType}: ${this.accessory.displayName} `
|
|
117
117
|
+ `statusCode: ${statusCode} & deviceStatus StatusCode: ${deviceStatus.statusCode}`);
|
|
118
118
|
this.successLog(`${this.device.remoteType}: ${this.accessory.displayName}`
|
|
119
|
-
+ ` request to SwitchBot API, body: ${JSON.stringify(bodyChange)} sent successfully`);
|
|
119
|
+
+ ` request to SwitchBot API, body: ${JSON.stringify(JSON.parse(bodyChange))} sent successfully`);
|
|
120
120
|
this.updateHomeKitCharacteristics();
|
|
121
121
|
} else {
|
|
122
122
|
this.statusCode(statusCode);
|