Quellcode durchsuchen

Carson CB: update based on compatible Shinco Yoau YWD1

Shinco Yoau YWD1 / Axelair Tempero CMM3000 / Domair Callisto seems compatible,
but with additional Sleep mode and second fault code mapping for bits 30 - 32

Some unknowns (fault codes and defrost indicator) are identified by the info
for this model, and most likely matching in the Carson as well.

Issue #1032
Jason Rumney vor 2 Jahren
Ursprung
Commit
3ede99d3a5
1 geänderte Dateien mit 88 neuen und 13 gelöschten Zeilen
  1. 88 13
      custom_components/tuya_local/devices/carson_cb.yaml

+ 88 - 13
custom_components/tuya_local/devices/carson_cb.yaml

@@ -1,4 +1,9 @@
-name: Carson CB PA280
+name: Air conditioner
+products:
+  # original product id unknown: Carson CB PA280
+  - id: 2tgd3qnobb1mcgd9
+    name: Shinco Yoau YWD1
+    # also sold as Axelair Tempero CMM3000, Domair Callisto (product id may be same or different?)
 primary_entity:
   entity: climate
   dps:
@@ -57,12 +62,6 @@ primary_entity:
     - id: 19
       name: temperature_unit
       type: string
-    - id: 102
-      name: unknown_102
-      type: boolean
-    - id: 103
-      name: timer
-      type: integer
     - id: 104
       name: swing_mode
       type: boolean
@@ -71,12 +70,88 @@ primary_entity:
           value: "vertical"
         - dps_val: false
           value: "off"
-    - id: 105
-      name: countdown
-      type: integer
     - id: 106
-      name: unknown_106
-      type: integer
+      name: fault_code
+      type: bitfield
     - id: 110
-      name: unknown_110
+      name: model_code
       type: integer
+    - id: 111
+      name: fault_code2
+      type: bitfield
+      optional: true
+secondary_entitites:
+  - entity: select
+    name: temperature unit
+    icon: "mdi:temperature-celsius"
+    category: config
+    dps:
+      - id: 19
+        type: string
+        name: option
+        mapping:
+          - dps_val: C
+            value: Celsius
+          - dps_val: F
+            value: Fahrenheit
+  - entity: switch
+    name: Sleep
+    icon: "mdi:power-sleep"
+    dps:
+      - id: 101
+        type: boolean
+        name: switch
+        optional: true
+  - entity: binary_sensor
+    name: Defrosting
+    class: cold
+    category: diagnostic
+    dps:
+      - id: 102
+        type: boolean
+        name: sensor
+  - entity: number
+    name: Timer
+    category: config
+    icon: "mdi:timer"
+    dps:
+      - id: 103
+        type: integer
+        name: value
+        unit: h
+        range:
+          min: 0
+          max: 24
+  - entity: sensor
+    name: Time remaining
+    class: duration
+    category: diagnostic
+    dps:
+      - id: 105
+        type: integer
+        name: sensor
+        unit: min
+        class: measurement
+  - entity: binary_sensor
+    name: Fault
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 106
+        type: bitfield
+        name: sensor
+        mapping:
+          - dps_val: 0
+            constraint: fault_code2
+            conditions:
+              - dps_val: 0
+                value: false
+              - dps_val: null
+                value: false
+            value: true
+          - value: true
+      - id: 111
+        type: bitfield
+        name: fault_code2
+        optional: true
+        hidden: true