Skip to content

Commit

Permalink
Add alternate Winix mapping for good air quality
Browse files Browse the repository at this point in the history
  • Loading branch information
regaw-leinad committed Dec 21, 2024
1 parent 2a37893 commit e3b5204
Show file tree
Hide file tree
Showing 3 changed files with 756 additions and 719 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"dependencies": {
"@homebridge/plugin-ui-utils": "^1.0.1",
"async-lock": "^1.4.1",
"winix-api": "1.5.3"
"winix-api": "1.5.5"
},
"devDependencies": {
"@types/async-lock": "^1.4.2",
Expand Down
2 changes: 2 additions & 0 deletions src/accessory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,8 @@ export class WinixPurifierAccessory {
switch (airQuality) {
case AirQuality.Good:
return this.Characteristic.AirQuality.GOOD;
case AirQuality.GoodAlternate:
return this.Characteristic.AirQuality.GOOD;
case AirQuality.Fair:
return this.Characteristic.AirQuality.FAIR;
case AirQuality.Poor:
Expand Down
Loading

0 comments on commit e3b5204

Please sign in to comment.