4
0
latel 2 жил өмнө
parent
commit
7bb31a094f

+ 18 - 11
custom_components/tuya_local/devices/soleusair_air_purifier.yaml

@@ -16,17 +16,22 @@ primary_entity:
     - id: 101
     - id: 101
       type: integer
       type: integer
       name: speed
       name: speed
+      range:
+        min: 1
+        max: 5
       mapping:
       mapping:
-        - dps_val: 1
-          value: 1
-        - dps_val: 2
-          value: 2
-        - dps_val: 3
-          value: 3
-        - dps_val: 4
-          value: 4
-        - dps_val: 5
-          value: 5
+        - scale: 0.05
+      # mapping:
+      #   - dps_val: 1
+      #     value: 20
+      #   - dps_val: 2
+      #     value: 40
+      #   - dps_val: 3
+      #     value: 60
+      #   - dps_val: 4
+      #     value: 80
+      #   - dps_val: 5
+      #     value: 100
     - id: 3
     - id: 3
       name: preset_mode
       name: preset_mode
       type: string
       type: string
@@ -54,6 +59,7 @@ secondary_entities:
           max: 100
           max: 100
   - entity: switch
   - entity: switch
     name: Ionizer
     name: Ionizer
+    icon: "mdi:creation"
     category: config
     category: config
     dps:
     dps:
       - id: 6
       - id: 6
@@ -84,8 +90,9 @@ secondary_entities:
     class: temperature
     class: temperature
     dps:
     dps:
       - id: 12
       - id: 12
-        type: integer
         name: sensor
         name: sensor
+        type: integer
+        unit: "°C"
   - entity: sensor
   - entity: sensor
     class: humidity
     class: humidity
     dps:
     dps: