Просмотр исходного кода

Add support for Tesla AUX series air conditioner.

This seems to be a reduced functionality version of the already
supported Tesla model. Common features appear to be identical in
implementation, but many are missing, so a new config is justified.

Issue #1836
Jason Rumney 1 год назад
Родитель
Сommit
8586f36c73
3 измененных файлов с 148 добавлено и 1 удалено
  1. 1 0
      ACKNOWLEDGEMENTS.md
  2. 1 1
      DEVICES.md
  3. 146 0
      custom_components/tuya_local/devices/tesla_aux_airconditioner.yaml

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -562,3 +562,4 @@ Further device support has been made with the assistance of users. Please consid
 - [rostKo](https://github.com/rostKo) for contributing improvements to WDYK energy monitors.
 - [Aegeontis](https://github.com/Aegeontis) for contributing Puppy Kitty compatibility for Catit Pixi smart feeder.
 - [chris-garbas](https://github.com/chris-garbas) for contributing improvements to IPS pro heatpump.
+- [Nyotee](https://github.com/Nyotee) for assisting with support for Tesla AUX series air conditioner.

+ 1 - 1
DEVICES.md

@@ -92,7 +92,7 @@
 - Sendo air conditioner
 - Star-Light air conditioner (also confirmed to work with Polar branded devices)
 - Suntec Wellness Coolfixx portable air conditioner
-- Tesla Smart TAF series air conditioner
+- Tesla Smart TAF and AUX series air conditioners
 - TroniTechnik Hellnar Klimagerät
 - Trotec PAC-W 2600 SH heatpump
 - Vivax Cool ACP-12CH35REWI

+ 146 - 0
custom_components/tuya_local/devices/tesla_aux_airconditioner.yaml

@@ -0,0 +1,146 @@
+name: Air conditioner
+# products:
+#   - id: UNKNOWN
+#     name: Tesla TA35LLIL-1232IAW
+primary_entity:
+  entity: climate
+  translation_key: aircon_extra
+  dps:
+    - id: 1
+      type: boolean
+      name: hvac_mode
+      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
+      type: integer
+      name: temperature
+      range:
+        min: 160
+        max: 320
+      mapping:
+        - scale: 10
+          step: 5
+          constraint: temperature_unit
+          conditions:
+            - dps_val: F
+              range:
+                min: 600
+                max: 900
+    - id: 3
+      type: integer
+      name: current_temperature
+      mapping:
+        - scale: 10
+    - id: 4
+      name: mode
+      type: string
+      hidden: true
+    - id: 5
+      type: string
+      name: fan_mode
+      mapping:
+        - dps_val: mute
+          value: "off"
+        - dps_val: low
+          value: low
+        - dps_val: mid
+          value: medium
+        - dps_val: high
+          value: high
+        - dps_val: auto
+          value: auto
+        - dps_val: strength
+          value: strong
+    - id: 19
+      type: string
+      name: temperature_unit
+    - id: 105
+      type: boolean
+      name: swing_mode
+      mapping:
+        - dps_val: true
+          value: vertical
+        - dps_val: false
+          value: "off"
+    - id: 107
+      type: bitfield
+      name: fault_code
+    - id: 108
+      type: bitfield
+      name: model
+secondary_entities:
+  - entity: light
+    translation_key: backlight
+    category: config
+    dps:
+      - id: 13
+        type: boolean
+        name: switch
+  - entity: select
+    translation_key: temperature_unit
+    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"
+    category: config
+    dps:
+      - id: 102
+        type: boolean
+        name: switch
+  - entity: switch
+    name: Clean
+    icon: "mdi:shimmer"
+    category: config
+    dps:
+      - id: 103
+        type: boolean
+        name: switch
+  - entity: switch
+    name: Anti-mould
+    icon: "mdi:water-off"
+    category: config
+    dps:
+      - id: 104
+        type: boolean
+        name: switch
+  - entity: switch
+    translation_key: uv_sterilization
+    category: config
+    dps:
+      - id: 106
+        type: boolean
+        name: switch
+  - entity: binary_sensor
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 107
+        type: bitfield
+        name: sensor
+        mapping:
+          - dps_val: 0
+            value: false
+          - value: true