فهرست منبع

feat(devices): add Klarstein Icetower Smart fan

Issue #5879
Jason Rumney 1 هفته پیش
والد
کامیت
7395fefc2f
2فایلهای تغییر یافته به همراه94 افزوده شده و 1 حذف شده
  1. 1 1
      DEVICES.md
  2. 93 0
      custom_components/tuya_local/devices/klarstein_icetower_fan.yaml

+ 1 - 1
DEVICES.md

@@ -429,7 +429,7 @@
 - KCvents VT501-W heat recovery ventilation
 - Kendal KVT-Touchtower pedestal fan
 - Klarstein Airfold, Bolero ceiling fans with light
-- Klarstein Icewind Plus, Skyscraper Ice, Skytower Grand cooling fans
+- Klarstein Icetower, Icewind Plus, Skyscraper Ice, Skytower Grand cooling fans
 - Keyun MKCFE002 RGB chandelier fan
 - Kogan bladeless, 3D oscillating and heating fans
 - Ledkia fan and light controller

+ 93 - 0
custom_components/tuya_local/devices/klarstein_icetower_fan.yaml

@@ -0,0 +1,93 @@
+name: Tower fan
+products:
+  - id: fskm5vfjggvuufmx
+    manufacturer: Klarstein
+    model: Icetower Smart
+entities:
+  - entity: fan
+    dps:
+      - id: 1
+        type: boolean
+        name: switch
+      - id: 2
+        type: string
+        name: speed
+        mapping:
+          - dps_val: low
+            value: 33
+          - dps_val: mid
+            value: 67
+          - dps_val: high
+            value: 100
+      - id: 3
+        type: string
+        name: preset_mode
+        mapping:
+          - dps_val: sleep
+            value: sleep
+          - dps_val: ordinary
+            value: normal
+          - dps_val: nature
+            value: nature
+      - id: 10
+        type: boolean
+        name: oscillate
+  - entity: switch
+    name: Cool
+    category: config
+    hidden: unavailable
+    dps:
+      - id: 6
+        type: boolean
+        optional: true
+        name: switch
+      - id: 6
+        type: boolean
+        optional: true
+        name: available
+        mapping:
+          - dps_val: null
+            value: false
+          - value: true
+  - entity: sensor
+    class: temperature
+    dps:
+      - id: 8
+        type: integer
+        name: sensor
+        unit: C
+        class: measurement
+  - entity: select
+    translation_key: timer
+    category: config
+    dps:
+      - id: 11
+        type: string
+        name: option
+        mapping:
+          - dps_val: cancel
+            value: cancel
+          - dps_val: "1h"
+            value: "1h"
+          - dps_val: "2h"
+            value: "2h"
+          - dps_val: "3h"
+            value: "3h"
+          - dps_val: "4h"
+            value: "4h"
+          - dps_val: "5h"
+            value: "5h"
+          - dps_val: "6h"
+            value: "6h"
+          - dps_val: "7h"
+            value: "7h"
+          - dps_val: "8h"
+            value: "8h"
+          - dps_val: "9h"
+            value: "9h"
+          - dps_val: "10h"
+            value: "10h"
+          - dps_val: "11h"
+            value: "11h"
+          - dps_val: "12h"
+            value: "12h"