Преглед изворни кода

Add support for VIVOSUN DE0003 Dehumidifier

This PR adds support for the VIVOSUN DE0003 Dehumidifier (also known as
the VIVOSUN 10L Dehumidifier on Amazon). Results from the Tuya API
showed that this dehumidifer was really similar to the JJPro JPD02
dehumidifier, so this config is mostly a copy of that (they even share
the same name for the continuous mode: Continuities).
evanfoster пре 2 година
родитељ
комит
1e4e612411
1 измењених фајлова са 178 додато и 0 уклоњено
  1. 178 0
      custom_components/tuya_local/devices/vivosun_de0003_dehumidifier.yaml

+ 178 - 0
custom_components/tuya_local/devices/vivosun_de0003_dehumidifier.yaml

@@ -0,0 +1,178 @@
+name: Vivosun DE0003 Dehumidifier
+products:
+  - id: qrjffdu2bjrd7v42
+primary_entity:
+  entity: humidifier
+  class: dehumidifier
+  dps:
+    - id: 1
+      name: switch
+      type: boolean
+      mapping:
+        - dps_val: false
+          icon: "mdi:air-humidifier-off"
+          icon_priority: 3
+        - dps_val: true
+          icon: "mdi:air-humidifier"
+          icon_priority: 5
+    - id: 2
+      type: integer
+      name: humidity
+      range:
+        min: 30
+        max: 80
+      mapping:
+        - step: 5
+    - id: 5
+      name: mode
+      type: string
+      mapping:
+        - dps_val: Continuities
+          value: boost
+          icon: "mdi:tshirt-crew-outline"
+          icon_priority: 4
+        - dps_val: Auto
+          value: auto
+          icon: "mdi:water-outline"
+          icon_priority: 4
+        - dps_val: Sleep
+          value: sleep
+          icon: "mdi:weather-night"
+          icon_priority: 4
+    - id: 6
+      type: integer
+      name: current_humidity
+    - id: 19
+      name: error
+      type: bitfield
+      # E2 might be a compressor fault.
+      mapping:
+        - dps_val: 0
+          value: OK
+        - dps_val: 1
+          value: "Water Tank Full or Removed"
+          icon: "mdi:cup-water"
+          icon_priority: 1
+        - dps_val: 2
+          value: "E2 Compressor Fault"
+          icon: "mdi:engine-off-outline"
+          icon_priority: 1
+secondary_entities:
+  - entity: fan
+    dps:
+      - id: 1
+        type: boolean
+        name: switch
+      - id: 4
+        type: string
+        name: speed
+        mapping:
+          - dps_val: "low"
+            value: 50
+          - dps_val: "high"
+            value: 100
+  - entity: sensor
+    name: Current humidity
+    deprecated: humidifier
+    category: diagnostic
+    class: humidity
+    dps:
+      - id: 6
+        type: integer
+        name: sensor
+        class: measurement
+        unit: "%"
+  - entity: sensor
+    class: temperature
+    dps:
+      - id: 7
+        type: integer
+        name: sensor
+        unit: F
+        class: measurement
+  - entity: lock
+    name: Child lock
+    category: config
+    dps:
+      - id: 16
+        type: boolean
+        name: lock
+        mapping:
+          - dps_val: true
+            icon: "mdi:hand-back-right-off"
+          - dps_val: false
+            icon: "mdi:hand-back-right"
+  - entity: select
+    name: Timer
+    icon: "mdi:timer"
+    category: config
+    dps:
+      - id: 17
+        type: string
+        name: option
+        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
+          - 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: binary_sensor
+    class: problem
+    name: Fault
+    dps:
+      - id: 19
+        type: bitfield
+        name: sensor
+        mapping:
+          - dps_val: 0
+            value: false
+          - dps_val: 1
+            value: false
+          - dps_val: null
+            value: false
+          - value: true