Dmitriy Lopatko 2 лет назад
Родитель
Сommit
b9fb1fcbb6
1 измененных файлов с 13 добавлено и 16 удалено
  1. 13 16
      custom_components/tuya_local/devices/probreeze_pb20.yaml

+ 13 - 16
custom_components/tuya_local/devices/probreeze_pb20.yaml

@@ -12,24 +12,25 @@ primary_entity:
       mapping:
         - dps_val: false
           icon: "mdi:air-humidifier-off"
-          icon_priority: 1
         - dps_val: true
           icon: "mdi:air-humidifier"
-          icon_priority: 4
     - id: 2
-      name: mode
+      name: work_mode
       type: string
+      hidden: true
+    - id: 101
+      type: boolean
+      name: mode
       mapping:
-        - constraint: inside_drying
+        - dps_val: false
+          constraint: work_mode
           conditions:
-            - dps_val: false
-              mapping:
-                - dps_val: "1"
-                  value: boost
-                - dps_val: "0"
-                  value: auto
-            - dps_val: true
-              value: laundry
+            - dps_val: "1"
+              value: boost
+            - dps_val: "0"
+              value: auto
+        - dps_val: true
+          value: Internal drying
     - id: 3
       name: current_humidity
       type: integer
@@ -49,10 +50,6 @@ primary_entity:
           value: OK
         - dps_val: 8
           value: tank
-    - id: 101
-      type: boolean
-      name: inside_drying
-      hidden: true
 secondary_entities:
   - entity: fan
     dps: