@switchbot/homebridge-switchbot 4.1.1-beta.0 → 4.1.1-beta.10

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.
Files changed (104) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/config.schema.json +2 -2
  3. package/dist/device/blindtilt.js +104 -104
  4. package/dist/device/blindtilt.js.map +1 -1
  5. package/dist/device/bot.js +86 -86
  6. package/dist/device/bot.js.map +1 -1
  7. package/dist/device/ceilinglight.js +98 -98
  8. package/dist/device/ceilinglight.js.map +1 -1
  9. package/dist/device/colorbulb.js +140 -140
  10. package/dist/device/colorbulb.js.map +1 -1
  11. package/dist/device/contact.js +47 -47
  12. package/dist/device/contact.js.map +1 -1
  13. package/dist/device/curtain.d.ts +1 -1
  14. package/dist/device/curtain.d.ts.map +1 -1
  15. package/dist/device/curtain.js +95 -93
  16. package/dist/device/curtain.js.map +1 -1
  17. package/dist/device/device.d.ts +13 -13
  18. package/dist/device/device.d.ts.map +1 -1
  19. package/dist/device/device.js +46 -46
  20. package/dist/device/device.js.map +1 -1
  21. package/dist/device/fan.js +96 -96
  22. package/dist/device/fan.js.map +1 -1
  23. package/dist/device/hub.js +46 -46
  24. package/dist/device/hub.js.map +1 -1
  25. package/dist/device/humidifier.d.ts.map +1 -1
  26. package/dist/device/humidifier.js +85 -87
  27. package/dist/device/humidifier.js.map +1 -1
  28. package/dist/device/iosensor.js +44 -44
  29. package/dist/device/iosensor.js.map +1 -1
  30. package/dist/device/lightstrip.js +119 -119
  31. package/dist/device/lightstrip.js.map +1 -1
  32. package/dist/device/lock.js +75 -75
  33. package/dist/device/lock.js.map +1 -1
  34. package/dist/device/meter.js +44 -44
  35. package/dist/device/meter.js.map +1 -1
  36. package/dist/device/meterplus.js +42 -42
  37. package/dist/device/meterplus.js.map +1 -1
  38. package/dist/device/meterpro.js +42 -42
  39. package/dist/device/meterpro.js.map +1 -1
  40. package/dist/device/motion.js +44 -44
  41. package/dist/device/motion.js.map +1 -1
  42. package/dist/device/plug.d.ts.map +1 -1
  43. package/dist/device/plug.js +60 -60
  44. package/dist/device/plug.js.map +1 -1
  45. package/dist/device/robotvacuumcleaner.js +74 -74
  46. package/dist/device/robotvacuumcleaner.js.map +1 -1
  47. package/dist/device/waterdetector.d.ts.map +1 -1
  48. package/dist/device/waterdetector.js +54 -56
  49. package/dist/device/waterdetector.js.map +1 -1
  50. package/dist/irdevice/airconditioner.js +31 -31
  51. package/dist/irdevice/airconditioner.js.map +1 -1
  52. package/dist/irdevice/airpurifier.js +10 -10
  53. package/dist/irdevice/airpurifier.js.map +1 -1
  54. package/dist/irdevice/camera.js +9 -9
  55. package/dist/irdevice/camera.js.map +1 -1
  56. package/dist/irdevice/fan.js +11 -11
  57. package/dist/irdevice/fan.js.map +1 -1
  58. package/dist/irdevice/irdevice.js +11 -11
  59. package/dist/irdevice/irdevice.js.map +1 -1
  60. package/dist/irdevice/light.js +9 -9
  61. package/dist/irdevice/light.js.map +1 -1
  62. package/dist/irdevice/other.js +93 -93
  63. package/dist/irdevice/other.js.map +1 -1
  64. package/dist/irdevice/tv.js +33 -33
  65. package/dist/irdevice/tv.js.map +1 -1
  66. package/dist/irdevice/vacuumcleaner.js +9 -9
  67. package/dist/irdevice/vacuumcleaner.js.map +1 -1
  68. package/dist/irdevice/waterheater.js +9 -9
  69. package/dist/irdevice/waterheater.js.map +1 -1
  70. package/dist/platform.js +228 -228
  71. package/dist/platform.js.map +1 -1
  72. package/docs/functions/default.html +1 -1
  73. package/package.json +9 -9
  74. package/src/device/blindtilt.ts +104 -104
  75. package/src/device/bot.ts +86 -86
  76. package/src/device/ceilinglight.ts +98 -98
  77. package/src/device/colorbulb.ts +140 -140
  78. package/src/device/contact.ts +47 -47
  79. package/src/device/curtain.ts +95 -93
  80. package/src/device/device.ts +46 -46
  81. package/src/device/fan.ts +96 -96
  82. package/src/device/hub.ts +46 -46
  83. package/src/device/humidifier.ts +85 -87
  84. package/src/device/iosensor.ts +44 -44
  85. package/src/device/lightstrip.ts +119 -119
  86. package/src/device/lock.ts +75 -75
  87. package/src/device/meter.ts +44 -44
  88. package/src/device/meterplus.ts +42 -42
  89. package/src/device/meterpro.ts +42 -42
  90. package/src/device/motion.ts +44 -44
  91. package/src/device/plug.ts +62 -62
  92. package/src/device/robotvacuumcleaner.ts +74 -74
  93. package/src/device/waterdetector.ts +54 -55
  94. package/src/irdevice/airconditioner.ts +31 -31
  95. package/src/irdevice/airpurifier.ts +10 -10
  96. package/src/irdevice/camera.ts +9 -9
  97. package/src/irdevice/fan.ts +11 -11
  98. package/src/irdevice/irdevice.ts +11 -11
  99. package/src/irdevice/light.ts +9 -9
  100. package/src/irdevice/other.ts +93 -93
  101. package/src/irdevice/tv.ts +33 -33
  102. package/src/irdevice/vacuumcleaner.ts +9 -9
  103. package/src/irdevice/waterheater.ts +9 -9
  104. package/src/platform.ts +228 -228
@@ -103,45 +103,43 @@ export class WaterDetector extends deviceBase {
103
103
  interval(this.deviceRefreshRate * 1000)
104
104
  .pipe(skipWhile(() => this.WaterDetectorUpdateInProgress))
105
105
  .subscribe(async () => {
106
- await this.debugLog(`update interval: ${this.deviceRefreshRate * 1000} seconds`);
106
+ this.debugLog(`update interval: ${this.deviceRefreshRate * 1000} seconds`);
107
107
  await this.refreshStatus();
108
108
  });
109
109
  }
110
110
  async BLEparseStatus() {
111
- await this.debugLog('BLEparseStatus');
112
- await this.debugLog(`(state, status, battery) = BLE: (${this.serviceData.state}, ${this.serviceData.status}, ${this.serviceData.battery}), current:(${this.LeakSensor?.LeakDetected}, ${this.Battery.BatteryLevel})`);
111
+ this.debugLog('BLEparseStatus');
112
+ this.debugLog(`(leak, tampered, battery) = BLE: (${this.serviceData.leak}, ${this.serviceData.tampered}, ${this.serviceData.battery}), current:(${this.LeakSensor?.LeakDetected}, ${this.LeakSensor?.StatusActive}, ${this.Battery.BatteryLevel})`);
113
113
  // LeakSensor
114
114
  if (!this.device.hide_leak && this.LeakSensor?.Service) {
115
115
  // StatusActive
116
- this.LeakSensor.StatusActive = this.serviceData.state;
117
- await this.debugLog(`StatusActive: ${this.LeakSensor.StatusActive}`);
116
+ this.LeakSensor.StatusActive = this.serviceData.leak;
117
+ this.debugLog(`StatusActive: ${this.LeakSensor.StatusActive}`);
118
118
  // LeakDetected
119
- if (this.device.dry) {
120
- this.LeakSensor.LeakDetected = this.serviceData.status === 0 ? 1 : 0;
121
- this.debugLog(`LeakDetected: ${this.LeakSensor.LeakDetected}`);
122
- }
123
- else {
124
- this.LeakSensor.LeakDetected = this.serviceData.status;
125
- this.debugLog(`LeakDetected: ${this.LeakSensor.LeakDetected}`);
126
- }
119
+ this.LeakSensor.LeakDetected = this.device.dry
120
+ ? this.serviceData.tampered ? 1 : 0
121
+ : this.serviceData.tampered;
122
+ this.debugLog(`LeakDetected: ${this.LeakSensor.LeakDetected}`);
127
123
  }
128
124
  // BatteryLevel
129
125
  this.Battery.BatteryLevel = this.serviceData.battery;
130
- await this.debugLog(`BatteryLevel: ${this.Battery.BatteryLevel}`);
126
+ this.debugLog(`BatteryLevel: ${this.Battery.BatteryLevel}`);
131
127
  // StatusLowBattery
132
- this.Battery.StatusLowBattery = this.Battery.BatteryLevel < 10
128
+ this.Battery.StatusLowBattery = this.serviceData.low_battery
133
129
  ? this.hap.Characteristic.StatusLowBattery.BATTERY_LEVEL_LOW
134
- : this.hap.Characteristic.StatusLowBattery.BATTERY_LEVEL_NORMAL;
135
- await this.debugLog(`StatusLowBattery: ${this.Battery.StatusLowBattery}`);
130
+ : this.Battery.BatteryLevel < 10
131
+ ? this.hap.Characteristic.StatusLowBattery.BATTERY_LEVEL_LOW
132
+ : this.hap.Characteristic.StatusLowBattery.BATTERY_LEVEL_NORMAL;
133
+ this.debugLog(`StatusLowBattery: ${this.Battery.StatusLowBattery}`);
136
134
  }
137
135
  async openAPIparseStatus() {
138
- await this.debugLog('openAPIparseStatus');
139
- await this.debugLog(`(status, battery) = OpenAPI: (${this.deviceStatus.status}, ${this.deviceStatus.battery}), current:(${this.LeakSensor?.LeakDetected}, ${this.Battery.BatteryLevel})`);
136
+ this.debugLog('openAPIparseStatus');
137
+ this.debugLog(`(status, battery) = OpenAPI: (${this.deviceStatus.status}, ${this.deviceStatus.battery}), current:(${this.LeakSensor?.LeakDetected}, ${this.Battery.BatteryLevel})`);
140
138
  // LeakSensor
141
139
  if (!this.device.hide_leak && this.LeakSensor?.Service) {
142
140
  // StatusActive
143
141
  this.LeakSensor.StatusActive = this.deviceStatus.battery !== 0;
144
- await this.debugLog(`StatusActive: ${this.LeakSensor.StatusActive}`);
142
+ this.debugLog(`StatusActive: ${this.LeakSensor.StatusActive}`);
145
143
  // LeakDetected
146
144
  if (this.device.dry) {
147
145
  this.LeakSensor.LeakDetected = this.deviceStatus.status === 0 ? 1 : 0;
@@ -154,16 +152,16 @@ export class WaterDetector extends deviceBase {
154
152
  }
155
153
  // BatteryLevel
156
154
  this.Battery.BatteryLevel = this.deviceStatus.battery;
157
- await this.debugLog(`BatteryLevel: ${this.Battery.BatteryLevel}`);
155
+ this.debugLog(`BatteryLevel: ${this.Battery.BatteryLevel}`);
158
156
  // StatusLowBattery
159
157
  this.Battery.StatusLowBattery = this.Battery.BatteryLevel < 10
160
158
  ? this.hap.Characteristic.StatusLowBattery.BATTERY_LEVEL_LOW
161
159
  : this.hap.Characteristic.StatusLowBattery.BATTERY_LEVEL_NORMAL;
162
- await this.debugLog(`StatusLowBattery: ${this.Battery.StatusLowBattery}`);
160
+ this.debugLog(`StatusLowBattery: ${this.Battery.StatusLowBattery}`);
163
161
  // FirmwareVersion
164
162
  if (this.deviceStatus.version) {
165
163
  const version = this.deviceStatus.version.toString();
166
- await this.debugLog(`FirmwareVersion: ${version.replace(/^V|-.*$/g, '')}`);
164
+ this.debugLog(`FirmwareVersion: ${version.replace(/^V|-.*$/g, '')}`);
167
165
  const deviceVersion = version.replace(/^V|-.*$/g, '') ?? '0.0.0';
168
166
  this.accessory
169
167
  .getService(this.hap.Service.AccessoryInformation)
@@ -172,17 +170,17 @@ export class WaterDetector extends deviceBase {
172
170
  .getCharacteristic(this.hap.Characteristic.FirmwareRevision)
173
171
  .updateValue(deviceVersion);
174
172
  this.accessory.context.version = deviceVersion;
175
- await this.debugSuccessLog(`version: ${this.accessory.context.version}`);
173
+ this.debugSuccessLog(`version: ${this.accessory.context.version}`);
176
174
  }
177
175
  }
178
176
  async parseStatusWebhook() {
179
- await this.debugLog('parseStatusWebhook');
180
- await this.debugLog(`(detectionState, battery) = Webhook: (${this.webhookContext.detectionState}, ${this.webhookContext.battery}), current:(${this.LeakSensor?.LeakDetected}, ${this.Battery.BatteryLevel})`);
177
+ this.debugLog('parseStatusWebhook');
178
+ this.debugLog(`(detectionState, battery) = Webhook: (${this.webhookContext.detectionState}, ${this.webhookContext.battery}), current:(${this.LeakSensor?.LeakDetected}, ${this.Battery.BatteryLevel})`);
181
179
  // LeakSensor
182
180
  if (!this.device.hide_leak && this.LeakSensor?.Service) {
183
181
  // StatusActive
184
182
  this.LeakSensor.StatusActive = !!this.webhookContext.detectionState;
185
- await this.debugLog(`StatusActive: ${this.LeakSensor.StatusActive}`);
183
+ this.debugLog(`StatusActive: ${this.LeakSensor.StatusActive}`);
186
184
  // LeakDetected
187
185
  if (this.device.dry) {
188
186
  this.LeakSensor.LeakDetected = this.webhookContext.detectionState === 0 ? 1 : 0;
@@ -190,24 +188,24 @@ export class WaterDetector extends deviceBase {
190
188
  }
191
189
  else {
192
190
  this.LeakSensor.LeakDetected = this.webhookContext.detectionState;
193
- await this.debugLog(`LeakDetected: ${this.LeakSensor.LeakDetected}`);
191
+ this.debugLog(`LeakDetected: ${this.LeakSensor.LeakDetected}`);
194
192
  }
195
193
  }
196
194
  // BatteryLevel
197
195
  this.Battery.BatteryLevel = this.webhookContext.battery;
198
- await this.debugLog(`BatteryLevel: ${this.Battery.BatteryLevel}`);
196
+ this.debugLog(`BatteryLevel: ${this.Battery.BatteryLevel}`);
199
197
  // StatusLowBattery
200
198
  this.Battery.StatusLowBattery = this.Battery.BatteryLevel < 10
201
199
  ? this.hap.Characteristic.StatusLowBattery.BATTERY_LEVEL_LOW
202
200
  : this.hap.Characteristic.StatusLowBattery.BATTERY_LEVEL_NORMAL;
203
- await this.debugLog(`StatusLowBattery: ${this.Battery.StatusLowBattery}`);
201
+ this.debugLog(`StatusLowBattery: ${this.Battery.StatusLowBattery}`);
204
202
  }
205
203
  /**
206
204
  * Asks the SwitchBot API for the latest device information
207
205
  */
208
206
  async refreshStatus() {
209
207
  if (!this.device.enableCloudService && this.OpenAPI) {
210
- await this.errorLog(`refreshStatus enableCloudService: ${this.device.enableCloudService}`);
208
+ this.errorLog(`refreshStatus enableCloudService: ${this.device.enableCloudService}`);
211
209
  }
212
210
  else if (this.BLE) {
213
211
  await this.BLERefreshStatus();
@@ -217,11 +215,11 @@ export class WaterDetector extends deviceBase {
217
215
  }
218
216
  else {
219
217
  await this.offlineOff();
220
- await this.debugWarnLog(`Connection Type: ${this.device.connectionType}, refreshStatus will not happen.`);
218
+ this.debugWarnLog(`Connection Type: ${this.device.connectionType}, refreshStatus will not happen.`);
221
219
  }
222
220
  }
223
221
  async BLERefreshStatus() {
224
- await this.debugLog('BLERefreshStatus');
222
+ this.debugLog('BLERefreshStatus');
225
223
  const switchBotBLE = await this.switchbotBLE();
226
224
  if (switchBotBLE === undefined) {
227
225
  await this.BLERefreshConnection(switchBotBLE);
@@ -232,85 +230,85 @@ export class WaterDetector extends deviceBase {
232
230
  // Start to monitor advertisement packets
233
231
  const serviceData = await this.monitorAdvertisementPackets(switchBotBLE);
234
232
  // Update HomeKit
235
- if (serviceData.model === SwitchBotBLEModel.Unknown && serviceData.modelName === SwitchBotBLEModelName.Unknown) {
233
+ if (serviceData.model === SwitchBotBLEModel.Leak && serviceData.modelName === SwitchBotBLEModelName.Leak) {
236
234
  this.serviceData = serviceData;
237
235
  await this.BLEparseStatus();
238
236
  await this.updateHomeKitCharacteristics();
239
237
  }
240
238
  else {
241
- await this.errorLog(`failed to get serviceData, serviceData: ${JSON.stringify(serviceData)}`);
239
+ this.errorLog(`failed to get serviceData, serviceData: ${JSON.stringify(serviceData)}`);
242
240
  await this.BLERefreshConnection(switchBotBLE);
243
241
  }
244
242
  })();
245
243
  }
246
244
  }
247
245
  async registerPlatformBLE() {
248
- await this.debugLog('registerPlatformBLE');
246
+ this.debugLog('registerPlatformBLE');
249
247
  if (this.config.options?.BLE) {
250
- await this.debugLog('is listening to Platform BLE.');
248
+ this.debugLog('is listening to Platform BLE.');
251
249
  try {
252
250
  const formattedDeviceId = formatDeviceIdAsMac(this.device.deviceId);
253
251
  this.device.bleMac = formattedDeviceId;
254
- await this.debugLog(`bleMac: ${this.device.bleMac}`);
252
+ this.debugLog(`bleMac: ${this.device.bleMac}`);
255
253
  this.platform.bleEventHandler[this.device.bleMac] = async (context) => {
256
254
  try {
257
- await this.debugLog(`received BLE: ${JSON.stringify(context)}`);
255
+ this.debugLog(`received BLE: ${JSON.stringify(context)}`);
258
256
  this.serviceData = context;
259
257
  await this.BLEparseStatus();
260
258
  await this.updateHomeKitCharacteristics();
261
259
  }
262
260
  catch (e) {
263
- await this.errorLog(`failed to handle BLE. Received: ${JSON.stringify(context)} Error: ${e.message ?? e}`);
261
+ this.errorLog(`failed to handle BLE. Received: ${JSON.stringify(context)} Error: ${e.message ?? e}`);
264
262
  }
265
263
  };
266
264
  }
267
265
  catch (error) {
268
- await this.errorLog(`failed to format device ID as MAC, Error: ${error}`);
266
+ this.errorLog(`failed to format device ID as MAC, Error: ${error}`);
269
267
  }
270
268
  }
271
269
  else {
272
- await this.debugLog('is not listening to Platform BLE');
270
+ this.debugLog('is not listening to Platform BLE');
273
271
  }
274
272
  }
275
273
  async openAPIRefreshStatus() {
276
- await this.debugLog('openAPIRefreshStatus');
274
+ this.debugLog('openAPIRefreshStatus');
277
275
  try {
278
- const { body } = await this.deviceRefreshStatus();
279
- const deviceStatus = await body;
280
- await this.debugLog(`statusCode: ${deviceStatus.statusCode}, deviceStatus: ${JSON.stringify(deviceStatus)}`);
276
+ const response = await this.deviceRefreshStatus();
277
+ const deviceStatus = response.body;
278
+ this.debugLog(`statusCode: ${deviceStatus.statusCode}, deviceStatus: ${JSON.stringify(deviceStatus)}`);
281
279
  if (await this.successfulStatusCodes(deviceStatus)) {
282
- await this.debugSuccessLog(`statusCode: ${deviceStatus.statusCode}, deviceStatus: ${JSON.stringify(deviceStatus)}`);
280
+ this.debugSuccessLog(`statusCode: ${deviceStatus.statusCode}, deviceStatus: ${JSON.stringify(deviceStatus)}`);
283
281
  this.deviceStatus = deviceStatus.body;
284
282
  await this.openAPIparseStatus();
285
283
  await this.updateHomeKitCharacteristics();
286
284
  }
287
285
  else {
288
- await this.debugWarnLog(`statusCode: ${deviceStatus.statusCode}, deviceStatus: ${JSON.stringify(deviceStatus)}`);
289
- await this.debugWarnLog(deviceStatus);
286
+ this.debugWarnLog(`statusCode: ${deviceStatus.statusCode}, deviceStatus: ${JSON.stringify(deviceStatus)}`);
287
+ this.debugWarnLog(deviceStatus);
290
288
  }
291
289
  }
292
290
  catch (e) {
293
291
  await this.apiError(e);
294
- await this.errorLog(`failed openAPIRefreshStatus with ${this.device.connectionType} Connection, Error Message: ${JSON.stringify(e.message)}`);
292
+ this.errorLog(`failed openAPIRefreshStatus with ${this.device.connectionType} Connection, Error Message: ${JSON.stringify(e.message)}`);
295
293
  }
296
294
  }
297
295
  async registerWebhook() {
298
296
  if (this.device.webhook) {
299
- await this.debugLog('is listening webhook.');
297
+ this.debugLog('is listening webhook.');
300
298
  this.platform.webhookEventHandler[this.device.deviceId] = async (context) => {
301
299
  try {
302
- await this.debugLog(`received Webhook: ${JSON.stringify(context)}`);
300
+ this.debugLog(`received Webhook: ${JSON.stringify(context)}`);
303
301
  this.webhookContext = context;
304
302
  await this.parseStatusWebhook();
305
303
  await this.updateHomeKitCharacteristics();
306
304
  }
307
305
  catch (e) {
308
- await this.errorLog(`failed to handle webhook. Received: ${JSON.stringify(context)} Error: ${e.message ?? e}`);
306
+ this.errorLog(`failed to handle webhook. Received: ${JSON.stringify(context)} Error: ${e.message ?? e}`);
309
307
  }
310
308
  };
311
309
  }
312
310
  else {
313
- await this.debugLog('is not listening webhook.');
311
+ this.debugLog('is not listening webhook.');
314
312
  }
315
313
  }
316
314
  /**
@@ -329,9 +327,9 @@ export class WaterDetector extends deviceBase {
329
327
  await this.updateCharacteristic(this.Battery.Service, this.hap.Characteristic.StatusLowBattery, this.Battery.StatusLowBattery, 'StatusLowBattery');
330
328
  }
331
329
  async BLERefreshConnection(switchbot) {
332
- await this.errorLog(`wasn't able to establish BLE Connection, node-switchbot: ${switchbot}`);
330
+ this.errorLog(`wasn't able to establish BLE Connection, node-switchbot: ${switchbot}`);
333
331
  if (this.platform.config.credentials?.token && this.device.connectionType === 'BLE/OpenAPI') {
334
- await this.warnLog('Using OpenAPI Connection to Refresh Status');
332
+ this.warnLog('Using OpenAPI Connection to Refresh Status');
335
333
  await this.openAPIRefreshStatus();
336
334
  }
337
335
  }
@@ -1 +1 @@
1
- {"version":3,"file":"waterdetector.js","sourceRoot":"","sources":["../../src/device/waterdetector.ts"],"names":[],"mappings":"AAUA;;;EAGE;AACF,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAA;AACzE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AAEnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAExC;;;;GAIG;AACH,MAAM,OAAO,aAAc,SAAQ,UAAU;IA+BhC;IA9BX,WAAW;IACH,OAAO,CAMd;IAEO,UAAU,CAKjB;IAED,UAAU;IACV,YAAY,CAA0B;IAEtC,UAAU;IACV,cAAc,CAAkC;IAEhD,MAAM;IACN,WAAW,CAA+B;IAE1C,UAAU;IACV,6BAA6B,CAAU;IACvC,qBAAqB,CAAe;IAEpC,YACW,QAA2B,EACpC,S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AO,CAAC,oBAAoB,CAAC,IAAI,CAAC,GAAG,CAAC,cAAc,CAAC,YAAY,EAAE,KAAK,CAAC,CAAA;gBACzF,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,oBAAoB,CAAC,IAAI,CAAC,GAAG,CAAC,cAAc,CAAC,YAAY,EAAE,IAAI,CAAC,GAAG,CAAC,cAAc,CAAC,YAAY,CAAC,iBAAiB,CAAC,CAAA;YAC5I,CAAC;QACH,CAAC;IACH,CAAC;IAED,KAAK,CAAC,QAAQ,CAAC,CAAM;QACnB,IAAI,CAAE,IAAI,CAAC,MAA8B,CAAC,SAAS,IAAI,IAAI,CAAC,UAAU,EAAE,OAAO,EAAE,CAAC;YAChF,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,oBAAoB,CAAC,IAAI,CAAC,GAAG,CAAC,cAAc,CAAC,YAAY,EAAE,CAAC,CAAC,CAAA;YACrF,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,oBAAoB,CAAC,IAAI,CAAC,GAAG,CAAC,cAAc,CAAC,YAAY,EAAE,CAAC,CAAC,CAAA;QACvF,CAAC;QACD,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,oBAAoB,CAAC,IAAI,CAAC,GAAG,CAAC,cAAc,CAAC,YAAY,EAAE,CAAC,CAAC,CAAA;QAClF,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,oBAAoB,CAAC,IAAI,CAAC,GAAG,CAAC,cAAc,CAAC,gBAAgB,EAAE,CAAC,CAAC,CAAA;IACxF,CAAC;CACF"}
@@ -112,7 +112,7 @@ export class AirConditioner extends irdeviceBase {
112
112
  * AirConditioner: "command" "highSpeed" "default" = fan speed to high
113
113
  */
114
114
  async pushAirConditionerOnChanges() {
115
- await this.debugLog(`pushAirConditionerOnChanges Active: ${this.HeaterCooler.Active}, disablePushOn: ${this.disablePushOn}`);
115
+ this.debugLog(`pushAirConditionerOnChanges Active: ${this.HeaterCooler.Active}, disablePushOn: ${this.disablePushOn}`);
116
116
  if (this.HeaterCooler.Active === this.hap.Characteristic.Active.ACTIVE && !this.disablePushOn) {
117
117
  const commandType = await this.commandType();
118
118
  const command = await this.commandOn();
@@ -125,7 +125,7 @@ export class AirConditioner extends irdeviceBase {
125
125
  }
126
126
  }
127
127
  async pushAirConditionerOffChanges() {
128
- await this.debugLog(`pushAirConditionerOffChanges Active: ${this.HeaterCooler.Active}, disablePushOff: ${this.disablePushOff}`);
128
+ this.debugLog(`pushAirConditionerOffChanges Active: ${this.HeaterCooler.Active}, disablePushOff: ${this.disablePushOff}`);
129
129
  if (this.HeaterCooler.Active === this.hap.Characteristic.Active.INACTIVE && !this.disablePushOff) {
130
130
  const commandType = await this.commandType();
131
131
  const command = await this.commandOff();
@@ -138,7 +138,7 @@ export class AirConditioner extends irdeviceBase {
138
138
  }
139
139
  }
140
140
  async pushAirConditionerStatusChanges() {
141
- await this.debugLog(`pushAirConditionerStatusChanges Active: ${this.HeaterCooler.Active}, disablePushOff: ${this.disablePushOff}, disablePushOn: ${this.disablePushOn}`);
141
+ this.debugLog(`pushAirConditionerStatusChanges Active: ${this.HeaterCooler.Active}, disablePushOff: ${this.disablePushOff}, disablePushOn: ${this.disablePushOn}`);
142
142
  if (!this.Busy) {
143
143
  this.Busy = true;
144
144
  this.HeaterCooler.CurrentHeaterCoolerState = this.hap.Characteristic.CurrentHeaterCoolerState.IDLE;
@@ -148,7 +148,7 @@ export class AirConditioner extends irdeviceBase {
148
148
  this.Timeout = setTimeout(this.pushAirConditionerDetailsChanges.bind(this), 1500);
149
149
  }
150
150
  async pushAirConditionerDetailsChanges() {
151
- await this.debugLog(`pushAirConditionerDetailsChanges Active: ${this.HeaterCooler.Active}, disablePushOff: ${this.disablePushOff}, disablePushOn: ${this.disablePushOn}`);
151
+ this.debugLog(`pushAirConditionerDetailsChanges Active: ${this.HeaterCooler.Active}, disablePushOff: ${this.disablePushOff}, disablePushOn: ${this.disablePushOn}`);
152
152
  // await this.deviceContext();
153
153
  if (this.CurrentMode === undefined) {
154
154
  this.CurrentMode = 1;
@@ -165,7 +165,7 @@ export class AirConditioner extends irdeviceBase {
165
165
  if (this.CurrentMode === 1) {
166
166
  // Remove or make configurable?
167
167
  this.HeaterCooler.ThresholdTemperature = 25;
168
- await this.debugLog(`CurrentMode: ${this.CurrentMode}, ThresholdTemperature: ${this.HeaterCooler.ThresholdTemperature}`);
168
+ this.debugLog(`CurrentMode: ${this.CurrentMode}, ThresholdTemperature: ${this.HeaterCooler.ThresholdTemperature}`);
169
169
  }
170
170
  const parameter = `${this.HeaterCooler.ThresholdTemperature},${this.CurrentMode},${this.CurrentFanSpeed},${this.state}`;
171
171
  await this.UpdateCurrentHeaterCoolerState();
@@ -266,12 +266,12 @@ export class AirConditioner extends irdeviceBase {
266
266
  }
267
267
  }
268
268
  async pushChanges(bodyChange) {
269
- await this.debugLog('pushChanges');
269
+ this.debugLog('pushChanges');
270
270
  if (this.device.connectionType === 'OpenAPI' && !this.disablePushDetail) {
271
- await this.infoLog(`Sending request to SwitchBot API, body: ${JSON.stringify(bodyChange)}`);
271
+ this.infoLog(`Sending request to SwitchBot API, body: ${JSON.stringify(bodyChange)}`);
272
272
  try {
273
- const { body } = await this.pushChangeRequest(bodyChange);
274
- const deviceStatus = await body;
273
+ const response = await this.pushChangeRequest(bodyChange);
274
+ const deviceStatus = response.body;
275
275
  await this.pushStatusCodes(deviceStatus);
276
276
  if (await this.successfulStatusCodes(deviceStatus)) {
277
277
  await this.successfulPushChange(deviceStatus, bodyChange);
@@ -287,27 +287,27 @@ export class AirConditioner extends irdeviceBase {
287
287
  }
288
288
  }
289
289
  else {
290
- await this.warnLog(`Connection Type: ${this.device.connectionType}, commands will not be sent to OpenAPI`);
291
- await this.debugLog(`Connection Type: ${this.device.connectionType}, disablePushDetails: ${this.disablePushDetail}`);
290
+ this.warnLog(`Connection Type: ${this.device.connectionType}, commands will not be sent to OpenAPI`);
291
+ this.debugLog(`Connection Type: ${this.device.connectionType}, disablePushDetails: ${this.disablePushDetail}`);
292
292
  await this.updateHomeKitCharacteristics();
293
293
  }
294
294
  }
295
295
  async CurrentTemperatureGet() {
296
296
  if (this.meter?.context?.CurrentTemperature) {
297
297
  this.accessory.context.CurrentTemperature = this.meter.context.CurrentTemperature;
298
- await this.debugLog(`Using CurrentTemperature from ${this.meter.context.deviceType} (${this.meter.context.deviceId})`);
298
+ this.debugLog(`Using CurrentTemperature from ${this.meter.context.deviceType} (${this.meter.context.deviceId})`);
299
299
  }
300
300
  this.HeaterCooler.CurrentTemperature = this.accessory.context.CurrentTemperature || 24;
301
- await this.debugLog(`Get CurrentTemperature: ${this.HeaterCooler.CurrentTemperature}`);
301
+ this.debugLog(`Get CurrentTemperature: ${this.HeaterCooler.CurrentTemperature}`);
302
302
  return this.HeaterCooler.CurrentTemperature;
303
303
  }
304
304
  async CurrentRelativeHumidityGet() {
305
305
  if (this.meter?.context?.CurrentRelativeHumidity) {
306
306
  this.accessory.context.CurrentRelativeHumidity = this.meter.context.CurrentRelativeHumidity;
307
- await this.debugLog(`Using CurrentRelativeHumidity from ${this.meter.context.deviceType} (${this.meter.context.deviceId})`);
307
+ this.debugLog(`Using CurrentRelativeHumidity from ${this.meter.context.deviceType} (${this.meter.context.deviceId})`);
308
308
  }
309
309
  this.HumiditySensor.CurrentRelativeHumidity = this.accessory.context.CurrentRelativeHumidity || 0;
310
- await this.debugLog(`Get CurrentRelativeHumidity: ${this.HumiditySensor.CurrentRelativeHumidity}`);
310
+ this.debugLog(`Get CurrentRelativeHumidity: ${this.HumiditySensor.CurrentRelativeHumidity}`);
311
311
  return this.HumiditySensor.CurrentRelativeHumidity;
312
312
  }
313
313
  async RotationSpeedGet() {
@@ -317,7 +317,7 @@ export class AirConditioner extends irdeviceBase {
317
317
  else {
318
318
  this.HeaterCooler.RotationSpeed = this.CurrentFanSpeed - 1;
319
319
  }
320
- await this.debugLog(`Get RotationSpeed: ${this.HeaterCooler.RotationSpeed}`);
320
+ this.debugLog(`Get RotationSpeed: ${this.HeaterCooler.RotationSpeed}`);
321
321
  return this.HeaterCooler.RotationSpeed;
322
322
  }
323
323
  async RotationSpeedSet(value) {
@@ -328,14 +328,14 @@ export class AirConditioner extends irdeviceBase {
328
328
  this.CurrentFanSpeed = Number(value) + 1;
329
329
  }
330
330
  this.HeaterCooler.RotationSpeed = value;
331
- await this.debugLog(`Set RotationSpeed: ${this.HeaterCooler.RotationSpeed}, CurrentFanSpeed: ${this.CurrentFanSpeed}`);
331
+ this.debugLog(`Set RotationSpeed: ${this.HeaterCooler.RotationSpeed}, CurrentFanSpeed: ${this.CurrentFanSpeed}`);
332
332
  this.pushAirConditionerStatusChanges();
333
333
  }
334
334
  async ActiveSet(value) {
335
- await this.debugLog(`Set Active: ${value}`);
335
+ this.debugLog(`Set Active: ${value}`);
336
336
  this.HeaterCooler.Active = value;
337
337
  if (this.HeaterCooler.Active === this.hap.Characteristic.Active.ACTIVE) {
338
- await this.debugLog(`pushAirConditionerOnChanges, Active: ${this.HeaterCooler.Active}`);
338
+ this.debugLog(`pushAirConditionerOnChanges, Active: ${this.HeaterCooler.Active}`);
339
339
  if (this.disablePushOn) {
340
340
  this.pushAirConditionerStatusChanges();
341
341
  }
@@ -344,14 +344,14 @@ export class AirConditioner extends irdeviceBase {
344
344
  }
345
345
  }
346
346
  else {
347
- await this.debugLog(`pushAirConditionerOffChanges, Active: ${this.HeaterCooler.Active}`);
347
+ this.debugLog(`pushAirConditionerOffChanges, Active: ${this.HeaterCooler.Active}`);
348
348
  this.pushAirConditionerOffChanges();
349
349
  }
350
350
  }
351
351
  async TargetHeaterCoolerStateGet() {
352
352
  const targetState = this.HeaterCooler.TargetHeaterCoolerState || this.accessory.context.TargetHeaterCoolerState;
353
353
  this.HeaterCooler.TargetHeaterCoolerState = this.ValidValues.includes(targetState) ? targetState : this.ValidValues[0];
354
- await this.debugLog(`Get (${this.getTargetHeaterCoolerStateName()}) TargetHeaterCoolerState: ${this.HeaterCooler.TargetHeaterCoolerState}, ValidValues: ${this.ValidValues}, hide_automode: ${this.hide_automode}`);
354
+ this.debugLog(`Get (${this.getTargetHeaterCoolerStateName()}) TargetHeaterCoolerState: ${this.HeaterCooler.TargetHeaterCoolerState}, ValidValues: ${this.ValidValues}, hide_automode: ${this.hide_automode}`);
355
355
  return this.HeaterCooler.TargetHeaterCoolerState;
356
356
  }
357
357
  async TargetHeaterCoolerStateSet(value) {
@@ -372,24 +372,24 @@ export class AirConditioner extends irdeviceBase {
372
372
  async TargetHeaterCoolerStateAUTO() {
373
373
  this.HeaterCooler.TargetHeaterCoolerState = this.hap.Characteristic.TargetHeaterCoolerState.AUTO;
374
374
  this.CurrentMode = 1;
375
- await this.debugLog(`Set (AUTO) TargetHeaterCoolerState: ${this.HeaterCooler.TargetHeaterCoolerState}`);
376
- await this.debugLog(`Switchbot CurrentMode: ${this.CurrentMode}`);
375
+ this.debugLog(`Set (AUTO) TargetHeaterCoolerState: ${this.HeaterCooler.TargetHeaterCoolerState}`);
376
+ this.debugLog(`Switchbot CurrentMode: ${this.CurrentMode}`);
377
377
  }
378
378
  async TargetHeaterCoolerStateCOOL() {
379
379
  this.HeaterCooler.TargetHeaterCoolerState = this.hap.Characteristic.TargetHeaterCoolerState.COOL;
380
380
  this.CurrentMode = 2;
381
- await this.debugLog(`Set (COOL) TargetHeaterCoolerState: ${this.HeaterCooler.TargetHeaterCoolerState}`);
382
- await this.debugLog(`Switchbot CurrentMode: ${this.CurrentMode}`);
381
+ this.debugLog(`Set (COOL) TargetHeaterCoolerState: ${this.HeaterCooler.TargetHeaterCoolerState}`);
382
+ this.debugLog(`Switchbot CurrentMode: ${this.CurrentMode}`);
383
383
  }
384
384
  async TargetHeaterCoolerStateHEAT() {
385
385
  this.HeaterCooler.TargetHeaterCoolerState = this.hap.Characteristic.TargetHeaterCoolerState.HEAT;
386
386
  this.CurrentMode = 5;
387
- await this.debugLog(`Set (HEAT) TargetHeaterCoolerState: ${this.HeaterCooler.TargetHeaterCoolerState}`);
388
- await this.debugLog(`Switchbot CurrentMode: ${this.CurrentMode}`);
387
+ this.debugLog(`Set (HEAT) TargetHeaterCoolerState: ${this.HeaterCooler.TargetHeaterCoolerState}`);
388
+ this.debugLog(`Switchbot CurrentMode: ${this.CurrentMode}`);
389
389
  }
390
390
  async CurrentHeaterCoolerStateGet() {
391
391
  await this.UpdateCurrentHeaterCoolerState();
392
- await this.debugLog(`Get (${this.getTargetHeaterCoolerStateName()}) CurrentHeaterCoolerState: ${this.HeaterCooler.CurrentHeaterCoolerState}`);
392
+ this.debugLog(`Get (${this.getTargetHeaterCoolerStateName()}) CurrentHeaterCoolerState: ${this.HeaterCooler.CurrentHeaterCoolerState}`);
393
393
  return this.HeaterCooler.CurrentHeaterCoolerState;
394
394
  }
395
395
  getTargetHeaterCoolerStateName() {
@@ -423,16 +423,16 @@ export class AirConditioner extends irdeviceBase {
423
423
  ? 0
424
424
  : this.HumiditySensor.CurrentRelativeHumidity ?? this.accessory.context.CurrentRelativeHumidity;
425
425
  }
426
- await this.debugLog(`Get ThresholdTemperature: ${this.HeaterCooler.ThresholdTemperature}`);
426
+ this.debugLog(`Get ThresholdTemperature: ${this.HeaterCooler.ThresholdTemperature}`);
427
427
  return this.HeaterCooler.ThresholdTemperature;
428
428
  }
429
429
  async ThresholdTemperatureSet(value) {
430
430
  this.HeaterCooler.ThresholdTemperature = value;
431
- await this.debugLog(`Set ThresholdTemperature: ${this.HeaterCooler.ThresholdTemperature}, ThresholdTemperatureCached: ${this.accessory.context.ThresholdTemperature}`);
431
+ this.debugLog(`Set ThresholdTemperature: ${this.HeaterCooler.ThresholdTemperature}, ThresholdTemperatureCached: ${this.accessory.context.ThresholdTemperature}`);
432
432
  this.pushAirConditionerStatusChanges();
433
433
  }
434
434
  async updateHomeKitCharacteristics() {
435
- await this.debugLog('updateHomeKitCharacteristics');
435
+ this.debugLog('updateHomeKitCharacteristics');
436
436
  // Active
437
437
  await this.updateCharacteristic(this.HeaterCooler.Service, this.hap.Characteristic.Active, this.HeaterCooler.Active, 'Active');
438
438
  // RotationSpeed