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

Implement support for Storm VSPEC-IV Dual-axis Smart Corner Fan

Liau Jian Jie 8 месяцев назад
Родитель
Сommit
d82f59c8b8

+ 69 - 63
custom_components/tuya_local/devices/point_one_storm_vspec_iv_dual_axis_corner_fan.yaml

@@ -1,91 +1,97 @@
-name: Air cooler
+name: Corner fan
 products:
-  - id: rlphjc5nzs3v5xdt
-    manufacturer: Klarstein
-    model: Skytower Grand Smart
+  - id: lzjzcjqgzwkt6ked
+    manufacturer: Point One Technology
+    model: Storm VSPEC-IV Dual-axis Smart Corner Fan
 entities:
+  - entity: light
+    dps:
+      - id: 108
+        type: boolean
+        name: Switch
+      - id: 22
+        type: integer
+        name: Brightness
+        range:
+          min: 10
+          max: 1000
+      - id: 23
+        type: integer
+        name: Temperature
+        range:
+          min: 0
+          max: 1000
   - entity: fan
-    translation_only_key: fan_with_presets
     dps:
-      - id: 1
-        name: switch
+      - id: 101
         type: boolean
-      - id: 2
-        type: string
-        name: speed
-        mapping:
-          - dps_val: "low"
-            value: 33
-          - dps_val: "mid"
-            value: 66
-          - dps_val: "high"
-            value: 100
-      - id: 3
+        name: Switch
+      - id: 102
         type: string
-        name: preset_mode
+        name: Mode
         mapping:
-          - dps_val: normal
-            value: normal
           - dps_val: nature
             value: nature
           - dps_val: sleep
             value: sleep
-      - id: 10
+          - dps_val: fresh
+            value: fresh
+          - dps_val: strong
+            value: strong
+      - id: 103
+        type: integer
+        name: Speed
+        range:
+          min: 1
+          max: 6
+      - id: 104
+        type: boolean
+        name: Oscillate vertically
+      - id: 105
+        type: boolean
+        name: Oscillate horizontally
+      - id: 107
         type: boolean
-        name: oscillate
+        name: Fan sound
+      - id: 112
+        type: boolean
+        name: Rotate 360°
   - entity: select
     translation_key: timer
     category: config
     dps:
-      - id: 11
+      - id: 109
         type: string
-        name: option
-        optional: true
+        name: Countdown set time
         mapping:
-          - dps_val: close
-            value: cancel
-          - dps_val: "1H"
+          - dps_val: "cancel"
+            value: "cancel"
+          - dps_val: "1h"
             value: "1h"
-          - dps_val: "2H"
+          - dps_val: "2h"
             value: "2h"
-          - dps_val: "3H"
+          - dps_val: "3h"
             value: "3h"
-          - dps_val: "4H"
+          - dps_val: "4h"
             value: "4h"
-          - dps_val: "5H"
+          - dps_val: "5h"
             value: "5h"
-          - dps_val: "6H"
+          - dps_val: "6h"
             value: "6h"
-          - dps_val: "7H"
-            value: "7h"
-          - dps_val: "8H"
-            value: "8h"
-          - dps_val: "9H"
-            value: "9h"
-  - entity: switch
-    name: Humidifier
-    icon: "mdi:air-humidifier"
-    dps:
-      - id: 6
-        type: boolean
-        name: switch
-  - entity: binary_sensor
-    name: Ionizer
-    class: running
-    icon: "mdi:atom"
-    category: diagnostic
-    hidden: true
-    dps:
-      - id: 101
-        type: boolean
-        name: sensor
+      - id: 110
+        type: integer
+        name: countdown_time_left
+        range:
+          min: 0
+          max: 360
   - entity: binary_sensor
-    name: Purifier
-    class: running
-    icon: "mdi:air-purifier"
+    class: problem
     category: diagnostic
-    hidden: true
     dps:
-      - id: 102
-        type: boolean
+      - id: 111
+        type: bitfield
         name: sensor
+        mapping:
+          - dps_val: 0
+            value: false
+          - value: true