Parcourir la source

Poolex Q7 cleanup: reorder dps

As the preset_mode dp was previously unknown, it was listed late in the list,
even though its number is low.
Jason Rumney il y a 2 ans
Parent
commit
08729a475e
1 fichiers modifiés avec 16 ajouts et 16 suppressions
  1. 16 16
      custom_components/tuya_local/devices/poolex_q7_heatpump.yaml

+ 16 - 16
custom_components/tuya_local/devices/poolex_q7_heatpump.yaml

@@ -51,6 +51,22 @@ primary_entity:
           conditions:
             - dps_val: f
               value_redirect: temp_current_f
+    - id: 4
+      type: string
+      name: preset_mode
+      mapping:
+        - dps_val: Boost_Heat
+          value: quick_heat
+        - dps_val: Silent_Heat
+          value: quiet_heat
+        - dps_val: ECO_Heat
+          value: smart_heat
+        - dps_val: ECO_Cool
+          value: smart_cool
+        - dps_val: Silent_Cool
+          value: quiet_cool
+        - dps_val: Boost_Cool
+          value: quick_cool
     - id: 11
       type: string
       name: hvac_action
@@ -86,22 +102,6 @@ primary_entity:
       name: temp_current_f
       hidden: true
       optional: true
-    - id: 4
-      type: string
-      name: preset_mode
-      mapping:
-        - dps_val: Boost_Heat
-          value: quick_heat
-        - dps_val: Silent_Heat
-          value: quiet_heat
-        - dps_val: ECO_Heat
-          value: smart_heat
-        - dps_val: ECO_Cool
-          value: smart_cool
-        - dps_val: Silent_Cool
-          value: quiet_cool
-        - dps_val: Boost_Cool
-          value: quick_cool
     - id: 21
       type: integer
       name: unknown_21