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

Update TYTE-D1 to support auto-work

Shawn Buckley 1 год назад
Родитель
Сommit
694cabf313
1 измененных файлов с 30 добавлено и 7 удалено
  1. 30 7
      custom_components/tuya_local/devices/tyte_d1_thermostat.yaml

+ 30 - 7
custom_components/tuya_local/devices/tyte_d1_thermostat.yaml

@@ -1,8 +1,35 @@
-name: RYRA TYTE-D1 thermostat
+name: Thermostat
+products:
+  - id: key7rucurh5teh9w
+    model: TYTE-D1
 entities:
 entities:
+  - entity: switch
+    name: Switch
+    dps:
+      - id: 2
+        type: boolean
+        name: switch
+        mapping:
+          - dps_val: false
+            icon: "mdi:power-plug-off"
+          - dps_val: true
+            icon: "mdi:power-plug"
   - entity: climate
   - entity: climate
     dps:
     dps:
       - id: 2
       - id: 2
+        type: boolean
+        name: hvac_action
+        mapping:
+          - dps_val: false
+            value: idle
+          - dps_val: true
+            constraint: work_mode
+            conditions:
+              - dps_val: hot
+                value: heating
+              - dps_val: colding
+                value: cooling
+      - id: 9
         type: boolean
         type: boolean
         name: hvac_mode
         name: hvac_mode
         mapping:
         mapping:
@@ -15,10 +42,6 @@ entities:
                 value: heat
                 value: heat
               - dps_val: colding
               - dps_val: colding
                 value: cool
                 value: cool
-              - dps_val: dehumidify
-                value: dry
-              - dps_val: wet
-                value: dry
       - id: 7
       - id: 7
         type: string
         type: string
         name: cycle_time
         name: cycle_time
@@ -164,9 +187,9 @@ entities:
           - dps_val: f
           - dps_val: f
             value: fahrenheit
             value: fahrenheit
   - entity: number
   - entity: number
-    name: Vibration
+    name: Temperature Range
     category: config
     category: config
-    icon: "mdi:volume-vibrate"
+    icon: "mdi:format-paragraph-spacing"
     dps:
     dps:
       - id: 29
       - id: 29
         type: integer
         type: integer