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

improvement(vaco_mobyblue_heatpump): disable unavailable modes

Based on the model list, only 2 of 5 models support heating
Based on user feedback, model "5" does not support "Eco".

Issue #3729
Jason Rumney 9 месяцев назад
Родитель
Сommit
c932b3e5f6
1 измененных файлов с 19 добавлено и 0 удалено
  1. 19 0
      custom_components/tuya_local/devices/vaco_mobyblue_heatpump.yaml

+ 19 - 0
custom_components/tuya_local/devices/vaco_mobyblue_heatpump.yaml

@@ -20,12 +20,14 @@ entities:
                 dps_val: "0"
               - value: heat
                 dps_val: "1"
+                available: support_heat
               - value: dry
                 dps_val: "2"
               - value: fan_only
                 dps_val: "3"
               - value: heat_cool
                 dps_val: "4"  # Listed as ECO
+                available: support_eco
       - id: 2
         type: integer
         name: temperature
@@ -107,6 +109,23 @@ entities:
             value: NPE cooling
           - dps_val: "5"
             value: NPE heating and cooling
+      - id: 103
+        type: string
+        name: support_heat
+        mapping:
+          - dps_val: "3"
+            value: true
+          - dps_val: "5"
+            value: true
+          - value: false
+      - id: 103
+        type: string
+        name: support_eco
+        mapping:
+          - dps_val: "5"
+            value: false
+            # only the spec for model 5 is known for sure
+          - value: true
   - entity: binary_sensor
     class: problem
     category: diagnostic