Dmitriy Lopatko пре 2 година
родитељ
комит
42428c8ef6
1 измењених фајлова са 16 додато и 17 уклоњено
  1. 16 17
      custom_components/tuya_local/devices/probreeze_pb20.yaml

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

@@ -1,4 +1,4 @@
-name: Pro Breeze 30L Dehumidifier
+name: Pro Breeze Dehumidifier
 products:
   - id: bfaa8cc446a9c7a142bp7o
     name: Pro Breeze PB-20
@@ -20,14 +20,16 @@ primary_entity:
       name: mode
       type: string
       mapping:
-        - dps_val: "1"
-          value: Continuous
-          icon: mdi:autorenew
-          icon_priority: 3
-        - dps_val: "0"
-          value: Auto
-          icon: mdi:auto-fix
-          icon_priority: 3
+        - constraint: inside_drying
+          conditions:
+            - dps_val: false
+              mapping:
+                - dps_val: "1"
+                  value: boost
+                - dps_val: "0"
+                  value: auto
+            - dps_val: true
+              value: laundry
     - id: 3
       name: current_humidity
       type: integer
@@ -47,6 +49,10 @@ primary_entity:
           value: OK
         - dps_val: 8
           value: tank
+    - id: 101
+      type: boolean
+      name: inside_drying
+      hidden: true
 secondary_entities:
   - entity: fan
     dps:
@@ -74,7 +80,7 @@ secondary_entities:
           - dps_val: true
             icon: "mdi:hand-back-right-off"
   - entity: select
-    name: Countdown
+    name: Timer
     icon: "mdi:timer"
     category: config
     dps:
@@ -156,10 +162,3 @@ secondary_entities:
             icon: "mdi:cup-water"
             icon-priority: 1
           - value: false
-  - entity: switch
-    name: Inside Drying
-    icon: "mdi:tshirt-crew"
-    dps:
-      - id: 101
-        name: switch
-        type: boolean