tsvesync 1.0.69 → 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.
|
@@ -34,6 +34,11 @@ export declare class VeSyncHumid200300S extends VeSyncHumidifier {
|
|
|
34
34
|
* Override base class to return target humidity from configuration
|
|
35
35
|
*/
|
|
36
36
|
get humidity(): number;
|
|
37
|
+
/**
|
|
38
|
+
* Get current humidity
|
|
39
|
+
* Provides access to the current humidity reading
|
|
40
|
+
*/
|
|
41
|
+
get currentHumidity(): number;
|
|
37
42
|
/**
|
|
38
43
|
* Get automatic stop configuration
|
|
39
44
|
*/
|
|
@@ -120,6 +120,13 @@ class VeSyncHumid200300S extends humidifier_1.VeSyncHumidifier {
|
|
|
120
120
|
get humidity() {
|
|
121
121
|
return this.details.auto_target_humidity || 0;
|
|
122
122
|
}
|
|
123
|
+
/**
|
|
124
|
+
* Get current humidity
|
|
125
|
+
* Provides access to the current humidity reading
|
|
126
|
+
*/
|
|
127
|
+
get currentHumidity() {
|
|
128
|
+
return this.details.humidity || 0;
|
|
129
|
+
}
|
|
123
130
|
/**
|
|
124
131
|
* Get automatic stop configuration
|
|
125
132
|
*/
|
|
@@ -80,4 +80,29 @@ export declare class VeSyncHumidifier extends VeSyncFan {
|
|
|
80
80
|
* Turn on display
|
|
81
81
|
*/
|
|
82
82
|
turnOnDisplay(): Promise<boolean>;
|
|
83
|
+
/**
|
|
84
|
+
* Get current humidity
|
|
85
|
+
* Provides access to the current humidity reading
|
|
86
|
+
*/
|
|
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;
|
|
83
108
|
}
|
|
@@ -384,5 +384,40 @@ class VeSyncHumidifier extends vesyncFan_1.VeSyncFan {
|
|
|
384
384
|
}
|
|
385
385
|
return success;
|
|
386
386
|
}
|
|
387
|
+
/**
|
|
388
|
+
* Get current humidity
|
|
389
|
+
* Provides access to the current humidity reading
|
|
390
|
+
*/
|
|
391
|
+
get currentHumidity() {
|
|
392
|
+
return this.details.humidity || 0;
|
|
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
|
+
}
|
|
387
422
|
}
|
|
388
423
|
exports.VeSyncHumidifier = VeSyncHumidifier;
|
package/package.json
CHANGED
|
@@ -140,6 +140,14 @@ export class VeSyncHumid200300S extends VeSyncHumidifier {
|
|
|
140
140
|
return this.details.auto_target_humidity || 0;
|
|
141
141
|
}
|
|
142
142
|
|
|
143
|
+
/**
|
|
144
|
+
* Get current humidity
|
|
145
|
+
* Provides access to the current humidity reading
|
|
146
|
+
*/
|
|
147
|
+
get currentHumidity(): number {
|
|
148
|
+
return this.details.humidity || 0;
|
|
149
|
+
}
|
|
150
|
+
|
|
143
151
|
/**
|
|
144
152
|
* Get automatic stop configuration
|
|
145
153
|
*/
|
|
@@ -467,4 +467,44 @@ export class VeSyncHumidifier extends VeSyncFan {
|
|
|
467
467
|
}
|
|
468
468
|
return success;
|
|
469
469
|
}
|
|
470
|
+
|
|
471
|
+
/**
|
|
472
|
+
* Get current humidity
|
|
473
|
+
* Provides access to the current humidity reading
|
|
474
|
+
*/
|
|
475
|
+
get currentHumidity(): number {
|
|
476
|
+
return this.details.humidity || 0;
|
|
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
|
+
}
|
|
470
510
|
}
|