Преглед изворни кода

Add separate secondary entity for Tank full

The entity I had wouldn't actually have covered a Tank full message. It
only works for E2. Added a secondary bitfield to handle Tank full.
evanfoster пре 2 година
родитељ
комит
255efb8f87
1 измењених фајлова са 14 додато и 0 уклоњено
  1. 14 0
      custom_components/tuya_local/devices/vivosun_de0003_dehumidifier.yaml

+ 14 - 0
custom_components/tuya_local/devices/vivosun_de0003_dehumidifier.yaml

@@ -157,9 +157,23 @@ secondary_entities:
             value: 23 hours
           - dps_val: 24h
             value: 24 hours
+  - entity: binary_sensor
+    class: problem
+    name: Tank full
+    category: diagnostic
+    icon: "mdi:cup-water"
+    dps:
+      - id: 19
+        type: bitfield
+        name: sensor
+        mapping:
+          - dps_val: 1
+            value: true
+          - value: false
   - entity: binary_sensor
     class: problem
     name: Fault
+    category: diagnostic
     dps:
       - id: 19
         type: bitfield