Browse Source

Add support for Lyfco OL-A012 portable air conditioner.

Seems like a model up from the Daewoo OL-A011 that is already
supported, as it differs only by swing mode and one additional fan speed.

Issue #946
Jason Rumney 2 years ago
parent
commit
69d330c6ac

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -337,3 +337,4 @@ Further device support has been made with the assistance of users.  Please consi
 - [maxupunk](https://github.com/maxupunk) for assistance with support for Kabum Smart 700 vacuum cleaners.
 - [thugseus](https://github.com/thugseus) for assistance with support for HU06 Bluetooth smart locks.
 - [jaydensmith](https://github.com/jaydensmith) for assistance with support for Cadence aroma diffusers.
+- [davidsch1992](https://github.com/davidsch1992) for contributing support for Lyfco OL-A0012 air conditioners.

+ 1 - 0
DEVICES.md

@@ -43,6 +43,7 @@
 - ElectriQ EcoSilent 14HPW
 - Fersk Vind 2
 - Kogan 2.6kW portable air conditioner
+- Lyfco OL-A012 air conditioner
 - Monzana Klimaanlage air conditioner
 - Nedis ACMB1WT12 portable air conditioner
 - Rotenso Roni R35WI

+ 80 - 0
custom_components/tuya_local/devices/lyfco_portable_airconditioner.yaml

@@ -0,0 +1,80 @@
+name: Air conditioner
+products:
+  - id: gwwxvfg8auctbnpr
+    name: Lyfco OL-A012
+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: Mid
+          value: medium
+        - dps_val: Hig
+          value: high
+    - id: 15
+      type: string
+      name: swing_mode
+      mapping:
+        - dps_val: "OFF"
+          value: "off"
+        - dps_val: "ON"
+          value: "on"
+    - 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