Ver Fonte

Add support for BlitzWolf BW-SH2 humidifier

Issue #410
Jason Rumney há 3 anos atrás
pai
commit
72887c41cc

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -194,3 +194,4 @@ Further device support has been made with the assistance of users.  Please consi
 - [drudgebg](https://github.com/drudgebg) for contributing support for Teckin SS42 outdoor double smartplug.
 - [saotthon](https://github.com/saotthon) for assisting with support for BVF CP1 heaters.
 - [MarciPain](https://github.com/MarciPain) for contributing support for PGST temperature and humidity sensors and Orion OWH-PTC2000 heaters.
+- [fischrobi](https://github.com/fischrobi) for assisting with support for Blitzwolf BW-SH2 humidifiers.

+ 2 - 1
DEVICES.md

@@ -149,7 +149,8 @@
 
 ### Humidifiers
 
-- BlitzWolf BWSH5 humidifier
+- BlitzWolf BW-SH2 humidifier
+- BlitzWolf BW-SH5 humidifier
 - Eanons QT-JS2014 purifying humidifier
 - Kyvol EA200 humidifier
 - Stadler Eva humidifier

+ 80 - 0
custom_components/tuya_local/devices/blitzwolf_bwsh2-humidifier.yaml

@@ -0,0 +1,80 @@
+# sample DPS {'1': False, '3': 'grade1', '6': 'close', 19: 'cancel'} 
+name: BlitzWolf BWSH2 humidifier
+products: 
+  - id: 20268362d8bfc0080ec9
+primary_entity:
+  entity: fan
+  icon: "mdi:humidifier"
+  dps:
+    - id: 1
+      name: switch
+      type: boolean
+    - id: 3
+      name: speed
+      type: string
+      mapping:
+        - dps_val: sleep
+          value: 10
+        - dps_val: grade1
+          value: 25
+        - dps_val: grade2
+          value: 40
+        - dps_val: grade3
+          value: 55
+        - dps_val: grade4
+          value: 70
+        - dps_val: grade5
+          value: 85
+        - dps_val: grade6
+          value: 100
+secondary_entities:
+  - entity: select
+    name: Light
+    icon: "mdi:lightbulb"
+    category: config
+    dps:
+      - id: 6
+        type: string
+        name: option
+        mapping:
+          - dps_val: close
+            value: "Off"
+          - dps_val: purple
+            value: Purple
+          - dps_val: blue
+            value: Blue
+          - dps_val: cyan
+            value: Cyan
+          - dps_val: green
+            value: Green
+          - dps_val: yellow
+            value: Yellow
+          - dps_val: orange
+            value: Orange
+          - dps_val: red
+            value: Red
+          - dps_val: colour
+            value: Colorful
+  - entity: select
+    name: Timer
+    icon: "mdi:timer"
+    category: config
+    dps:
+      - id: 19
+        type: string
+        name: option
+        mapping:
+          - dps_val: cancel 
+            value: "Off"
+          - dps_val: "2h"
+            value: "2 hours"
+          - dps_val: "4h"
+            value: "4 hours"
+          - dps_val: "6h"
+            value: "6 hours"
+          - dps_val: "8h"
+            value: "8 hours"
+          - dps_val: "10h"
+            value: "10 hours"
+          - dps_val: "12h"
+            value: "12 hours"