From 33e957dc33b0f9e5e2c4fecb558130e900ecaf75 Mon Sep 17 00:00:00 2001 From: tomekkleszcz Date: Mon, 11 Mar 2024 22:52:19 +0100 Subject: [PATCH] fix(air conditioner): return correct cooling threshold temperature when auto mode is enabled --- src/accessories/devices/comfort600.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/accessories/devices/comfort600.ts b/src/accessories/devices/comfort600.ts index 99c68e0..822fa8e 100644 --- a/src/accessories/devices/comfort600.ts +++ b/src/accessories/devices/comfort600.ts @@ -403,6 +403,10 @@ export class Comfort600 extends ElectroluxAccessoryController { } async getCoolingThresholdTemperature(): Promise { + if (this.appliance.properties.reported.mode === 'auto') { + return 32; + } + return this.appliance.properties.reported.targetTemperatureC; } @@ -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':