Просмотр исходного кода

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

Issue #6416
Jason Rumney 2 дней назад
Родитель
Сommit
6957140735
1 измененных файлов с 15 добавлено и 3 удалено
  1. 15 3
      custom_components/tuya_local/devices/smartmi_air_circulator_fan.yaml

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

@@ -27,12 +27,24 @@ entities:
             value: normal
           - dps_val: nature
             value: nature
-          - dps_val: smart
+          - dps_val: temp
             value: smart
-
-      - id: 3
+      - id: 107
         name: speed
         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:
           min: 1
           max: 4