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

Create AlecoAir_D25_Traditio.yaml

b1be 2 лет назад
Родитель
Сommit
06f31cd855
1 измененных файлов с 226 добавлено и 0 удалено
  1. 226 0
      custom_components/tuya_local/devices/AlecoAir_D25_Traditio.yaml

+ 226 - 0
custom_components/tuya_local/devices/AlecoAir_D25_Traditio.yaml

@@ -0,0 +1,226 @@
+name: AlecoAir D25
+products:
+    - id: bf1872f920fbb07813iiwn
+      name: AlecoAir D25
+primary_entity:
+  entity: humidifier
+  class: dehumidifier
+  dps:
+    - id: 1
+      name: switch
+      type: boolean
+      mapping:
+        - dps_val: false
+          icon: "mdi:air-humidifier-off"
+          icon_priority: 1
+        - dps_val: true
+          icon: "mdi:air-humidifier"
+          icon_priority: 4
+    - id: 2
+      name: humidity
+      type: integer
+      range:
+        min: 25
+        max: 80
+      mapping:
+        - step: 5
+    - id: 4
+      type: string
+      name: speed
+      icon: "mdi:fan"
+      mapping:
+        - dps_val: low
+          value: low
+        - dps_val: high
+          value: high        
+    - id: 5
+      name: mode
+      type: string
+      mapping:
+        - dps_val: Manual
+          value: Manual
+        - dps_val: Auto
+          value: Auto
+          icon: "mdi:tshirt-crew-outline"
+          icon_priority: 3
+        - dps_val: Laundrydrying
+          value: Laundrydrying
+          icon: "mdi:air-filter"
+          icon_priority: 3
+        - dps_val: Sleep
+          value: Sleep
+          icon: "mdi:power-sleep"
+          icon_priority: 3
+        - dps_val: Purifying
+          value: Purifying
+          icon: "mdi:leaf"
+    - id: 19
+      name: error
+      type: bitfield
+      # Docs mention E1 and E2, it isn't clear which is tank full, so for now
+      # treat both as that.
+      mapping:
+        - dps_val: 0
+          value: OK
+        - dps_val: 1
+          value: E1
+          icon: "mdi:cup-water"
+          icon_priority: 2
+        - dps_val: 2
+          value: E2
+          icon: "mdi:cup-water"
+          icon_priority: 2
+    - id: 8
+      type: boolean
+      name: swing
+      mapping:
+        - dps_val: true
+          icon: "mdi:creation"
+        - dps_val: false
+          icon: "mdi:creation-outline"
+secondary_entities:
+  - entity: select
+    name: speed
+    icon: "mdi:fan"
+    category: config
+    dps:
+      - id: 4
+        type: string
+        name: option
+        icon: "mdi:fan"
+        mapping:
+          - dps_val: low
+            value: low
+          - dps_val: high
+            value: high
+  - entity: switch
+    name: swing
+    category: config
+    icon: "mdi:tailwind"
+    dps: 
+      - id: 8
+        type: boolean
+        name: switch
+        mapping:
+          - dps_val: true
+            icon: "mdi:tailwind"
+          - dps_val: false
+            icon: "mdi:tailwind"
+  - entity: switch
+    name: ionizer
+    category: config
+    icon: "mdi:creation"
+    dps:
+      - id: 10
+        type: boolean
+        name: switch
+        mapping:
+          - dps_val: true
+            icon: "mdi:creation"
+          - dps_val: false
+            icon: "mdi:creation-outline"
+  - entity: switch
+    name: uv
+    category: config
+    icon: "mdi:leaf"
+    dps:
+      - id: 13
+        type: boolean
+        name: switch
+        mapping:
+          - dps_val: true
+            icon: "mdi:leaf"
+          - dps_val: false
+            icon: "mdi:leaf-outline"
+  - entity: sensor
+    name: Current humidity
+    class: humidity
+    dps:
+      - id: 6
+        type: integer
+        name: sensor
+        unit: "%"
+        class: measurement
+  - entity: binary_sensor
+    name: Tank
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 19
+        type: bitfield
+        name: sensor
+        mapping:
+          - dps_val: 0
+            value: false
+          - value: true
+  - entity: lock
+    name: Child lock
+    category: config
+    dps:
+      - id: 16
+        type: boolean
+        name: lock
+        mapping:
+          - dps_val: true
+            icon: "mdi:lock"
+          - dps_val: false
+            icon: "mdi:lock"
+  - 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