Răsfoiți Sursa

Goldair portable airconditioner

Improve swing availability logic

PR #2567
Jason Rumney 1 an în urmă
părinte
comite
38e34f647e

+ 9 - 2
custom_components/tuya_local/goldair_portable_airconditioner.yaml

@@ -94,6 +94,13 @@ primary_entity:
         - dps_val: 2
           value: true
         - value: false
+    - id: 109
+      type: bitfield
+      name: support_bothswing
+      mapping:
+        - dps_val: 3
+          value: true
+        - value: false
     - id: 109
       type: bitfield
       name: support_heat
@@ -126,10 +133,10 @@ primary_entity:
           conditions:
             - dps_val: "on"
               value: both
-              available: support_vswing
+              available: support_bothswing
             - dps_val: "off"
               value: horizontal
-              available: support_vswing
+              available: support_bothswing
         - dps_val: false
           value: "off"
           constraint: swing_1