Browse Source

Fix tank/defrost indicators

Alexander Minges 1 year ago
parent
commit
bf11673b09

+ 15 - 26
custom_components/tuya_local/devices/aktobis_wdh_310ek_dehumidifier.yaml

@@ -45,6 +45,20 @@ primary_entity:
           value: "E3 Humidity Sensor Fault"
           value: "E3 Humidity Sensor Fault"
         - dps_val: 5
         - dps_val: 5
           value: "E5 MCU Communication Failure"
           value: "E5 MCU Communication Failure"
+    - id: 101
+      type: boolean
+      name: tank_full
+      mapping:
+        - dps_val: true
+          icon: "mdi:cup-water"
+          icon_priority: 2
+    - id: 102
+      type: boolean
+      name: defrosting
+      mapping:
+        - dps_val: true
+          icon: "mdi:snowflake-melt"
+          icon_priority: 2
 secondary_entities:
 secondary_entities:
   - entity: fan
   - entity: fan
     dps:
     dps:
@@ -75,15 +89,6 @@ secondary_entities:
         name: sensor
         name: sensor
         unit: "%"
         unit: "%"
         class: measurement
         class: measurement
-  - entity: binary_sensor
-    dps:
-      - id: 19
-        type: bitfield
-        name: sensor
-        mapping:
-          - dps_val: 1
-            value: true
-          - value: false
   - entity: binary_sensor
   - entity: binary_sensor
     class: problem
     class: problem
     dps:
     dps:
@@ -103,29 +108,13 @@ secondary_entities:
       - id: 101
       - id: 101
         type: boolean
         type: boolean
         name: sensor
         name: sensor
-        mapping:
-          - dps_val: false
-            value: OK
-          - dps_val: true
-            value: "Full"
-            icon: "mdi:cup-water"
-            icon_priority: 1
   - entity: binary_sensor
   - entity: binary_sensor
     translation_key: defrost
     translation_key: defrost
-    class: problem
+    category: diagnostic
     dps:
     dps:
       - id: 102
       - id: 102
         type: boolean
         type: boolean
         name: sensor
         name: sensor
-        mapping:
-          - dps_val: false
-            value: "Normal"
-            icon: "mdi:snowflake-off"
-            icon_priority: 1
-          - dps_val: true
-            value: "Defrosting"
-            icon: "mdi:snowflake"
-            icon_priority: 1
   - entity: select
   - entity: select
     translation_key: timer
     translation_key: timer
     category: config
     category: config