Răsfoiți Sursa

Add support for Daewoo DHome air conditioner

Issue #807
Jason Rumney 2 ani în urmă
părinte
comite
a7ac7bb8d3

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -296,3 +296,4 @@ Further device support has been made with the assistance of users.  Please consi
 - [melvanderwal](https://github.com/melvanderwal) for assisting with support for Inkbird iBBQ-4T thermometers.
 - [melvanderwal](https://github.com/melvanderwal) for assisting with support for Inkbird iBBQ-4T thermometers.
 - [ahori](https://github.com/ahori) for contributing support for CO2-Box air quality monitors.
 - [ahori](https://github.com/ahori) for contributing support for CO2-Box air quality monitors.
 - [NatMan3000](https://github.com/NatMan3000) for assisting with support for Arlec Ceiling fan/light remote control kits.
 - [NatMan3000](https://github.com/NatMan3000) for assisting with support for Arlec Ceiling fan/light remote control kits.
+- [TanYauRei](https://github.com/TanYauRei) for assisting with support for Daewoo Dhome air conditioners.

+ 1 - 0
DEVICES.md

@@ -32,6 +32,7 @@
 - Be Cool BC14KL2101F
 - Be Cool BC14KL2101F
 - Carson CB PA280
 - Carson CB PA280
 - Cooper&Hunter Nordic Evo Ng
 - Cooper&Hunter Nordic Evo Ng
+- Daewoo Dhome OL-A011 air conditioner (DA9KWE)
 - Daizuki heat pump
 - Daizuki heat pump
 - Duux Blizzard portable air conditioner
 - Duux Blizzard portable air conditioner
 - Eberg Cooly C35HD
 - Eberg Cooly C35HD

+ 70 - 0
custom_components/tuya_local/devices/daewoo_dhome_heatpump.yaml

@@ -0,0 +1,70 @@
+name: Air conditioner
+products:
+  - id: 4aeadm1xijnxjsu6
+    name: Daewoo DHome OL-A011
+primary_entity:
+  entity: climate
+  dps:
+    - id: 1
+      type: boolean
+      name: hvac_mode
+      mapping:
+        - dps_val: false
+          value: "off"
+        - dps_val: true
+          constraint: mode
+          conditions:
+            - dps_val: Cool
+              value: cool
+            - dps_val: Dry
+              value: dry
+            - dps_val: Fan
+              value: fan_only
+            - dps_val: Heat
+              value: heat
+    - id: 2
+      type: integer
+      name: temperature
+      range:
+        min: 16
+        max: 32
+      unit: C
+    - id: 3
+      type: integer
+      name: current_temperature
+    - id: 4
+      type: string
+      name: mode
+      hidden: true
+    - id: 5
+      type: string
+      name: fan_mode
+      mapping:
+        - dps_val: Low
+          value: low
+        - dps_val: Hig
+          value: high
+    - id: 22
+      type: bitfield
+      name: fault_code
+    - id: 101
+      type: boolean
+      name: preset_mode
+      mapping:
+        - dps_val: true
+          value: sleep
+        - dps_val: false
+          value: comfort
+secondary_entities:
+  - entity: binary_sensor
+    name: Fault
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 22
+        type: bitfield
+        name: sensor
+        mapping:
+          - dps_val: 0
+            value: false
+          - value: true