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

Add support for Homebase Oscillating Smart Fan

choppedpork 1 год назад
Родитель
Сommit
1ef06de55c
1 измененных файлов с 70 добавлено и 0 удалено
  1. 70 0
      custom_components/tuya_local/devices/homebase_oscillating_fan.yaml

+ 70 - 0
custom_components/tuya_local/devices/homebase_oscillating_fan.yaml

@@ -0,0 +1,70 @@
+name: Oscillating Smart Fan
+products:
+  - id: rastwarkmv7aa3oo
+    manufacturer: Homebase
+    model: DC FAN XJ-30-5SDC-W # product_name
+    model_id: XJ-35-1SDC # model
+entities:
+  - entity: fan
+    translation_key: fan_with_presets
+    dps:
+      - id: 1
+        name: switch
+        type: boolean
+      - id: 2
+        name: preset_mode
+        type: string
+        mapping:
+          - dps_val: normal
+            value: normal
+          - dps_val: sleep
+            value: sleep
+          - dps_val: nature
+            value: nature
+          - dps_val: smart
+            value: smart
+      - id: 3
+        name: speed
+        type: integer
+        range:
+          min: 1
+          max: 12
+      - id: 5
+        name: oscillate
+        type: boolean
+  - entity: switch
+    name: Vertical oscillation
+    icon: mdi:swap-vertical
+    dps:
+      - id: 4
+        type: boolean
+        name: switch
+  - entity: sensor
+    class: temperature
+    dps:
+      - id: 21
+        type: integer
+        name: sensor
+        unit: C
+        class: measurement
+  - entity: select
+    translation_key: timer
+    dps:
+      - id: 22
+        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