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

Add support for Hiper T3 bladeless fan

Issue #1283
Jason Rumney 2 лет назад
Родитель
Сommit
4a22c90411
3 измененных файлов с 115 добавлено и 0 удалено
  1. 1 0
      ACKNOWLEDGEMENTS.md
  2. 1 0
      DEVICES.md
  3. 113 0
      custom_components/tuya_local/devices/hiper_bladeless_fan.yaml

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -432,3 +432,4 @@ Further device support has been made with the assistance of users.  Please consi
 - [magomao](https://github.com/magomao) for assisting with support for Vivion air conditioners.
 - [palkoarpad85](https://github.com/palkoarpad85) for assisting with support for Klarstein Wonderwall heaters.
 - [MJW911](https://github.com/MJW911) for assisting with support for SX1 smartplugs.
+- [ops244](https://github.com/ops244) for assisting with support for Hiper T3 bladeless fans.

+ 1 - 0
DEVICES.md

@@ -164,6 +164,7 @@
 - Fanco Eco Silent Deluxe ceiling fan with LED light
 - Goldair GCPF315 fan
 - Goldair Platinum tower fan (2 variants)
+- Hiper T3 bladeless fan
 - HYD WeAir Plus bladeless fan with heating function
 - Immax Neo Lite Vento ceiling fan with light
 - Ledkia fan and light controller

+ 113 - 0
custom_components/tuya_local/devices/hiper_bladeless_fan.yaml

@@ -0,0 +1,113 @@
+name: Bladeless fan
+products:
+  - id: u4uqz3dlvplyhyde
+    name: Hiper T3
+primary_entity:
+  entity: fan
+  translation_key: fan_with_presets
+  dps:
+    - id: 1
+      name: switch
+      type: boolean
+    - id: 2
+      name: speed
+      type: string
+      mapping:
+        - dps_val: "1"
+          value: 11
+        - dps_val: "2"
+          value: 22
+        - dps_val: "3"
+          value: 33
+        - dps_val: "4"
+          value: 44
+        - dps_val: "5"
+          value: 56
+        - dps_val: "6"
+          value: 67
+        - dps_val: "7"
+          value: 78
+        - dps_val: "8"
+          value: 89
+        - dps_val: "9"
+          value: 100
+    - id: 3
+      name: preset_mode
+      type: string
+      mapping:
+        - dps_val: sleep
+          value: sleep
+        - dps_val: heavy
+          value: strong
+        - dps_val: fresh
+          value: fresh
+        - dps_val: close
+          value: "off"
+    - id: 8
+      name: oscillate
+      type: boolean
+    - id: 13
+      name: fault_code
+      type: bitfield
+secondary_entities:
+  - entity: select
+    name: Timer
+    icon: "mdi:timer"
+    category: config
+    dps:
+      - id: 11
+        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"
+  - entity: sensor
+    name: Time remaining
+    class: duration
+    category: diagnostic
+    dps:
+      - id: 12
+        type: integer
+        name: sensor
+        unit: min
+  - entity: binary_sensor
+    name: Fault
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 13
+        type: bitfield
+        name: sensor
+        mapping:
+          - dps_val: 0
+            value: false
+          - value: true
+  - entity: light
+    dps:
+      - id: 101
+        type: boolean
+        name: switch
+  - entity: switch
+    name: Sound
+    icon: "mdi:volume-high"
+    category: config
+    dps:
+      - id: 102
+        type: boolean
+        name: switch