Skip to content

Commit

Permalink
fix(air conditioner): return correct cooling threshold temperature wh…
Browse files Browse the repository at this point in the history
…en auto mode is enabled
  • Loading branch information
tomekkleszcz committed Mar 11, 2024
1 parent e7d39e5 commit 33e957d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/accessories/devices/comfort600.ts
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,10 @@ export class Comfort600 extends ElectroluxAccessoryController {
}

async getCoolingThresholdTemperature(): Promise<CharacteristicValue> {
if (this.appliance.properties.reported.mode === 'auto') {
return 32;
}

return this.appliance.properties.reported.targetTemperatureC;
}

Expand Down Expand Up @@ -442,6 +446,7 @@ export class Comfort600 extends ElectroluxAccessoryController {

update(appliance: Appliance) {
this.appliance = appliance;

let currentState: CharacteristicValue, targetState: CharacteristicValue;
switch (this.appliance.properties.reported.mode) {
case 'cool':
Expand Down

0 comments on commit 33e957d

Please sign in to comment.