Selaa lähdekoodia

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 7 kuukautta sitten
vanhempi
commit
cdbe25bfb3

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

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