Samuel Myers 2 лет назад
Родитель
Сommit
826223862e
1 измененных файлов с 109 добавлено и 0 удалено
  1. 109 0
      custom_components/tuya_local/devices/kogan_kablfan1csa_fan.yaml

+ 109 - 0
custom_components/tuya_local/devices/kogan_kablfan1csa_fan.yaml

@@ -0,0 +1,109 @@
+name: Kogan Smarterhome Bladeless Purifier Fan
+products:
+  - id: kablfan1csa
+primary_entity:
+  entity: fan
+  dps:
+    - id: 1
+      type: boolean
+      name: switch
+    - id: 2
+      type: string
+      name: speed
+      mapping:
+        - dps_val: "1"
+          value: 11
+          step: 11
+        - dps_val: "2"
+          value: 22
+          step: 11
+        - dps_val: "3"
+          value: 33
+          step: 11
+        - dps_val: "4"
+          value: 44
+          step: 11
+        - dps_val: "5"
+          value: 55
+          step: 11
+        - dps_val: "6"
+          value: 66
+          step: 11
+        - dps_val: "7"
+          value: 77
+          step: 11
+        - dps_val: "8"
+          value: 88
+          step: 11
+        - dps_val: "9"
+          value: 100
+          step: 12
+    - id: 4
+      name: preset_mode
+      type: string
+      mapping:
+        - dps_val: close
+          value: "off"
+        - dps_val: sleep
+          value: Sleep
+        - dps_val: fresh
+          value: Nature
+        - dps_val: heavy
+          value: Boost
+    - id: 8
+      type: boolean
+      name: oscillate
+    - id: 13
+      name: fault_code
+      type: bitfield
+secondary_entities:
+  - entity: switch
+    name: Sound
+    icon: "mdi:volume-high"
+    category: config
+    dps:
+      - id: 102
+        type: boolean
+        name: switch
+  - entity: binary_sensor
+    name: Fault
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 13
+        type: bitfield
+        name: sensor
+        mapping:
+          - dps_val: 0
+            value: false
+          - value: true
+  - entity: select
+    name: Timer
+    icon: "mdi:timer"
+    category: config
+    dps:
+      - id: 11
+        type: string
+        name: option
+        mapping:
+          - dps_val: "0"
+            value: "Off"
+          - dps_val: "1"
+            value: "1 hour"
+          - dps_val: "2"
+            value: "2 hours"
+          - dps_val: "3"
+            value: "3 hours"
+          - dps_val: "4"
+            value: "4 hours"
+          - dps_val: "5"
+            value: "5 hours"
+          - dps_val: "6"
+            value: "6 hours"
+          - dps_val: "7"
+            value: "7 hours"
+          - dps_val: "8"
+            value: "8 hours"
+            
+            
+