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

Add Duux Whisper Flex (ultimate) fan to devices

Julius van der Vaart 1 год назад
Родитель
Сommit
fe859e0736

+ 97 - 0
custom_components/tuya_local/devices/duux_whisper_flex_ultimate_fan.yaml

@@ -0,0 +1,97 @@
+name: Portable Fan
+products:
+  - id: cjsa4k7tqbpuyq3l
+    name: Duux Whisper Flex Ultimate
+primary_entity:
+  entity: fan
+  translation_only_key: fan_with_presets
+  dps:
+    - id: 1
+      type: boolean
+      name: switch
+    - id: 2
+      type: string
+      name: preset_mode
+      mapping:
+        - dps_val: "0"
+          value: normal
+        - dps_val: "1"
+          value: nature
+        - dps_val: "2"
+          value: sleep
+    - id: 3
+      type: integer
+      name: speed
+      mapping:
+        - scale: 0.3
+secondary_entities:
+  - entity: switch
+    name: Horizontal oscillation
+    category: config
+    dps:
+      - id: 4
+        type: string
+        name: switch
+        mapping:
+          - dps_val: "0"
+            value: false
+          - dps_val: "1"
+            value: true      
+  - entity: switch
+    name: Vertical oscillation
+    category: config
+    dps:
+      - id: 5
+        type: string
+        name: switch
+        mapping:
+          - dps_val: "0"
+            value: false
+          - dps_val: "1"
+            value: true
+  - entity: climate
+    name: Temperature
+    category: config
+    dps:
+      - id: 20
+        type: integer
+        name: temperature
+        unit: C
+        range:
+          min: 17
+          max: 28
+  - entity: select
+    name: Timer
+    category: config
+    dps:
+      - id: 6
+        type: string
+        name: option
+        mapping:
+          - dps_val: "0"
+            value: "Off"
+          - dps_val: "1"
+            value: "1 hour"
+          - dps_val: "2"
+            value: "2 hours"
+          - dps_val: "3"
+            value: "3 hours"
+          - dps_val: "4"
+            value: "4 hours"
+          - dps_val: "5"
+            value: "5 hours"
+          - dps_val: "6"
+            value: "6 hours"
+          - dps_val: "7"
+            value: "7 hours"
+          - dps_val: "8"
+            value: "8 hours"
+          - dps_val: "9"
+            value: "9 hours"
+          - dps_val: "10"
+            value: "10 hours"
+          - dps_val: "11"
+            value: "11 hours"
+          - dps_val: "12"
+            value: "12 hours"
+