Explorar o código

add support for wind_speed

latel %!s(int64=2) %!d(string=hai) anos
pai
achega
3af302056e

+ 13 - 4
custom_components/tuya_local/devices/soleusair_air_purifier.yaml

@@ -22,17 +22,26 @@ secondary_entities:
       - id: 3
       - id: 3
         type: string
         type: string
         name: option
         name: option
-  - entity: select
+        mapping:
+          - dps_val: manual
+            value: manual
+          - dps_val: auto
+            value: auto
+          - dps_val: sleep
+            value: sleep
+          - dps_val: displayoff
+            value: displayoff
+  - entity: number
     name: windspeed
     name: windspeed
     category: config
     category: config
     dps:
     dps:
       - id: 101
       - id: 101
         type: integer
         type: integer
-        name: option
-        unit: "gear"
+        name: value
         range:
         range:
           min: 1
           min: 1
           max: 5
           max: 5
+        unit: gear
   - entity: sensor
   - entity: sensor
     name: filter_life
     name: filter_life
     class: duration
     class: duration
@@ -41,7 +50,7 @@ secondary_entities:
       - id: 5
       - id: 5
         type: integer
         type: integer
         name: sensor
         name: sensor
-        unit: "%"
+        # unit: "%"
         range:
         range:
           min: 0
           min: 0
           max: 100
           max: 100