فهرست منبع

Add support for Carro humidifier

Issue #1411
Jason Rumney 2 سال پیش
والد
کامیت
8ff802288d
3فایلهای تغییر یافته به همراه101 افزوده شده و 0 حذف شده
  1. 1 0
      ACKNOWLEDGEMENTS.md
  2. 1 0
      DEVICES.md
  3. 99 0
      custom_components/tuya_local/devices/carro_ves1011_humidifier.yaml

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -468,3 +468,4 @@ Further device support has been made with the assistance of users. Please consid
 - [debdalerichard](https://github.com/debdalerichard) for assisting with support for Weekett kettles.
 - [debdalerichard](https://github.com/debdalerichard) for assisting with support for Weekett kettles.
 - [GreenSkol](https://github.com/GreenSkol) for contributing support for ETOP FCU thermostats.
 - [GreenSkol](https://github.com/GreenSkol) for contributing support for ETOP FCU thermostats.
 - [drewpo28](https://github.com/drewpo28) for contributing support for WeatheerStation Pro
 - [drewpo28](https://github.com/drewpo28) for contributing support for WeatheerStation Pro
+- [ninjajim17](https://github.com/ninjajim17) for assisting with support for Carro humidifiers.

+ 1 - 0
DEVICES.md

@@ -260,6 +260,7 @@
 
 
 - BlitzWolf BW-SH2 humidifier
 - BlitzWolf BW-SH2 humidifier
 - BlitzWolf BW-SH5 humidifier
 - BlitzWolf BW-SH5 humidifier
+- Carro VES1011 humidifier
 - CleanAir 605B humidifier
 - CleanAir 605B humidifier
 - Eanons QT-JS2014 purifying humidifier
 - Eanons QT-JS2014 purifying humidifier
 - Inkbird IHC-200 humidity controller
 - Inkbird IHC-200 humidity controller

+ 99 - 0
custom_components/tuya_local/devices/carro_ves1011_humidifier.yaml

@@ -0,0 +1,99 @@
+name: Humidifier
+products:
+  - id: g5wedazavod2wg3h
+    name: Carro VES1011
+primary_entity:
+  entity: humidifier
+  class: humidifier
+  dps:
+    - id: 1
+      name: switch
+      type: boolean
+    - id: 13
+      name: humidity
+      type: integer
+      range:
+        min: 40
+        max: 90
+    - id: 14
+      name: current_humidity
+      type: integer
+secondary_entities:
+  - entity: fan
+    dps:
+      - id: 2
+        type: boolean
+        name: switch
+      - id: 23
+        type: string
+        name: speed
+        mapping:
+          - dps_val: level_1
+            value: 33
+          - dps_val: level_2
+            value: 67
+          - dps_val: level_3
+            value: 100
+  - entity: light
+    category: config
+    dps:
+      - id: 5
+        name: switch
+        type: boolean
+  - entity: switch
+    name: Sleep
+    icon: "mdi:power-sleep"
+    category: config
+    dps:
+      - id: 16
+        type: boolean
+        name: switch
+        optional: true
+        mapping:
+          - dps_val: null
+            value: false
+            hidden: true
+  - entity: select
+    name: Timer
+    icon: "mdi:timer"
+    category: config
+    dps:
+      - id: 19
+        name: countdown_set
+        type: string
+        mapping:
+          - dps_val: cancel
+            value: "Off"
+          - dps_val: 1h
+            value: 1 hour
+          - dps_val: 2h
+            value: 2 hours
+          - dps_val: 3h
+            value: 3 hours
+          - dps_val: 4h
+            value: 4 hours
+          - dps_val: 5h
+            value: 5 hours
+          - dps_val: 6h
+            value: 6 hours
+          - dps_val: 7h
+            value: 7 hours
+          - dps_val: 8h
+            value: 8 hours
+          - dps_val: 9h
+            value: 9 hours
+  - entity: binary_sensor
+    name: Tank empty
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 22
+        type: bitfield
+        name: sensor
+        mapping:
+          - dps_val: 0
+            value: false
+          - value: true
+      - id: 22
+        name: fault_code
+        type: bitfield