Преглед изворни кода

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 месеци
родитељ
комит
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"
                 dps_val: "0"
               - value: heat
               - value: heat
                 dps_val: "1"
                 dps_val: "1"
+                available: support_heat
               - value: dry
               - value: dry
                 dps_val: "2"
                 dps_val: "2"
               - value: fan_only
               - value: fan_only
                 dps_val: "3"
                 dps_val: "3"
               - value: heat_cool
               - value: heat_cool
                 dps_val: "4"  # Listed as ECO
                 dps_val: "4"  # Listed as ECO
+                available: support_eco
       - id: 2
       - id: 2
         type: integer
         type: integer
         name: temperature
         name: temperature
@@ -107,6 +109,23 @@ entities:
             value: NPE cooling
             value: NPE cooling
           - dps_val: "5"
           - dps_val: "5"
             value: NPE heating and cooling
             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
   - entity: binary_sensor
     class: problem
     class: problem
     category: diagnostic
     category: diagnostic