Parcourir la source

Create cecotec_bigdry_4000_dehumidifier.yaml

New device
Heinz Peter Hippenstiel il y a 1 an
Parent
commit
fe28e39095

+ 145 - 0
custom_components/tuya_local/devices/cecotec_bigdry_4000_dehumidifier.yaml

@@ -0,0 +1,145 @@
+name: BigDry 4000 Expert
+products:
+  - id: d44nan1uokr1hlwf
+    name: Cecotec BigDry 4000 Expert
+    # {"dps": {"1": true, "3": "60", "4": "low", "6": 54, "7": 23, "19": 0}}
+primary_entity:
+  entity: humidifier
+  class: dehumidifier
+  name: Dehumidifier
+  dps:
+    - id: 1
+      name: switch
+      type: boolean
+    - id: 3
+      type: integer
+      name: humidity
+      range:
+        min: 40
+        max: 80
+    - id: 6
+      name: current_humidity
+      type: integer
+
+secondary_entities:
+  # This is twice to make it more prominent
+  - entity: switch
+    name: Power
+    dps:
+      - id: 1
+        type: boolean
+        name: switch
+  - entity: select
+    name: Humidity Target
+    dps:
+      - id: 3
+        type: string
+        name: option
+        mapping:
+          - dps_val: "40"
+            value: "40"
+          - dps_val: "45"
+            value: "45"
+          - dps_val: "50"
+            value: "50"
+          - dps_val: "55"
+            value: "55"
+          - dps_val: "60"
+            value: "60"
+          - dps_val: "65"
+            value: "65"
+          - dps_val: "70"
+            value: "70"
+          - dps_val: "75"
+            value: "75"
+          - dps_val: "80"
+            value: "80"
+  - entity: select
+    name: Fan Speed
+    dps:
+      - id: 4
+        type: string
+        name: option
+        mapping:
+          - dps_val: low
+            value: Low
+          - dps_val: high
+            value: High
+  - entity: sensor
+    class: temperature
+    name: Room Temperature
+    dps:
+      - id: 7
+        name: sensor
+        type: integer
+        class: measurement
+        unit: C
+      # - id: 24
+      #   name: unit
+      #   type: string
+      #   optional: true
+      #   mapping:
+      #     - dps_val: f
+      #       value: F
+      #     - value: C
+  # I was not able to get this really work
+  # - entity: select
+  #   translation_key: temperature_unit
+  #   category: config
+  #   dps:
+  #     - id: 24
+  #       type: string
+  #       name: option
+  #       optional: true
+  #       mapping:
+  #         - dps_val: c
+  #           value: celsius
+  #         - dps_val: f
+  #           value: fahrenheit
+  # The UV switch is a bit strange looking
+  - entity: switch
+    translation_key: uv_sterilization
+    category: config
+    dps:
+      - id: 13
+        type: boolean
+        name: switch
+        optional: true
+  - entity: binary_sensor
+    translation_key: tank_full
+    dps:
+      - id: 19
+        type: bitfield
+        name: sensor
+        mapping:
+          - dps_val: 1
+            value: true
+          - value: false
+  - entity: binary_sensor
+    class: problem
+    name: Problem Status
+    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
+      - id: 19
+        type: bitfield
+        name: fault_code
+      - id: 19
+        name: description
+        type: bitfield
+        mapping:
+          - dps_val: 0
+            value: OK
+          - dps_val: 1
+            value: "Water Tank Full or Removed"
+          - dps_val: 2
+            value: "E2 Compressor Fault"