Browse Source

fix(smartmi_air_circulator): fix preset mapping, and use full range speed

Issue #6416
Jason Rumney 2 days ago
parent
commit
6957140735

+ 15 - 3
custom_components/tuya_local/devices/smartmi_air_circulator_fan.yaml

@@ -27,12 +27,24 @@ entities:
             value: normal
             value: normal
           - dps_val: nature
           - dps_val: nature
             value: nature
             value: nature
-          - dps_val: smart
+          - dps_val: temp
             value: smart
             value: smart
-
-      - id: 3
+      - id: 107
         name: speed
         name: speed
         type: integer
         type: integer
+        optional: true
+        range:
+          min: 1
+          max: 100
+        mapping:
+          - dps_val: null
+            value_redirect: lowres_speed
+            range:
+              min: 1
+              max: 4
+      - id: 3
+        name: lowres_speed
+        type: integer
         range:
         range:
           min: 1
           min: 1
           max: 4
           max: 4