Browse Source

Add support for BlitzHome BH-CDW1 Dishwasher (#3900)

* Support for BlitzHome BH-CDW1 Dishwasher

- use buttons for start and pause, following Etna and Klarstein dishwashers
- use same mode names where possible as Etna and Klarstein dishwashers pending future translations

PR #3900

---------

Co-authored-by: Jason Rumney <make-all@users.noreply.github.com>
barneybastelt 3 tháng trước cách đây
mục cha
commit
04a787696f

+ 50 - 0
custom_components/tuya_local/devices/blitzhome_bhcdw1_dishwasher.yaml

@@ -0,0 +1,50 @@
+name: Dishwasher
+products:
+  - id: fcsbxgao03zmzqiu
+    manufacturer: BlitzHome
+    model: BH-CDW1
+entities:
+  - entity: switch
+    icon: "mdi:dishwasher"
+    dps:
+      - id: 1
+        type: boolean
+        name: switch
+  - entity: button
+    name: Start
+    icon: "mdi:play"
+    dps:
+      - id: 2
+        type: boolean
+        name: button
+  - entity: button
+    name: Pause
+    icon: "mdi:pause"
+    dps:
+      - id: 2
+        type: boolean
+        name: button
+        mapping:
+          - dps_val: true
+            value: false
+          - dps_val: false
+            value: true
+  - entity: select
+    name: Mode
+    icon: "mdi:dishwasher"
+    category: config
+    dps:
+      - id: 6
+        type: string
+        name: option
+        mapping:
+          - dps_val: biaozhun
+            value: universal
+          - dps_val: chaokuai
+            value: rapid
+          - dps_val: jieneng
+            value: eco
+          - dps_val: qiangli
+            value: intensive
+          - dps_val: guoxian
+            value: fruit