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

Add support for Vaco Moby Blue / Arrifana portable heatpump

Issue #2228
Jason Rumney 1 год назад
Родитель
Сommit
cac24e813f
3 измененных файлов с 171 добавлено и 0 удалено
  1. 1 0
      ACKNOWLEDGEMENTS.md
  2. 1 0
      DEVICES.md
  3. 169 0
      custom_components/tuya_local/devices/vaco_mobyblue_heatpump.yaml

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -651,3 +651,4 @@ Further device support has been made with the assistance of users. Please consid
 - [inode-](https://github.com/inode-) for assisting with support for O'TU R1O1 fingerprint door lock.
 - [madpeteguy](https://github.com/madpeteguy) for contributing support for Thermoval TVT40 thermostat.
 - [blackice013](https://github.com/blackice013) for contributing support for Hunter Pacific 9 speed fan with light.
+- [Stalex25](https://github.com/Stalex25) for assisting with support for Vaco Moby Blue and Arrifana portable heatpumps.

+ 1 - 0
DEVICES.md

@@ -103,6 +103,7 @@
 - Tesla Smart TAF and AUX series air conditioners
 - TroniTechnik Hellnar Klimagerät
 - Trotec PAC-W 2600 SH heatpump
+- Vaco Moby Blue 14 / Arrifana 16 portable heatpump
 - Vivax Cool ACP-12CH35REWI
 - Vivion 300123/4/5 air conditioners
 - Woods Cortina portable air conditioner

+ 169 - 0
custom_components/tuya_local/devices/vaco_mobyblue_heatpump.yaml

@@ -0,0 +1,169 @@
+name: Heatpump
+products:
+  - id: asbtgrmtbjt5nubd
+    name: Vaco AC-WBR3 Moby Blue 14 / Arrifana 16
+primary_entity:
+  entity: climate
+  dps:
+    - id: 1
+      name: hvac_mode
+      type: boolean
+      mapping:
+        - value: "off"
+          dps_val: false
+        - dps_val: true
+          constraint: mode
+          conditions:
+            - value: cool
+              dps_val: "0"
+            - value: heat
+              dps_val: "1"
+            - value: dry
+              dps_val: "2"
+            - value: fan_only
+              dps_val: "3"
+            - value: heat_cool
+              dps_val: "4"  # Listed as ECO
+    - id: 2
+      type: integer
+      name: temperature
+      range:
+        min: 17
+        max: 30
+      mapping:
+        - constraint: temperature_unit
+          conditions:
+            - dps_val: f
+              range:
+                min: 62
+                max: 86
+              value_redirect: temp_set_f
+    - id: 3
+      type: integer
+      name: current_temperature
+      mapping:
+        - constraint: temperature_unit
+          conditions:
+            - dps_val: f
+              value_redirect: temp_current_f
+    - id: 4
+      type: string
+      name: mode
+      hidden: true
+    - id: 5
+      type: string
+      name: fan_mode
+      mapping:
+        - dps_val: "low"
+          value: low
+        - dps_val: "mid"
+          value: medium
+        - dps_val: "high"
+          value: high
+    - id: 104
+      name: swing_mode
+      type: boolean
+      mapping:
+        - dps_val: true
+          value: "on"
+        - dps_val: false
+          value: "off"
+    - id: 19
+      type: string
+      name: temperature_unit
+      mapping:
+        - dps_val: c
+          value: C
+        - dps_val: f
+          value: F
+    - id: 23
+      type: integer
+      optional: true
+      name: temp_current_f
+      hidden: true
+    - id: 24
+      type: integer
+      optional: true
+      hidden: true
+      name: temp_set_f
+      range:
+        min: 62
+        max: 86
+    - id: 103
+      type: string
+      name: model
+      mapping:
+        - dps_val: "0"
+          value: NPA
+        - dps_val: "1"
+          value: NPF
+        - dps_val: "2"
+          value: NPB cooling
+        - dps_val: "3"
+          value: NPB heating and cooling
+        - dps_val: "4"
+          value: NPE cooling
+        - dps_val: "5"
+          value: NPE heating and cooling
+secondary_entities:
+  - entity: binary_sensor
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 22
+        type: bitfield
+        name: sensor
+        mapping:
+          - dps_val: 0
+            value: false
+          - dps_val: 1
+            value: false
+          - value: true
+      - id: 22
+        type: bitfield
+        name: fault_code
+  - entity: binary_sensor
+    translation_key: tank_full
+    category: diagnostic
+    dps:
+      - id: 22
+        type: bitfield
+        name: sensor
+        mapping:
+          - dps_val: 1
+            value: true
+          - value: false
+  - entity: switch
+    name: Sleep
+    icon: "mdi:power-sleep"
+    dps:
+      - id: 105
+        type: boolean
+        name: switch
+  - entity: lock
+    translation_key: child_lock
+    category: config
+    dps:
+      - id: 14
+        type: boolean
+        name: lock
+  - 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: Self clean
+    icon: "mdi:shimmer"
+    category: config
+    dps:
+      - id: 102
+        type: boolean
+        name: switch