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

Add experimental Lexy F501 fan support.

Add a config file based on info from issue #34
Jason Rumney 4 лет назад
Родитель
Сommit
ab8301e8a0
1 измененных файлов с 65 добавлено и 0 удалено
  1. 65 0
      custom_components/tuya_local/devices/lexy_f501_fan.yaml

+ 65 - 0
custom_components/tuya_local/devices/lexy_f501_fan.yaml

@@ -0,0 +1,65 @@
+name: LEXY F501 fan
+primary_entity:
+  entity: fan
+  dps:
+    - id: 1
+      name: switch
+      type: boolean
+    - id: 2
+      name: preset_mode
+      type: string
+      mapping:
+        - dps_val: "forestwindhigh"
+          value: Forest High
+        - dps_val: "forestwindlow"
+          value: Forest Low
+        - dps_val: "sleepwindlow"
+          value: Sleep Low
+        - dps_val: "sleepwindhigh"
+          value: Sleep High
+    - id: 4
+      name: oscillate
+      type: string
+      mapping:
+        - dps_val: "off"
+          value: false
+        - dps_val: "30"
+          value: true
+        - dps_val: "60"
+          value: true
+        - dps_val: "90"
+          value: true
+        - dps_val: "360+"
+          value: true
+        - dps_val: "360-"
+          value: true
+    - id: 6
+      name: timer
+      type: integer
+    - id: 102
+      name: speed
+      type: integer
+      range:
+        min: 1
+        max: 15
+      mapping:
+        - scale: 0.15
+secondary_entities:
+  - entity: light
+    name: Light
+    dps:
+      - id: 9
+        name: switch
+        type: boolean
+  - entity: lock
+    name: Child Lock
+    dps:
+      - id: 16
+        name: lock
+        type: boolean
+  - entity: switch
+    name: Sound
+    dps:
+      - id: 17
+        name: switch
+        type: boolean