Kaynağa Gözat

ETOP HT: add compatibility with PNI CT-400

A couple more optional dps.

Issue #2346
Jason Rumney 1 yıl önce
ebeveyn
işleme
530d990e34

+ 21 - 16
custom_components/tuya_local/devices/etop_ht_thermostat.yaml

@@ -1,11 +1,12 @@
-name: ETOP-HT thermostat
+name: Thermostat
 products:
 products:
   - id: viav1onpzcozfneb
   - id: viav1onpzcozfneb
-
+    name: ETOP HT-01AC
+  - id: zhfbsam03cs0ge5n
+    name: PNI CT-400
 primary_entity:
 primary_entity:
   entity: climate
   entity: climate
   translation_key: thermostat
   translation_key: thermostat
-  name: Thermostat
   dps:
   dps:
     - id: 1
     - id: 1
       type: boolean
       type: boolean
@@ -21,24 +22,16 @@ primary_entity:
       mapping:
       mapping:
         - dps_val: manual
         - dps_val: manual
           value: manual
           value: manual
-          icon: "mdi:cursor-pointer"
         - dps_val: eco
         - dps_val: eco
           value: eco
           value: eco
-          icon: "mdi:sprout"
         - dps_val: auto
         - dps_val: auto
-          value: activity
-          icon: "mdi:thermostat-auto"
+          value: auto
     - id: 3
     - id: 3
       type: string
       type: string
       name: hvac_action
       name: hvac_action
       mapping:
       mapping:
         - dps_val: no_heating
         - dps_val: no_heating
-          constraint: hvac_mode
-          conditions:
-            - dps_val: false
-              value: "off"
-            - dps_val: true
-              value: idle
+          value: idle
         - dps_val: heating
         - dps_val: heating
           value: heating
           value: heating
     - id: 24
     - id: 24
@@ -78,9 +71,10 @@ primary_entity:
       mapping:
       mapping:
         - scale: 10
         - scale: 10
           step: 5
           step: 5
-    - id: 45
-      type: bitfield
-      name: fault_code
+    - id: 101
+      type: integer
+      optional: true
+      name: dead_zone
 secondary_entities:
 secondary_entities:
   - entity: switch
   - entity: switch
     translation_key: anti_frost
     translation_key: anti_frost
@@ -89,6 +83,14 @@ secondary_entities:
       - id: 10
       - id: 10
         type: boolean
         type: boolean
         name: switch
         name: switch
+  - entity: switch
+    name: Window detection
+    category: config
+    dps:
+      - id: 8
+        type: boolean
+        optional: true
+        name: switch
   - entity: lock
   - entity: lock
     translation_key: child_lock
     translation_key: child_lock
     category: config
     category: config
@@ -157,3 +159,6 @@ secondary_entities:
           - dps_val: 0
           - dps_val: 0
             value: false
             value: false
           - value: true
           - value: true
+      - id: 45
+        type: bitfield
+        name: fault_code