Jelajahi Sumber

New device: Calex Flame Diffuser (#6278)

This PR adds device support for Calex Flame Diffuser. Datapoints were
gathered from Tuya Developer Platform. Tested and verified against the
device.

---------

Co-authored-by: Jason Rumney <make-all@users.noreply.github.com>
Ville Viljanen 10 jam lalu
induk
melakukan
cfc3f339a7
1 mengubah file dengan 101 tambahan dan 0 penghapusan
  1. 101 0
      custom_components/tuya_local/devices/calex_flame_diffuser.yaml

+ 101 - 0
custom_components/tuya_local/devices/calex_flame_diffuser.yaml

@@ -0,0 +1,101 @@
+name: Aroma diffuser
+products:
+  - id: jwusuabpzoyjpaxu
+    manufacturer: Calex
+    model: Flame Diffuser
+entities:
+  - entity: fan
+    translation_key: aroma_diffuser
+    dps:
+      - id: 1
+        name: switch
+        type: boolean
+      - id: 3
+        name: speed
+        type: string
+        mapping:
+          - dps_val: large
+            value: 100
+          - dps_val: middle
+            value: 66
+          - dps_val: small
+            value: 33
+  - entity: switch
+    name: Spray
+    class: switch
+    category: config
+    dps:
+      - id: 2
+        name: switch
+        type: boolean
+  - entity: light
+    translation_key: flame
+    dps:
+      - id: 7
+        name: switch
+        type: boolean
+      - id: 8
+        name: brightness
+        type: integer
+        optional: true
+        range:
+          min: 0
+          max: 1000
+  - entity: light
+    translation_key: backlight
+    dps:
+      - id: 102
+        name: switch
+        type: boolean
+  - entity: select
+    translation_key: timer
+    category: config
+    dps:
+      - id: 4
+        name: option
+        type: string
+        mapping:
+          - dps_val: cancel
+            value: cancel
+          - dps_val: 1h
+            value: "1"
+          - dps_val: 2h
+            value: "2"
+          - dps_val: 3h
+            value: "3"
+          - dps_val: 4h
+            value: "4"
+          - dps_val: 5h
+            value: "5"
+          - dps_val: 6h
+            value: "6"
+  - entity: sensor
+    translation_key: time_remaining
+    class: duration
+    category: diagnostic
+    dps:
+      - id: 5
+        type: integer
+        name: sensor
+        unit: min
+  - entity: switch
+    name: Filter reminder
+    category: config
+    dps:
+      - id: 101
+        name: switch
+        type: boolean
+  - entity: binary_sensor
+    translation_key: problem
+    category: diagnostic
+    dps:
+      - id: 11
+        name: sensor
+        type: bitfield
+        mapping:
+          - dps_val: 0
+            value: false
+          - value: true
+      - id: 11
+        name: fault_code
+        type: bitfield