Bladeren bron

Added support for YX-025WB aroma diffuser

John Doe 1 jaar geleden
bovenliggende
commit
a706282f79
1 gewijzigde bestanden met toevoegingen van 111 en 0 verwijderingen
  1. 111 0
      custom_components/tuya_local/devices/YX-025WB_aroma_diffuser.yaml

+ 111 - 0
custom_components/tuya_local/devices/YX-025WB_aroma_diffuser.yaml

@@ -0,0 +1,111 @@
+name: Aroma diffuser
+products:
+  - id: yishet3p12fvohmd
+    name: Aroma YX-025WB
+primary_entity:
+  entity: fan
+  icon: "mdi:scent"
+  dps:
+    - id: 2
+      name: switch
+      optional: true
+      type: boolean
+      mapping:
+        - dps_val: false
+          icon: "mdi:scent-off"
+        - dps_val: true
+          icon: "mdi:scent"
+    - id: 3
+      type: string
+      optional: true
+      name: preset_mode
+      mapping:
+        - dps_val: small
+        - dps_val: large
+        - dps_val: interval
+secondary_entities:
+  - entity: light
+    icon: "mdi:light-recessed"
+    dps:
+      - id: 7
+        name: switch
+        optional: true
+        type: boolean
+      - id: 9
+        name: color_mode
+        optional: true
+        type: string
+        mapping:
+          - dps_val: colour
+            value: hs
+          - dps_val: colourful1
+            value: Colorful
+      - id: 8
+        name: brightness
+        optional: true
+        type: integer
+        range:
+          min: 0
+          max: 255
+      - id: 10
+        name: rgbhsv
+        optional: true
+        type: hex
+        format:
+          - name: r
+            bytes: 1
+          - name: g
+            bytes: 1
+          - name: b
+            bytes: 1
+          - name: h
+            bytes: 2
+            range:
+              min: 0
+              max: 360
+          - name: s
+            bytes: 1
+            range:
+              min: 0
+              max: 255
+          - name: v
+            bytes: 1
+            range:
+              min: 0
+              max: 255
+  - entity: binary_sensor
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 11
+        type: bitfield
+        name: sensor
+        optional: true
+  - entity: select
+    translation_key: timer
+    category: config
+    dps:
+      - id: 4
+        type: string
+        name: option
+        optional: true
+        mapping:
+          - dps_val: 2h
+            value: "2 hours"
+          - dps_val: 4h
+            value: "4 hours"
+          - dps_val: cancel
+            value: "None"
+  - entity: sensor
+    translation_key: time_remaining
+    class: duration
+    category: diagnostic
+    dps:
+      - id: 5
+        type: integer
+        name: sensor
+        unit: min
+        optional: true
+        range:
+          min: 0
+          max: 360