@switchbot/homebridge-switchbot 4.0.1-beta.1 → 4.0.1-beta.3
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/config.schema.json +1 -1
- package/dist/device/bot.js +2 -2
- package/dist/device/bot.js.map +1 -1
- package/dist/device/curtain.js +1 -1
- package/dist/device/curtain.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/irdevice.js +1 -1
- package/dist/irdevice/irdevice.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 +5 -5
- package/src/device/bot.ts +2 -2
- package/src/device/curtain.ts +1 -1
- 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/irdevice.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/irdevice/other.ts
CHANGED
|
@@ -445,7 +445,7 @@ export class Others extends irdeviceBase {
|
|
|
445
445
|
async pushChanges(bodyChange: any): Promise<void> {
|
|
446
446
|
await this.debugLog('pushChanges')
|
|
447
447
|
if (this.device.connectionType === 'OpenAPI') {
|
|
448
|
-
this.infoLog(`Sending request to SwitchBot API, body: ${bodyChange}
|
|
448
|
+
await this.infoLog(`Sending request to SwitchBot API, body: ${JSON.stringify(bodyChange)}`)
|
|
449
449
|
try {
|
|
450
450
|
const { body } = await this.pushChangeRequest(bodyChange)
|
|
451
451
|
const deviceStatus: any = await body
|
package/src/irdevice/tv.ts
CHANGED
|
@@ -344,7 +344,7 @@ export class TV extends irdeviceBase {
|
|
|
344
344
|
async pushTVChanges(bodyChange: any): Promise<void> {
|
|
345
345
|
await this.debugLog('pushTVChanges')
|
|
346
346
|
if (this.device.connectionType === 'OpenAPI') {
|
|
347
|
-
await this.infoLog(`Sending request to SwitchBot API, body: ${bodyChange}
|
|
347
|
+
await this.infoLog(`Sending request to SwitchBot API, body: ${JSON.stringify(bodyChange)}`)
|
|
348
348
|
try {
|
|
349
349
|
const { body } = await this.pushChangeRequest(bodyChange)
|
|
350
350
|
const deviceStatus: any = await body
|
|
@@ -95,7 +95,7 @@ export class VacuumCleaner extends irdeviceBase {
|
|
|
95
95
|
async pushChanges(bodyChange: any): Promise<void> {
|
|
96
96
|
await this.debugLog('pushChanges')
|
|
97
97
|
if (this.device.connectionType === 'OpenAPI') {
|
|
98
|
-
await this.infoLog(`Sending request to SwitchBot API, body: ${bodyChange}
|
|
98
|
+
await this.infoLog(`Sending request to SwitchBot API, body: ${JSON.stringify(bodyChange)}`)
|
|
99
99
|
try {
|
|
100
100
|
const { body } = await this.pushChangeRequest(bodyChange)
|
|
101
101
|
const deviceStatus: any = await body
|
|
@@ -96,7 +96,7 @@ export class WaterHeater extends irdeviceBase {
|
|
|
96
96
|
async pushChanges(bodyChange: any): Promise<void> {
|
|
97
97
|
await this.debugLog('pushChanges')
|
|
98
98
|
if (this.device.connectionType === 'OpenAPI') {
|
|
99
|
-
this.infoLog(`Sending request to SwitchBot API, body: ${bodyChange}
|
|
99
|
+
await this.infoLog(`Sending request to SwitchBot API, body: ${JSON.stringify(bodyChange)}`)
|
|
100
100
|
try {
|
|
101
101
|
const { body } = await this.pushChangeRequest(bodyChange)
|
|
102
102
|
const deviceStatus: any = await body
|