瀏覽代碼

Swap target temperature and current temperature for Kogan heater

Initial analysis of the heater values was wrong.
This makes it more similar to the Goldstar heater, which makes sense.
Jason Rumney 5 年之前
父節點
當前提交
493b100758
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      custom_components/goldair_climate/kogan_heater/climate.py

+ 4 - 4
custom_components/goldair_climate/kogan_heater/climate.py

@@ -2,8 +2,8 @@
 Kogan WiFi Heater device.
 
 dps:
-  2 = current temperature (integer)
-  3 = target temperature (integer)
+  2 = target temperature (integer)
+  3 = current temperature (integer)
   4 = preset_mode (string Low/High)
   6 = timer state (boolean) [not supported - use HA based timers]
   7 = hvac_mode (boolean)
@@ -28,8 +28,8 @@ PRESET_HIGH = 'HIGH'
 
 PROPERTY_TO_DPS_ID = {
     ATTR_HVAC_MODE: '7',
-    ATTR_TARGET_TEMPERATURE: '3',
-    ATTR_TEMPERATURE: '2',
+    ATTR_TARGET_TEMPERATURE: '2',
+    ATTR_TEMPERATURE: '3',
     ATTR_PRESET_MODE: '4',
 }