Kaynağa Gözat

Qlima D820A: move fault_code to problem sensor.

This belongs with the problem sensor.
Previously I added these to the primary entity, as I did not think it
would work to have the same dp id twice on the same entity, but it turns
out that works fine, so it is better to put the attribute with the
related entity.
Jason Rumney 1 yıl önce
ebeveyn
işleme
2d182a9629

+ 3 - 3
custom_components/tuya_local/devices/qlima_d820a_dehumidifier.yaml

@@ -32,9 +32,6 @@ primary_entity:
     - id: 6
     - id: 6
       type: integer
       type: integer
       name: current_humidity
       name: current_humidity
-    - id: 19
-      type: bitfield
-      name: fault_code
 secondary_entities:
 secondary_entities:
   - entity: fan
   - entity: fan
     dps:
     dps:
@@ -84,6 +81,9 @@ secondary_entities:
           - dps_val: 0
           - dps_val: 0
             value: false
             value: false
           - value: true
           - value: true
+      - id: 19
+        type: bitfield
+        name: fault_code
   - entity: select
   - entity: select
     name: Indicators
     name: Indicators
     icon: "mdi:led-on"
     icon: "mdi:led-on"