Bläddra i källkod

fix (vaco_mobyblue_heatpump): device does not support multiplexing

Device only seems to support setting one dp at a time. Although the latest
verstion of tinytuya is supposed to detect and workaround this, it does not
appear to be working for this device.
So separate out the power switch from climate hvac_mode.

Issue #3729
Jason Rumney 9 månader sedan
förälder
incheckning
cdbe25bfb3
1 ändrade filer med 18 tillägg och 22 borttagningar
  1. 18 22
      custom_components/tuya_local/devices/vaco_mobyblue_heatpump.yaml

+ 18 - 22
custom_components/tuya_local/devices/vaco_mobyblue_heatpump.yaml

@@ -5,29 +5,29 @@ products:
     model_id: AC-WBR3
     model: Moby Blue 14 / Arrifana 16
 entities:
-  - entity: climate
+  - entity: switch
     dps:
       - id: 1
+        type: boolean
+        name: switch    
+  - entity: climate
+    dps:
+      - id: 4
         name: hvac_mode
         type: boolean
         mapping:
-          - value: "off"
-            dps_val: false
-          - dps_val: true
-            constraint: mode
-            conditions:
-              - value: cool
-                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
+          - value: cool
+            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
@@ -50,10 +50,6 @@ entities:
             conditions:
               - dps_val: f
                 value_redirect: temp_current_f
-      - id: 4
-        type: string
-        name: mode
-        hidden: true
       - id: 5
         type: string
         name: fan_mode