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

Cecotec BigDry 4000 dehumidifier - Fix tank full error

This device uses "19":2 to report a full or removed water tank.
Alokin-ITA 1 год назад
Родитель
Сommit
4c09ef803f
1 измененных файлов с 5 добавлено и 3 удалено
  1. 5 3
      custom_components/tuya_local/devices/cecotec_bigdry_4000_dehumidifier.yaml

+ 5 - 3
custom_components/tuya_local/devices/cecotec_bigdry_4000_dehumidifier.yaml

@@ -54,6 +54,7 @@ entities:
         unit: C
         unit: C
   - entity: switch
   - entity: switch
     translation_key: uv_sterilization
     translation_key: uv_sterilization
+    # Not supported by the device, still shown by Tuya
     category: config
     category: config
     dps:
     dps:
       - id: 13
       - id: 13
@@ -67,7 +68,7 @@ entities:
         type: bitfield
         type: bitfield
         name: sensor
         name: sensor
         mapping:
         mapping:
-          - dps_val: 1
+          - dps_val: 2
             value: true
             value: true
           - value: false
           - value: false
   - entity: binary_sensor
   - entity: binary_sensor
@@ -94,6 +95,7 @@ entities:
           - dps_val: 0
           - dps_val: 0
             value: OK
             value: OK
           - dps_val: 1
           - dps_val: 1
-            value: "Water Tank Full or Removed"
-          - dps_val: 2
             value: "E2 Compressor Fault"
             value: "E2 Compressor Fault"
+            # Unknown. Might be compressor fault
+          - dps_val: 2
+            value: "Water Tank Full or Removed"