Browse Source

fix fan speed

latel 2 years ago
parent
commit
5f59e1483a
1 changed files with 11 additions and 3 deletions
  1. 11 3
      custom_components/tuya_local/devices/soleusair_air_purifier.yaml

+ 11 - 3
custom_components/tuya_local/devices/soleusair_air_purifier.yaml

@@ -16,9 +16,17 @@ primary_entity:
     - id: 101
     - id: 101
       type: integer
       type: integer
       name: speed
       name: speed
-      range:
-        min: 1
-        max: 5
+      mapping:
+        - dps_val: 1
+          value: 1
+        - dps_val: 2
+          value: 2
+        - dps_val: 3
+          value: 3
+        - dps_val: 4
+          value: 4
+        - dps_val: 5
+          value: 5
     - id: 3
     - id: 3
       name: preset_mode
       name: preset_mode
       type: string
       type: string