Quellcode durchsuchen

feat(suntec_coolfix_airconditioner): enable heat mode dependant on model id

- add product for MeacoCool MC 1200 series that uses identical dps

PR #5425 by @Primus27
Jason Rumney vor 3 Tagen
Ursprung
Commit
e80913d1a4

+ 7 - 4
custom_components/tuya_local/devices/suntec_coolfix_airconditioner.yaml

@@ -3,6 +3,9 @@ products:
   - id: 0ithwpdwkgyqfx54
     manufacturer: Suntec Wellness
     model: Coolfixx
+  - id: anelna1pjt7avtye
+    manufacturer: MeacoCool
+    model: MC Series 12000 PRO CH
 entities:
   - entity: climate
     dps:
@@ -23,6 +26,7 @@ entities:
                 value: fan_only
               - dps_val: Heat
                 value: heat
+                available: support_heat
       - id: 2
         type: integer
         name: temperature
@@ -96,12 +100,11 @@ entities:
             value: comfort
       - id: 103
         type: string
-        name: model_id
+        name: support_heat
         mapping:
-          - dps_val: C
-            value: Cooling
           - dps_val: C_H
-            value: Cool+Heat
+            value: true
+          - value: false
   - entity: binary_sensor
     class: problem
     category: diagnostic