Mihai Ambrosie 2 лет назад
Родитель
Сommit
b87927e2ea
1 измененных файлов с 27 добавлено и 9 удалено
  1. 27 9
      custom_components/tuya_local/devices/alecoair_d16_dehumidifier.yaml

+ 27 - 9
custom_components/tuya_local/devices/alecoair_d16_dehumidifier.yaml

@@ -48,19 +48,19 @@ primary_entity:
     - 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.
+      # E2 might be a compressor fault.
       mapping:
         - dps_val: 0
           value: OK
+          icon: "mdi:cup-outline"
         - dps_val: 1
-          value: E1
+          value: "Water Tank Full or Removed"
           icon: "mdi:cup-water"
-          icon_priority: 2
+          icon_priority: 1
         - dps_val: 2
-          value: E2
-          icon: "mdi:cup-water"
-          icon_priority: 2
+          value: "E2 Compressor Fault"
+          icon: "mdi:engine-off-outline"
+          icon_priority: 1
 secondary_entities:
   - entity: fan
     dps:
@@ -108,9 +108,23 @@ secondary_entities:
         unit: "%"
         class: measurement
   - entity: binary_sensor
-    name: Tank
     class: problem
-    category: diagnostic
+    name: Tank full
+    icon: "mdi:cup-water"
+    optional: true
+    dps:
+      - id: 19
+        type: bitfield
+        name: sensor
+        mapping:
+          - dps_val: 1
+            value: true
+          - value: false
+  - entity: binary_sensor
+    class: problem
+    name: Fault
+    icon: "mdi:engine-off-outline"
+    optional: true
     dps:
       - id: 19
         type: bitfield
@@ -118,6 +132,10 @@ secondary_entities:
         mapping:
           - dps_val: 0
             value: false
+          - dps_val: 1
+            value: false
+          - dps_val: null
+            value: false
           - value: true
   - entity: lock
     name: Child lock