Просмотр исходного кода

Be Cool heatpump: Adjust mode mapping according to observations.

As the local protocol uses integer indexes, while the iot.tuya.com API docs use descriptive strings, the mapping was a guess. It seems the API docs are sorted alphabetically and not corresponding to the order of the indexes.

Issue #207
Jason Rumney 3 лет назад
Родитель
Сommit
651a9fbcad
1 измененных файлов с 6 добавлено и 5 удалено
  1. 6 5
      custom_components/tuya_local/devices/becool_heatpump.yaml

+ 6 - 5
custom_components/tuya_local/devices/becool_heatpump.yaml

@@ -14,13 +14,14 @@ primary_entity:
             - dps_val: "0"
               value: heat_cool
             - dps_val: "1"
-              value: cool
+              value: fan_only
             - dps_val: "2"
-              value: heat
-            - dps_val: "3"
               value: dry
-            - dps_val: "4"
-              value: fan_only
+            - dps_val: "3"
+              value: cool
+            - dps_val: "5"
+              value: heat
+            - value: fan_only
     - id: 4
       type: integer
       name: unknown_4