소스 검색

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 년 전
부모
커밋
2d182a9629
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      custom_components/tuya_local/devices/qlima_d820a_dehumidifier.yaml

+ 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"