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

Eesee Adam: split tank sensor into tank, defrost, general problem

Initially this was implemented as any non-zero value as "Tank".
But actual values reported regularly by the unit include 1 for tank
full/removed, and 2 for defrosting. There may also be more non-routine
problem codes, so also added a general problem sensor to catch all others.

Issue #1841
Jason Rumney 1 год назад
Родитель
Сommit
940db8ad91
1 измененных файлов с 29 добавлено и 0 удалено
  1. 29 0
      custom_components/tuya_local/devices/eesee_adam_dehumidifier.yaml

+ 29 - 0
custom_components/tuya_local/devices/eesee_adam_dehumidifier.yaml

@@ -67,6 +67,28 @@ secondary_entities:
   - entity: binary_sensor
     translation_key: tank_full
     category: diagnostic
+    dps:
+      - id: 19
+        type: bitfield
+        name: sensor
+        mapping:
+          - dps_val: 1
+            value: true
+          - value: false
+  - entity: binary_sensor
+    translation_key: defrost
+    category: diagnostic
+    dps:
+      - id: 19
+        type: bitfield
+        name: sensor
+        mapping:
+          - dps_val: 2
+            value: true
+          - value: false
+  - entity: binary_sensor
+    class: problem
+    category: diagnostic
     dps:
       - id: 19
         type: bitfield
@@ -74,7 +96,14 @@ secondary_entities:
         mapping:
           - dps_val: 0
             value: false
+          - dps_val: 1
+            value: false
+          - dps_val: 2
+            value: false
           - value: true
+      - id: 19
+        type: bitfield
+        name: fault_code
   - entity: lock
     translation_key: child_lock
     category: config