tsvesync 1.0.84 → 1.0.85

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.
@@ -95,6 +95,9 @@ class VeSyncAir131 extends vesyncFan_1.VeSyncFan {
95
95
  if (success) {
96
96
  // Update device status immediately
97
97
  this.deviceStatus = 'on';
98
+ // Fetch device details to get current speed and other settings
99
+ logger_1.logger.debug(`${this.deviceName}: Fetching device details after turning on`);
100
+ await this.getDetails();
98
101
  }
99
102
  else {
100
103
  logger_1.logger.error(`Failed to turn on device: ${this.deviceName}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tsvesync",
3
- "version": "1.0.84",
3
+ "version": "1.0.85",
4
4
  "description": "A TypeScript library for interacting with VeSync smart home devices",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -116,6 +116,10 @@ export class VeSyncAir131 extends VeSyncFan {
116
116
  if (success) {
117
117
  // Update device status immediately
118
118
  this.deviceStatus = 'on';
119
+
120
+ // Fetch device details to get current speed and other settings
121
+ logger.debug(`${this.deviceName}: Fetching device details after turning on`);
122
+ await this.getDetails();
119
123
  } else {
120
124
  logger.error(`Failed to turn on device: ${this.deviceName}`);
121
125
  }