tsvesync 1.0.69 → 1.0.70
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
|
*/
|
|
@@ -384,5 +384,12 @@ 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
|
+
}
|
|
387
394
|
}
|
|
388
395
|
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,12 @@ 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
|
+
}
|
|
470
478
|
}
|