Просмотр исходного кода

Add support for Shinco 30D dehumidifier

Issue #509
Jason Rumney 2 лет назад
Родитель
Сommit
c4a7ddba71
3 измененных файлов с 172 добавлено и 0 удалено
  1. 1 0
      ACKNOWLEDGEMENTS.md
  2. 1 0
      DEVICES.md
  3. 170 0
      custom_components/tuya_local/devices/shinco_30d_dehumidifier.yaml

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -209,3 +209,4 @@ Further device support has been made with the assistance of users.  Please consi
 - [pasqualehun](https://github/com/pasqualehun) for contributing support for ZX-G30 alarm systems.
 - [maksmink](https://github.com/maksmink) for assisting with support for Eurom Mon Soleil 800 heaters (different again than the two 600 models already supported).
 - [nijel](https://github.com/nijel) for assisting with support for WHM-04 doorbells.
+- [shiner66](https://github.com/shiner66) for assisting with support for Shinco 30D dehumidifier.

+ 1 - 0
DEVICES.md

@@ -148,6 +148,7 @@
 - JJPro JPD02 dehumidifier
 - Klarstein DryFy Pro Connect dehumidifier
 - Kogan SmarterHome 7L desiccant dehumidifier
+- Shinco 30D dehumidifier
 
 ### Humidifiers
 

+ 170 - 0
custom_components/tuya_local/devices/shinco_30d_dehumidifier.yaml

@@ -0,0 +1,170 @@
+name: Shinco dehumidifier
+primary_entity:
+  entity: humidifier
+  class: dehumidifier
+  dps:
+    - id: 1
+      type: boolean
+      name: switch
+    - id: 2
+      type: string
+      name: mode
+      mapping:
+        - dps_val: "0"
+          value: Continuous
+        - dps_val: "1"
+          value: Auto
+    - id: 4
+      type: integer
+      name: humidity
+      range:
+        min: 25
+        max: 80
+    - id: 11
+      type: bitfield
+      name: fault_code
+secondary_entites:
+  - entity: fan
+    dps:
+      - id: 1
+        type: boolean
+        name: switch
+      - id: 6
+        type: string
+        name: speed
+        mapping:
+          - dps_val: "0"
+            value: 50
+          - dps_val: "1"
+            value: 100
+      - id: 8
+        type: boolean
+        name: oscillate
+  - entity: sensor
+    name: Humidity
+    class: humidity
+    dps:
+      - id: 3
+        type: integer
+        name: sensor
+        unit: "%"
+  - entity: switch
+    name: Ionizer
+    category: config
+    icon: "mdi:creation"
+    dps:
+      - id: 5
+        type: boolean
+        name: switch
+  - entity: lock
+    name: Child lock
+    icon: "mdi:hand-back-right-off"
+    category: config
+    dps:
+      - id: 7
+        type: boolean
+        name: lock
+  - entity: binary_sensor
+    name: 11
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 11
+        type: bitfield
+        name: sensor
+        mapping:
+          - dps_val: 0
+            value: false
+          - value: true
+  - entity: select
+    name: Timer
+    icon: "mdi:timer"
+    category: config
+    dps:
+      - id: 12
+        type: string
+        name: option
+        optional: true
+        mapping:
+          - dps_val: cancel
+            value: "Off"
+          - dps_val: null
+            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"
+          - dps_val: "10h"
+            value: "10 hours"
+          - dps_val: "11h"
+            value: "11 hours"
+          - dps_val: "12h"
+            value: "12 hours"
+          - dps_val: "13h"
+            value: "13 hours"
+          - dps_val: "14h"
+            value: "14 hours"
+          - dps_val: "15h"
+            value: "15 hours"
+          - dps_val: "16h"
+            value: "16 hours"
+          - dps_val: "17h"
+            value: "17 hours"
+          - dps_val: "18h"
+            value: "18 hours"
+          - dps_val: "19h"
+            value: "19 hours"
+          - dps_val: "20h"
+            value: "20 hours"
+          - dps_val: "21h"
+            value: "21 hours"
+          - dps_val: "22h"
+            value: "22 hours"
+          - dps_val: "23h"
+            value: "23 hours"
+          - dps_val: "24h"
+            value: "24 hours"
+  - entity: sensor
+    name: Time remaing
+    class: duration
+    category: diagnostic
+    dps:
+      - id: 13
+        type: integer
+        name: sensor
+        unit: min
+  - entity: binary_sensor
+    name: Inside drying
+    class: running
+    category: diagnostic
+    dps:
+      - id: 101
+        type: boolean
+        name: sensor
+        optional: true
+        persist: false
+        mapping:
+          - dps_val: null
+            value: false
+  - entity: binary_sensor
+    name: Water pump
+    class: running
+    category: diagnostic
+    dps:
+      - id: 102
+        type: boolean
+        name: sensor