Skip to content
This repository has been archived by the owner on Nov 9, 2023. It is now read-only.

Commit

Permalink
Update MideaAccessory.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
hillaliy committed Aug 14, 2022
1 parent 38a61d9 commit adff63d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MideaAccessory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ export class MideaAccessory {
};
// Get the current value of the "RotationSpeed" characteristic
public rotationSpeed() {
// values from device are 20.0="Silent",40.0="Low",60.0="Medium",80.0="High",102.0="Auto"
// values from device are 20="Silent",40="Low",60="Medium",80="High",100=Full,102="Auto"
// New Midea devices has slider between 1%-100%
// convert to good usable slider in homekit in percent
let currentValue = 0;
Expand Down Expand Up @@ -559,7 +559,7 @@ export class MideaAccessory {
};
// Get the current value of the "WindSpeed" characteristic
public windSpeed() {
// values from device are 40.0="Silent",60.0="Medium",80.0="High"
// values from device are 40="Silent",60="Medium",80="High"
// convert to good usable slider in homekit in percent
let currentValue = 0;
if (this.fanSpeed === 40) {
Expand Down

0 comments on commit adff63d

Please sign in to comment.