فهرست منبع

feat(trucool_tc1160_airconditioner): make compatible with Berdsen BD-580

- additional dps 107 and 109 for availability of heat and swing
- dps 103 and 108 made optional (listed in dps info with same spec, but missing from log)

Issue #6119
Jason Rumney 3 ساعت پیش
والد
کامیت
ad013f7dbb
1فایلهای تغییر یافته به همراه21 افزوده شده و 0 حذف شده
  1. 21 0
      custom_components/tuya_local/devices/trucool_tc1160_airconditioner.yaml

+ 21 - 0
custom_components/tuya_local/devices/trucool_tc1160_airconditioner.yaml

@@ -17,6 +17,7 @@ entities:
             conditions:
             conditions:
               - dps_val: auto
               - dps_val: auto
                 value: heat_cool
                 value: heat_cool
+                available: heat_model
               - dps_val: cold
               - dps_val: cold
                 value: cool
                 value: cool
               - dps_val: wind
               - dps_val: wind
@@ -25,6 +26,7 @@ entities:
                 value: dry
                 value: dry
               - dps_val: hot
               - dps_val: hot
                 value: heat
                 value: heat
+                available: heat_model
       - id: 2
       - id: 2
         name: temperature
         name: temperature
         type: integer
         type: integer
@@ -75,12 +77,30 @@ entities:
         mapping:
         mapping:
           - dps_val: true
           - dps_val: true
             value: "on"
             value: "on"
+            available: swing_enabled
           - dps_val: false
           - dps_val: false
             value: "off"
             value: "off"
+      - id: 106
+        type: boolean
+        optional: true
+        name: heat_model
+        mapping:
+          - dps_val: false
+            value: false
+          - value: true
       - id: 108
       - id: 108
         type: integer
         type: integer
+        optional: true
         name: temperature_f
         name: temperature_f
         hidden: true
         hidden: true
+      - id: 109
+        type: boolean
+        optional: true
+        name: swing_enabled
+        mapping:
+          - dps_val: false
+            value: false
+          - value: true
   - entity: select
   - entity: select
     translation_key: temperature_unit
     translation_key: temperature_unit
     category: config
     category: config
@@ -107,6 +127,7 @@ entities:
       - id: 103
       - id: 103
         name: value
         name: value
         type: integer
         type: integer
+        optional: true
         unit: h
         unit: h
         range:
         range:
           min: 0
           min: 0