Просмотр исходного кода

Update forceclima_soundless.yaml

[PT]GOODVIBE[PT] 1 год назад
Родитель
Сommit
0418249c87
1 измененных файлов с 36 добавлено и 6 удалено
  1. 36 6
      custom_components/tuya_local/devices/forceclima_soundless.yaml

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

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