[PT]GOODVIBE[PT] 1 год назад
Родитель
Сommit
0d02ef157a
1 измененных файлов с 34 добавлено и 7 удалено
  1. 34 7
      custom_components/tuya_local/devices/forceclima_soundless.yaml

+ 34 - 7
custom_components/tuya_local/devices/forceclima_soundless.yaml

@@ -59,12 +59,15 @@ primary_entity:
       name: fault_code
       type: bitfield
       mapping:
+        - dps_val: 0
+          value: OK
         - dps_val: 1
           value: E1
         - dps_val: 2
           value: E2
-        - dps_val: 3
-          value: warter_full
+        - dps_val: 4
+          value: E3
+
 
     - id: 107
       type: integer
@@ -84,7 +87,6 @@ primary_entity:
           value: vertical
 
 secondary_entities:
-
   - entity: switch
     name: Sleep
     category: config
@@ -94,14 +96,39 @@ secondary_entities:
         name: switch
         type: boolean
 
+
+  - entity: binary_sensor
+    translation_key: tank_full
+    category: diagnostic
+    dps:
+      - id: 20
+        type: bitfield
+        name: sensor
+        mapping:
+          - dps_val: 4
+            value: true
+          - value: false
+
+  - entity: binary_sensor
+    name: Room temperature sensor
+    category: diagnostic
+    dps:
+      - id: 20
+        type: bitfield
+        name: sensor
+        mapping:
+          - dps_val: 1
+            value: true
+          - value: false
+
   - entity: binary_sensor
-    class: problem
+    name: Coil sensor
     category: diagnostic
     dps:
       - id: 20
         type: bitfield
         name: sensor
         mapping:
-          - dps_val: 0
-            value: false
-          - value: true
+          - dps_val: 2
+            value: true
+          - value: false