Explorar o código

Update forceclima_soundless.yaml

[PT]GOODVIBE[PT] hai 1 ano
pai
achega
0418249c87

+ 36 - 6
custom_components/tuya_local/devices/forceclima_soundless.yaml

@@ -1,7 +1,7 @@
-name: ForceClima Soundless
+name: Portable Air Conditioning
 products:
 products:
-  - id: bf122f759ba4882810sdwc
-    name: Portable Air Conditioning
+  - id: njvdabnnx51jiqiq
+    name: ForceClima Soundless
 primary_entity:
 primary_entity:
   entity: climate
   entity: climate
   dps:
   dps:
@@ -29,15 +29,27 @@ primary_entity:
       range:
       range:
         min: 16
         min: 16
         max: 30
         max: 30
+      mapping:
+        - scale: 0
+          step: 1
       unit: C
       unit: C
 
 
     - id: 3
     - id: 3
       type: integer
       type: integer
       name: current_temperature
       name: current_temperature
+      range:
+        min: 0
+        max: 35
+      mapping:
+        - scale: 0
+          step: 1
+      unit: C
+
     - id: 4
     - id: 4
       type: string
       type: string
       name: mode
       name: mode
       hidden: true
       hidden: true
+
     - id: 5
     - id: 5
       type: string
       type: string
       name: fan_mode
       name: fan_mode
@@ -48,16 +60,27 @@ primary_entity:
           value: medium
           value: medium
         - dps_val: high
         - dps_val: high
           value: high
           value: high
+
     - id: 20
     - id: 20
-      type: integer
       name: fault_code
       name: fault_code
+      type: bitfield
+      mapping:
+        - dps_val: 1
+          value: E1
+        - dps_val: 2
+          value: E2
+        - dps_val: 3
+          value: warter_full
 
 
+          
     - id: 107
     - id: 107
       type: integer
       type: integer
       name: temp_set_f
       name: temp_set_f
+
     - id: 109
     - id: 109
       type: integer
       type: integer
       name: unknown_107
       name: unknown_107
+      
 
 
     - id: 110
     - id: 110
       name: swing_mode
       name: swing_mode
@@ -69,6 +92,7 @@ primary_entity:
           value: vertical
           value: vertical
 
 
 secondary_entities:
 secondary_entities:
+
   - entity: switch
   - entity: switch
     name: Sleep
     name: Sleep
     category: config
     category: config
@@ -77,10 +101,16 @@ secondary_entities:
       - id: 103
       - id: 103
         name: switch
         name: switch
         type: boolean
         type: boolean
+
   - entity: binary_sensor
   - entity: binary_sensor
-    category: diagnostic
     class: problem
     class: problem
+    category: diagnostic
     dps:
     dps:
       - id: 20
       - id: 20
-        type: integer
+        type: bitfield
         name: sensor
         name: sensor
+        mapping:
+          - dps_val: 0
+            value: false
+          - value: true
+