@switchbot/homebridge-switchbot 2.0.0-beta.27 → 2.0.0-beta.28
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 -2
- package/config.schema.json +2 -29
- package/dist/device/bot.d.ts +2 -0
- package/dist/device/bot.d.ts.map +1 -1
- package/dist/device/bot.js +19 -9
- package/dist/device/bot.js.map +1 -1
- package/dist/device/colorbulb.d.ts +2 -0
- package/dist/device/colorbulb.d.ts.map +1 -1
- package/dist/device/colorbulb.js +19 -9
- package/dist/device/colorbulb.js.map +1 -1
- package/dist/device/contact.d.ts +2 -0
- package/dist/device/contact.d.ts.map +1 -1
- package/dist/device/contact.js +18 -8
- package/dist/device/contact.js.map +1 -1
- package/dist/device/curtain.d.ts +2 -0
- package/dist/device/curtain.d.ts.map +1 -1
- package/dist/device/curtain.js +19 -9
- package/dist/device/curtain.js.map +1 -1
- package/dist/device/humidifier.d.ts +2 -0
- package/dist/device/humidifier.d.ts.map +1 -1
- package/dist/device/humidifier.js +19 -9
- package/dist/device/humidifier.js.map +1 -1
- package/dist/device/lock.d.ts +2 -0
- package/dist/device/lock.d.ts.map +1 -1
- package/dist/device/lock.js +17 -3
- package/dist/device/lock.js.map +1 -1
- package/dist/device/meter.d.ts +2 -0
- package/dist/device/meter.d.ts.map +1 -1
- package/dist/device/meter.js +18 -8
- package/dist/device/meter.js.map +1 -1
- package/dist/device/meterplus.d.ts +2 -0
- package/dist/device/meterplus.d.ts.map +1 -1
- package/dist/device/meterplus.js +18 -8
- package/dist/device/meterplus.js.map +1 -1
- package/dist/device/motion.d.ts +2 -0
- package/dist/device/motion.d.ts.map +1 -1
- package/dist/device/motion.js +18 -8
- package/dist/device/motion.js.map +1 -1
- package/dist/device/plug.d.ts +2 -0
- package/dist/device/plug.d.ts.map +1 -1
- package/dist/device/plug.js +19 -9
- package/dist/device/plug.js.map +1 -1
- package/dist/device/striplight.d.ts +2 -0
- package/dist/device/striplight.d.ts.map +1 -1
- package/dist/device/striplight.js +19 -9
- package/dist/device/striplight.js.map +1 -1
- package/dist/irdevice/airconditioner.d.ts +2 -0
- package/dist/irdevice/airconditioner.d.ts.map +1 -1
- package/dist/irdevice/airconditioner.js +14 -0
- package/dist/irdevice/airconditioner.js.map +1 -1
- package/dist/irdevice/airpurifier.d.ts +2 -0
- package/dist/irdevice/airpurifier.d.ts.map +1 -1
- package/dist/irdevice/airpurifier.js +14 -0
- package/dist/irdevice/airpurifier.js.map +1 -1
- package/dist/irdevice/camera.d.ts +2 -0
- package/dist/irdevice/camera.d.ts.map +1 -1
- package/dist/irdevice/camera.js +14 -0
- package/dist/irdevice/camera.js.map +1 -1
- package/dist/irdevice/fan.d.ts +2 -0
- package/dist/irdevice/fan.d.ts.map +1 -1
- package/dist/irdevice/fan.js +14 -0
- package/dist/irdevice/fan.js.map +1 -1
- package/dist/irdevice/light.d.ts +2 -0
- package/dist/irdevice/light.d.ts.map +1 -1
- package/dist/irdevice/light.js +14 -0
- package/dist/irdevice/light.js.map +1 -1
- package/dist/irdevice/other.d.ts +2 -0
- package/dist/irdevice/other.d.ts.map +1 -1
- package/dist/irdevice/other.js +14 -0
- package/dist/irdevice/other.js.map +1 -1
- package/dist/irdevice/tv.d.ts +2 -0
- package/dist/irdevice/tv.d.ts.map +1 -1
- package/dist/irdevice/tv.js +14 -0
- package/dist/irdevice/tv.js.map +1 -1
- package/dist/irdevice/vacuumcleaner.d.ts +2 -0
- package/dist/irdevice/vacuumcleaner.d.ts.map +1 -1
- package/dist/irdevice/vacuumcleaner.js +14 -0
- package/dist/irdevice/vacuumcleaner.js.map +1 -1
- package/dist/irdevice/waterheater.d.ts +2 -0
- package/dist/irdevice/waterheater.d.ts.map +1 -1
- package/dist/irdevice/waterheater.js +14 -0
- package/dist/irdevice/waterheater.js.map +1 -1
- package/dist/platform.d.ts +4 -5
- package/dist/platform.d.ts.map +1 -1
- package/dist/platform.js +148 -180
- package/dist/platform.js.map +1 -1
- package/dist/settings.d.ts +1 -0
- package/dist/settings.d.ts.map +1 -1
- package/dist/settings.js.map +1 -1
- package/package.json +1 -1
- package/src/device/bot.ts +21 -9
- package/src/device/colorbulb.ts +21 -9
- package/src/device/contact.ts +20 -8
- package/src/device/curtain.ts +21 -9
- package/src/device/humidifier.ts +21 -9
- package/src/device/lock.ts +19 -3
- package/src/device/meter.ts +20 -8
- package/src/device/meterplus.ts +20 -8
- package/src/device/motion.ts +20 -8
- package/src/device/plug.ts +21 -9
- package/src/device/striplight.ts +21 -9
- package/src/irdevice/airconditioner.ts +16 -0
- package/src/irdevice/airpurifier.ts +16 -0
- package/src/irdevice/camera.ts +16 -0
- package/src/irdevice/fan.ts +16 -0
- package/src/irdevice/light.ts +16 -0
- package/src/irdevice/other.ts +16 -0
- package/src/irdevice/tv.ts +16 -0
- package/src/irdevice/vacuumcleaner.ts +16 -0
- package/src/irdevice/waterheater.ts +16 -0
- package/src/platform.ts +146 -181
- package/src/settings.ts +1 -0
|
@@ -686,12 +686,28 @@ export class AirConditioner {
|
|
|
686
686
|
}
|
|
687
687
|
}
|
|
688
688
|
|
|
689
|
+
debugWarnLog(...log: any[]): void {
|
|
690
|
+
if (this.enablingDeviceLogging()) {
|
|
691
|
+
if (this.deviceLogging?.includes('debug')) {
|
|
692
|
+
this.platform.log.warn('[DEBUG]', String(...log));
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
|
|
689
697
|
errorLog(...log: any[]): void {
|
|
690
698
|
if (this.enablingDeviceLogging()) {
|
|
691
699
|
this.platform.log.error(String(...log));
|
|
692
700
|
}
|
|
693
701
|
}
|
|
694
702
|
|
|
703
|
+
debugErrorLog(...log: any[]): void {
|
|
704
|
+
if (this.enablingDeviceLogging()) {
|
|
705
|
+
if (this.deviceLogging?.includes('debug')) {
|
|
706
|
+
this.platform.log.error('[DEBUG]', String(...log));
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
|
|
695
711
|
debugLog(...log: any[]): void {
|
|
696
712
|
if (this.enablingDeviceLogging()) {
|
|
697
713
|
if (this.deviceLogging === 'debug') {
|
|
@@ -377,12 +377,28 @@ export class AirPurifier {
|
|
|
377
377
|
}
|
|
378
378
|
}
|
|
379
379
|
|
|
380
|
+
debugWarnLog(...log: any[]): void {
|
|
381
|
+
if (this.enablingDeviceLogging()) {
|
|
382
|
+
if (this.deviceLogging?.includes('debug')) {
|
|
383
|
+
this.platform.log.warn('[DEBUG]', String(...log));
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
|
|
380
388
|
errorLog(...log: any[]): void {
|
|
381
389
|
if (this.enablingDeviceLogging()) {
|
|
382
390
|
this.platform.log.error(String(...log));
|
|
383
391
|
}
|
|
384
392
|
}
|
|
385
393
|
|
|
394
|
+
debugErrorLog(...log: any[]): void {
|
|
395
|
+
if (this.enablingDeviceLogging()) {
|
|
396
|
+
if (this.deviceLogging?.includes('debug')) {
|
|
397
|
+
this.platform.log.error('[DEBUG]', String(...log));
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
|
|
386
402
|
debugLog(...log: any[]): void {
|
|
387
403
|
if (this.enablingDeviceLogging()) {
|
|
388
404
|
if (this.deviceLogging === 'debug') {
|
package/src/irdevice/camera.ts
CHANGED
|
@@ -266,12 +266,28 @@ export class Camera {
|
|
|
266
266
|
}
|
|
267
267
|
}
|
|
268
268
|
|
|
269
|
+
debugWarnLog(...log: any[]): void {
|
|
270
|
+
if (this.enablingDeviceLogging()) {
|
|
271
|
+
if (this.deviceLogging?.includes('debug')) {
|
|
272
|
+
this.platform.log.warn('[DEBUG]', String(...log));
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
|
|
269
277
|
errorLog(...log: any[]): void {
|
|
270
278
|
if (this.enablingDeviceLogging()) {
|
|
271
279
|
this.platform.log.error(String(...log));
|
|
272
280
|
}
|
|
273
281
|
}
|
|
274
282
|
|
|
283
|
+
debugErrorLog(...log: any[]): void {
|
|
284
|
+
if (this.enablingDeviceLogging()) {
|
|
285
|
+
if (this.deviceLogging?.includes('debug')) {
|
|
286
|
+
this.platform.log.error('[DEBUG]', String(...log));
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
|
|
275
291
|
debugLog(...log: any[]): void {
|
|
276
292
|
if (this.enablingDeviceLogging()) {
|
|
277
293
|
if (this.deviceLogging === 'debug') {
|
package/src/irdevice/fan.ts
CHANGED
|
@@ -398,12 +398,28 @@ export class Fan {
|
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
400
|
|
|
401
|
+
debugWarnLog(...log: any[]): void {
|
|
402
|
+
if (this.enablingDeviceLogging()) {
|
|
403
|
+
if (this.deviceLogging?.includes('debug')) {
|
|
404
|
+
this.platform.log.warn('[DEBUG]', String(...log));
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
|
|
401
409
|
errorLog(...log: any[]): void {
|
|
402
410
|
if (this.enablingDeviceLogging()) {
|
|
403
411
|
this.platform.log.error(String(...log));
|
|
404
412
|
}
|
|
405
413
|
}
|
|
406
414
|
|
|
415
|
+
debugErrorLog(...log: any[]): void {
|
|
416
|
+
if (this.enablingDeviceLogging()) {
|
|
417
|
+
if (this.deviceLogging?.includes('debug')) {
|
|
418
|
+
this.platform.log.error('[DEBUG]', String(...log));
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
|
|
407
423
|
debugLog(...log: any[]): void {
|
|
408
424
|
if (this.enablingDeviceLogging()) {
|
|
409
425
|
if (this.deviceLogging === 'debug') {
|
package/src/irdevice/light.ts
CHANGED
|
@@ -285,12 +285,28 @@ export class Light {
|
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
287
|
|
|
288
|
+
debugWarnLog(...log: any[]): void {
|
|
289
|
+
if (this.enablingDeviceLogging()) {
|
|
290
|
+
if (this.deviceLogging?.includes('debug')) {
|
|
291
|
+
this.platform.log.warn('[DEBUG]', String(...log));
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
|
|
288
296
|
errorLog(...log: any[]): void {
|
|
289
297
|
if (this.enablingDeviceLogging()) {
|
|
290
298
|
this.platform.log.error(String(...log));
|
|
291
299
|
}
|
|
292
300
|
}
|
|
293
301
|
|
|
302
|
+
debugErrorLog(...log: any[]): void {
|
|
303
|
+
if (this.enablingDeviceLogging()) {
|
|
304
|
+
if (this.deviceLogging?.includes('debug')) {
|
|
305
|
+
this.platform.log.error('[DEBUG]', String(...log));
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
|
|
294
310
|
debugLog(...log: any[]): void {
|
|
295
311
|
if (this.enablingDeviceLogging()) {
|
|
296
312
|
if (this.deviceLogging === 'debug') {
|
package/src/irdevice/other.ts
CHANGED
|
@@ -309,12 +309,28 @@ export class Others {
|
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
311
|
|
|
312
|
+
debugWarnLog(...log: any[]): void {
|
|
313
|
+
if (this.enablingDeviceLogging()) {
|
|
314
|
+
if (this.deviceLogging?.includes('debug')) {
|
|
315
|
+
this.platform.log.warn('[DEBUG]', String(...log));
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
|
|
312
320
|
errorLog(...log: any[]): void {
|
|
313
321
|
if (this.enablingDeviceLogging()) {
|
|
314
322
|
this.platform.log.error(String(...log));
|
|
315
323
|
}
|
|
316
324
|
}
|
|
317
325
|
|
|
326
|
+
debugErrorLog(...log: any[]): void {
|
|
327
|
+
if (this.enablingDeviceLogging()) {
|
|
328
|
+
if (this.deviceLogging?.includes('debug')) {
|
|
329
|
+
this.platform.log.error('[DEBUG]', String(...log));
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
|
|
318
334
|
debugLog(...log: any[]): void {
|
|
319
335
|
if (this.enablingDeviceLogging()) {
|
|
320
336
|
if (this.deviceLogging === 'debug') {
|
package/src/irdevice/tv.ts
CHANGED
|
@@ -500,12 +500,28 @@ export class TV {
|
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
502
|
|
|
503
|
+
debugWarnLog(...log: any[]): void {
|
|
504
|
+
if (this.enablingDeviceLogging()) {
|
|
505
|
+
if (this.deviceLogging?.includes('debug')) {
|
|
506
|
+
this.platform.log.warn('[DEBUG]', String(...log));
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
|
|
503
511
|
errorLog(...log: any[]): void {
|
|
504
512
|
if (this.enablingDeviceLogging()) {
|
|
505
513
|
this.platform.log.error(String(...log));
|
|
506
514
|
}
|
|
507
515
|
}
|
|
508
516
|
|
|
517
|
+
debugErrorLog(...log: any[]): void {
|
|
518
|
+
if (this.enablingDeviceLogging()) {
|
|
519
|
+
if (this.deviceLogging?.includes('debug')) {
|
|
520
|
+
this.platform.log.error('[DEBUG]', String(...log));
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
|
|
509
525
|
debugLog(...log: any[]): void {
|
|
510
526
|
if (this.enablingDeviceLogging()) {
|
|
511
527
|
if (this.deviceLogging === 'debug') {
|
|
@@ -263,12 +263,28 @@ export class VacuumCleaner {
|
|
|
263
263
|
}
|
|
264
264
|
}
|
|
265
265
|
|
|
266
|
+
debugWarnLog(...log: any[]): void {
|
|
267
|
+
if (this.enablingDeviceLogging()) {
|
|
268
|
+
if (this.deviceLogging?.includes('debug')) {
|
|
269
|
+
this.platform.log.warn('[DEBUG]', String(...log));
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
|
|
266
274
|
errorLog(...log: any[]): void {
|
|
267
275
|
if (this.enablingDeviceLogging()) {
|
|
268
276
|
this.platform.log.error(String(...log));
|
|
269
277
|
}
|
|
270
278
|
}
|
|
271
279
|
|
|
280
|
+
debugErrorLog(...log: any[]): void {
|
|
281
|
+
if (this.enablingDeviceLogging()) {
|
|
282
|
+
if (this.deviceLogging?.includes('debug')) {
|
|
283
|
+
this.platform.log.error('[DEBUG]', String(...log));
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
|
|
272
288
|
debugLog(...log: any[]): void {
|
|
273
289
|
if (this.enablingDeviceLogging()) {
|
|
274
290
|
if (this.deviceLogging === 'debug') {
|
|
@@ -266,12 +266,28 @@ export class WaterHeater {
|
|
|
266
266
|
}
|
|
267
267
|
}
|
|
268
268
|
|
|
269
|
+
debugWarnLog(...log: any[]): void {
|
|
270
|
+
if (this.enablingDeviceLogging()) {
|
|
271
|
+
if (this.deviceLogging?.includes('debug')) {
|
|
272
|
+
this.platform.log.warn('[DEBUG]', String(...log));
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
|
|
269
277
|
errorLog(...log: any[]): void {
|
|
270
278
|
if (this.enablingDeviceLogging()) {
|
|
271
279
|
this.platform.log.error(String(...log));
|
|
272
280
|
}
|
|
273
281
|
}
|
|
274
282
|
|
|
283
|
+
debugErrorLog(...log: any[]): void {
|
|
284
|
+
if (this.enablingDeviceLogging()) {
|
|
285
|
+
if (this.deviceLogging?.includes('debug')) {
|
|
286
|
+
this.platform.log.error('[DEBUG]', String(...log));
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
|
|
275
291
|
debugLog(...log: any[]): void {
|
|
276
292
|
if (this.enablingDeviceLogging()) {
|
|
277
293
|
if (this.deviceLogging === 'debug') {
|