ckuburlis / homebridge-tado

16 stars 15 forks source link

Changing the temperature resets the mode #22

Closed nicktmro closed 7 years ago

nicktmro commented 7 years ago

Description: Changing the Temperature resets the mode to HEAT.

Environment: TEST branch

Steps to reproduce:

  1. Check that the Smart AC is in Heating mode
  2. Using the Home app, change the mode to Cooling
  3. Tap the Temp button and adjust the temperature down

Expected result: AC Unit to switch to COOL mode and the new Temperature

Actual result undoes the Mode change (from COOL back to HEAT - confirmed via the Tado app as well):

[1/24/2017, 3:00:39 PM] [Tado] Force cooling
[1/24/2017, 3:00:39 PM] [Tado] Setting new overlay
[1/24/2017, 3:00:39 PM] [Tado] zone: 1,  body: {"termination":{"type":"MANUAL"},"setting":{"power":"ON","type":"AIR_CONDITIONING","mode":"COOL","temperature":{"celsius":21},"fanSpeed":"AUTO"}}
[1/24/2017, 3:00:41 PM] [Tado] Set target temperature to 20º
[1/24/2017, 3:00:41 PM] [Tado] last Mode: HEAT
[1/24/2017, 3:00:41 PM] [Tado] Setting new overlay
[1/24/2017, 3:00:41 PM] [Tado] zone: 1,  body: {"termination":{"type":"MANUAL"},"setting":{"power":"ON","type":"AIR_CONDITIONING","mode":"HEAT","temperature":{"celsius":20},"fanSpeed":"AUTO"}}
nitaybz commented 7 years ago

Fixed in the last branch update... let me know that it works well on your side so I can close the issue and update the master branch.

nicktmro commented 7 years ago

@nitaybz I can confirm that the fix works. Thanks for looking into this.