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

Add support for Duux Whisper Flex fans

Issue #989
Jason Rumney 2 лет назад
Родитель
Сommit
2fd5b6e945
3 измененных файлов с 146 добавлено и 0 удалено
  1. 1 0
      ACKNOWLEDGEMENTS.md
  2. 1 0
      DEVICES.md
  3. 144 0
      custom_components/tuya_local/devices/duux_whisper_fan.yaml

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -340,3 +340,4 @@ Further device support has been made with the assistance of users.  Please consi
 - [davidsch1992](https://github.com/davidsch1992) for contributing support for Lyfco OL-A0012 air conditioners.
 - [davidsch1992](https://github.com/davidsch1992) for contributing support for Lyfco OL-A0012 air conditioners.
 - [lhassel](https://github.com/lhassel) for assisting with support for a variant of Inkbird iBBQ-4T thermometers with measurements combined into a single dp similar to IBS-M1S.
 - [lhassel](https://github.com/lhassel) for assisting with support for a variant of Inkbird iBBQ-4T thermometers with measurements combined into a single dp similar to IBS-M1S.
 - [SergioFuchs](https://github.com/SergioFuchs) for assisting with support for Moes star projector.
 - [SergioFuchs](https://github.com/SergioFuchs) for assisting with support for Moes star projector.
+- [Batav93](https://github.com/Batav93) for assisting with support for Duux Whisper Flex fans.

+ 1 - 0
DEVICES.md

@@ -127,6 +127,7 @@
 - Carro PN-04F02D fan with dimmable light
 - Carro PN-04F02D fan with dimmable light
 - Chanfok ceiling fan with cool/warm white dimmable light
 - Chanfok ceiling fan with cool/warm white dimmable light
 - Deta fan controller
 - Deta fan controller
+- Duux Whisper Flex pedestal fan
 - Fanco Eco Silent Deluxe ceiling fan with LED light
 - Fanco Eco Silent Deluxe ceiling fan with LED light
 - Goldair GCPF315 fan
 - Goldair GCPF315 fan
 - Goldair Platinum tower fan (2 variants)
 - Goldair Platinum tower fan (2 variants)

+ 144 - 0
custom_components/tuya_local/devices/duux_whisper_fan.yaml

@@ -0,0 +1,144 @@
+name: Pedestal fan
+products:
+  - id: dune79w7bsu6dg3e
+    name: Duux Whisper Flex
+primary_entity:
+  entity: fan
+  translation_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: string
+      name: speed
+      mapping:
+        - dps_val: "1"
+          value: 4
+        - dps_val: "2"
+          value: 8
+        - dps_val: "3"
+          value: 12
+        - dps_val: "4"
+          value: 15
+        - dps_val: "5"
+          value: 19
+        - dps_val: "6"
+          value: 23
+        - dps_val: "7"
+          value: 27
+        - dps_val: "8"
+          value: 31
+        - dps_val: "9"
+          value: 35
+        - dps_val: "10"
+          value: 38
+        - dps_val: "11"
+          value: 42
+        - dps_val: "12"
+          value: 46
+        - dps_val: "13"
+          value: 50
+        - dps_val: "14"
+          value: 54
+        - dps_val: "15"
+          value: 58
+        - dps_val: "16"
+          value: 62
+        - dps_val: "17"
+          value: 65
+        - dps_val: "18"
+          value: 69
+        - dps_val: "19"
+          value: 73
+        - dps_val: "20"
+          value: 77
+        - dps_val: "21"
+          value: 81
+        - dps_val: "22"
+          value: 85
+        - dps_val: "23"
+          value: 88
+        - dps_val: "24"
+          value: 92
+        - dps_val: "25"
+          value: 96
+        - dps_val: "26"
+          value: 100
+    - id: 4
+      type: string
+      name: oscillate
+      mapping:
+        - dps_val: "1"
+          value: true
+        - dps_val: "0"
+          value: false
+secondary_entities:
+  - 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: select
+    name: Timer
+    icon: "mdi: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"
+  - entity: sensor
+    name: Time remaining
+    class: duration
+    category: diagnostic
+    dps:
+      - id: 7
+        type: integer
+        name: sensor
+        unit: h
+        optional: true
+