Forráskód Böngészése

Add support for Sendo air conditioner

Issue #239
Jason Rumney 3 éve
szülő
commit
f46b5a6166

+ 106 - 0
custom_components/tuya_local/devices/sendo_airconditioner_c.yaml

@@ -0,0 +1,106 @@
+name: Sendo air conditioner C
+primary_entity:
+  entity: climate
+  dps:
+    - id: 1
+      name: hvac_mode
+      type: boolean
+      mapping:
+        - dps_val: false
+          value: "off"
+        - dps_val: true
+          constraint: mode
+          conditions:
+            - dps_val: cold
+              value: cool
+            - dps_val: hot
+              value: heat
+            - dps_val: wet
+              value: dry
+            - dps_val: wind
+              value: fan_only
+            - dps_val: auto
+              value: heat_cool
+    - id: 2
+      name: temperature
+      type: integer
+      mapping:
+        - scale: 10
+          step: 10
+      range:
+        min: 160
+        max: 320
+        # for F, 600 to 900
+      unit: C
+    - id: 3
+      name: current_temperature
+      type: integer
+      mapping:
+        - scale: 10
+    - id: 4
+      name: mode
+      type: string
+      hidden: true
+    - id: 8
+      name: preset_mode
+      type: boolean
+      mapping:
+        - dps_val: true
+          value: eco
+        - dps_val: false
+          value: comfort
+    - id: 12
+      name: aux_heat
+      type: boolean
+    - id: 33
+      name: swing_mode
+      type: boolean
+      mapping:
+        - dps_val: true
+          value: horizontal
+        - dps_val: false
+          value: "off"
+secondary_entities:
+  - entity: light
+    name: Backlight
+    category: config
+    icon: "mdi:television-ambient-light"
+    dps:
+      - id: 13
+        name: switch
+        type: boolean
+  - entity: lock
+    name: Child lock
+    category: config
+    icon: "mdi:hand-right-back-off"
+    dps:
+      - id: 14
+        name: lock
+        type: boolean
+  - entity: sensor
+    name: Power consumption
+    category: diagnostic
+    class: energy
+    dps:
+      - id: 28
+        name: sensor
+        type: integer
+        unit: kWh
+        class: total_increasing
+  - entity: switch
+    name: Sleep
+    category: config
+    icon: "mdi:power-sleep"
+    category: config
+    dps:
+      - id: 102
+        name: switch
+        type: boolean
+  - entity: switch
+    name: Ionizer
+    category: config
+    icon: "mdi:creation"
+    dps:
+      - id: 106
+        name: switch
+        type: boolean