Procházet zdrojové kódy

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 před 1 rokem
rodič
revize
2d182a9629

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

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