Skip to content

Commit

Permalink
more logs for RotationSpeed
Browse files Browse the repository at this point in the history
  • Loading branch information
donavanbecker committed Oct 5, 2024
1 parent 3549868 commit ab3f544
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 30 deletions.
46 changes: 23 additions & 23 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@
"@homebridge/plugin-ui-utils": "^1.0.3",
"async-mqtt": "^2.6.3",
"fakegato-history": "^0.6.5",
"homebridge-lib": "^7.0.8",
"node-switchbot": "2.5.0-beta.36",
"homebridge-lib": "^7.0.9",
"node-switchbot": "2.5.0-beta.38",
"rxjs": "^7.8.1"
},
"devDependencies": {
Expand Down
11 changes: 6 additions & 5 deletions src/device/fan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,8 @@ export class Fan extends deviceBase {
await this.debugLog(`Active: ${this.Fan.Active}`)

// RotationSpeed
this.Fan.RotationSpeed = this.serviceData.fanSpeed
this.Fan.RotationSpeed = this.serviceData.fanSpeed // ?? 0
await this.debugLog(`BLEparseStatus RotationSpeed: ${this.Fan.RotationSpeed}`)
}

async openAPIparseStatus() {
Expand All @@ -219,8 +220,8 @@ export class Fan extends deviceBase {
await this.debugLog(`SwingMode: ${this.Fan.SwingMode}`)

// RotationSpeed
this.Fan.RotationSpeed = this.deviceStatus.fanSpeed
await this.debugLog(`RotationSpeed: ${this.Fan.RotationSpeed}`)
this.Fan.RotationSpeed = this.deviceStatus.fanSpeed // ?? 0
await this.debugLog(`openAPIparseStatus RotationSpeed: ${this.Fan.RotationSpeed}`)

// ChargingState
this.Battery.ChargingState = this.deviceStatus.chargingStatus === 'charging'
Expand Down Expand Up @@ -268,8 +269,8 @@ export class Fan extends deviceBase {
await this.debugLog(`SwingMode: ${this.Fan.SwingMode}`)

// RotationSpeed
this.Fan.RotationSpeed = this.webhookContext.fanSpeed
await this.debugLog(`RotationSpeed: ${this.Fan.RotationSpeed}`)
this.Fan.RotationSpeed = this.webhookContext.fanSpeed // ?? 0
await this.debugLog(`parseStatusWebhook RotationSpeed: ${this.Fan.RotationSpeed}`)

// BatteryLevel
this.Battery.BatteryLevel = this.webhookContext.battery
Expand Down

0 comments on commit ab3f544

Please sign in to comment.