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

Commit

Permalink
Update MideaAccessory.js
Browse files Browse the repository at this point in the history
  • Loading branch information
hillaliy committed Aug 14, 2022
1 parent 776a7f0 commit b146bed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/MideaAccessory.js
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ class MideaAccessory {
;
// Get the current value of the "RotationSpeed" characteristic
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 @@ -633,7 +633,7 @@ class MideaAccessory {
;
// Get the current value of the "WindSpeed" characteristic
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 b146bed

Please sign in to comment.