Selaa lähdekoodia

Update blitzwolf_bwsh5_humidifier.yaml

spuljko 2 vuotta sitten
vanhempi
commit
060324f444

+ 44 - 20
custom_components/tuya_local/devices/blitzwolf_bwsh5_humidifier.yaml

@@ -29,7 +29,7 @@ primary_entity:
     - id: 13             
       name: humidity
       type: integer
-      optional: true
+      #optional: true
       range:
         min: 35
         max: 75
@@ -38,14 +38,6 @@ primary_entity:
     - id: 14
       name: current_humidity
       type: integer
-    - id: 22
-      name: unknown_22
-      type: integer
-      optional: true
-    - id: 23
-      name: unknown_23
-      type: string
-      optional: true
 secondary_entities:
   - entity: switch
     name: UV sterilization
@@ -55,6 +47,7 @@ secondary_entities:
       - id: 21
         name: switch
         type: boolean
+        #optional: true
   - entity: switch
     name: Warm mist
     icon: "mdi:fire"
@@ -63,6 +56,7 @@ secondary_entities:
       - id: 26
         name: switch
         type: boolean
+        optional: true
   - entity: switch
     name: Plasma
     icon: "mdi:dots-circle"
@@ -70,7 +64,8 @@ secondary_entities:
     dps:
       - id: 35
         name: switch
-        type: boolean        
+        type: boolean
+        optional: true
   - entity: light
     name: LED
     category: config
@@ -83,17 +78,30 @@ secondary_entities:
             icon: "mdi:led-on"
           - dps_val: false
             icon: "mdi:led-off"
-  - entity: sensor
-    deprecated: humidifier
-    name: Current humidity
-    class: humidity
-    category: diagnostic
+  - entity: select
+    name: Spray level
+    icon: "mdi:heat-wave"
+    category: config
     dps:
-      - id: 14
-        type: integer
-        name: sensor
-        class: measurement
-        unit: "%"
+      - id: 23  
+        name: option  
+        type: string
+        optional: true
+        mapping:
+          - dps_val: "level_1"
+            value: "Level 1 "
+          - dps_val: "level_2"
+            value: "Level 2"
+          - dps_val: "level_3"
+            value: "Level 3"
+          - dps_val: "level_4"
+            value: "Level 4"
+          - dps_val: "level_5"    
+            value: "Level 5"           
+          - dps_val: "level_6"
+            value: "Level 6"
+          - dps_val: "level_7" 
+            value: "Level 7"
   - entity: sensor
     class: temperature
     dps:
@@ -106,6 +114,7 @@ secondary_entities:
         name: temperature_f
         type: integer
         unit: F
+        optional: true
   - entity: select
     name: Timer
     icon: "mdi:timer"
@@ -114,6 +123,7 @@ secondary_entities:
       - id: 19
         name: option  
         type: string
+        optional: true
         mapping:
           - dps_val: "cancel"
             value: "Off"
@@ -153,6 +163,7 @@ secondary_entities:
       - id: 18
         type: string
         name: option
+        optional: true
         mapping:
           - dps_val: c
             value: Celsius
@@ -160,3 +171,16 @@ secondary_entities:
           - dps_val: f
             value: Fahrenheit  
             icon: "mdi:temperature-fahrenheit"
+  - entity: binary_sensor
+    name: Low water
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 22
+        type: bitfield
+        name: sensor
+        mapping:
+          - dps_val: 0
+            value: false
+          - dps_val: 1
+            value: true