tsvesync 1.0.70 → 1.0.71
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.
|
@@ -85,4 +85,24 @@ export declare class VeSyncHumidifier extends VeSyncFan {
|
|
|
85
85
|
* Provides access to the current humidity reading
|
|
86
86
|
*/
|
|
87
87
|
get currentHumidity(): number;
|
|
88
|
+
/**
|
|
89
|
+
* Check if water tank is empty
|
|
90
|
+
* Returns true if water tank is empty and needs to be refilled
|
|
91
|
+
*/
|
|
92
|
+
get waterLacks(): boolean;
|
|
93
|
+
/**
|
|
94
|
+
* Check if water tank is lifted
|
|
95
|
+
* Returns true if water tank is lifted/removed from the device
|
|
96
|
+
*/
|
|
97
|
+
get waterTankLifted(): boolean;
|
|
98
|
+
/**
|
|
99
|
+
* Check if humidity is higher than target
|
|
100
|
+
* Returns true if current humidity is higher than target humidity
|
|
101
|
+
*/
|
|
102
|
+
get humidityHigh(): boolean;
|
|
103
|
+
/**
|
|
104
|
+
* Check if automatic stop is active
|
|
105
|
+
* Returns true if automatic stop is currently active
|
|
106
|
+
*/
|
|
107
|
+
get automaticStop(): boolean;
|
|
88
108
|
}
|
|
@@ -391,5 +391,33 @@ class VeSyncHumidifier extends vesyncFan_1.VeSyncFan {
|
|
|
391
391
|
get currentHumidity() {
|
|
392
392
|
return this.details.humidity || 0;
|
|
393
393
|
}
|
|
394
|
+
/**
|
|
395
|
+
* Check if water tank is empty
|
|
396
|
+
* Returns true if water tank is empty and needs to be refilled
|
|
397
|
+
*/
|
|
398
|
+
get waterLacks() {
|
|
399
|
+
return this.details.water_lacks || false;
|
|
400
|
+
}
|
|
401
|
+
/**
|
|
402
|
+
* Check if water tank is lifted
|
|
403
|
+
* Returns true if water tank is lifted/removed from the device
|
|
404
|
+
*/
|
|
405
|
+
get waterTankLifted() {
|
|
406
|
+
return this.details.water_tank_lifted || false;
|
|
407
|
+
}
|
|
408
|
+
/**
|
|
409
|
+
* Check if humidity is higher than target
|
|
410
|
+
* Returns true if current humidity is higher than target humidity
|
|
411
|
+
*/
|
|
412
|
+
get humidityHigh() {
|
|
413
|
+
return this.details.humidity_high || false;
|
|
414
|
+
}
|
|
415
|
+
/**
|
|
416
|
+
* Check if automatic stop is active
|
|
417
|
+
* Returns true if automatic stop is currently active
|
|
418
|
+
*/
|
|
419
|
+
get automaticStop() {
|
|
420
|
+
return this.details.automatic_stop || false;
|
|
421
|
+
}
|
|
394
422
|
}
|
|
395
423
|
exports.VeSyncHumidifier = VeSyncHumidifier;
|
package/package.json
CHANGED
|
@@ -475,4 +475,36 @@ export class VeSyncHumidifier extends VeSyncFan {
|
|
|
475
475
|
get currentHumidity(): number {
|
|
476
476
|
return this.details.humidity || 0;
|
|
477
477
|
}
|
|
478
|
+
|
|
479
|
+
/**
|
|
480
|
+
* Check if water tank is empty
|
|
481
|
+
* Returns true if water tank is empty and needs to be refilled
|
|
482
|
+
*/
|
|
483
|
+
get waterLacks(): boolean {
|
|
484
|
+
return this.details.water_lacks || false;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
/**
|
|
488
|
+
* Check if water tank is lifted
|
|
489
|
+
* Returns true if water tank is lifted/removed from the device
|
|
490
|
+
*/
|
|
491
|
+
get waterTankLifted(): boolean {
|
|
492
|
+
return this.details.water_tank_lifted || false;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
/**
|
|
496
|
+
* Check if humidity is higher than target
|
|
497
|
+
* Returns true if current humidity is higher than target humidity
|
|
498
|
+
*/
|
|
499
|
+
get humidityHigh(): boolean {
|
|
500
|
+
return this.details.humidity_high || false;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
/**
|
|
504
|
+
* Check if automatic stop is active
|
|
505
|
+
* Returns true if automatic stop is currently active
|
|
506
|
+
*/
|
|
507
|
+
get automaticStop(): boolean {
|
|
508
|
+
return this.details.automatic_stop || false;
|
|
509
|
+
}
|
|
478
510
|
}
|