Sfoglia il codice sorgente

Add files via upload

Felicity 7 mesi fa
parent
commit
87c63b39a5

+ 53 - 0
custom_components/tuya_local/devices/princess_tower_fan.yaml

@@ -0,0 +1,53 @@
+name: Tower fan
+products:
+  - id: bknpvtphln5e07oj
+    name: Princess Smart Tower Fan
+    manufacturer: Princess
+    model: 358225_358230_358275_358280 # 4 models
+entities:
+  - 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: normal
+            value: normal
+          - dps_val: nature
+            value: nature
+          - dps_val: sleep
+            value: sleep
+      - id: 3
+        type: string
+        name: speed
+        mapping:
+          - dps_val: "1"
+            value: 33
+          - dps_val: "2"
+            value: 66
+          - dps_val: "3"
+            value: 100
+      - id: 4
+        type: string
+        name: oscillate
+        mapping:
+          - dps_val: "auto"
+            value: true
+          - dps_val: "off"
+            value: false
+  - entity: number
+    translation_key: timer
+    class: duration
+    category: config
+    dps:
+      - id: 6
+        type: integer
+        name: value
+        unit: h
+        range:
+          min: 0
+          max: 8