Browse Source

Add support for Arlec 12 speed tower fan

Issue #542
Jason Rumney 2 năm trước cách đây
mục cha
commit
b518789329

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -222,3 +222,4 @@ Further device support has been made with the assistance of users.  Please consi
 - [AdamB2023](https://github.com/AdamB2023) for assisting with support for Klarta Humea humidifiers.
 - [M4R7IN5](https://github.com/M4R7IN5) for assisting with support for Lenovo E1 vacuum cleaners.
 - [pmazz](https://github.com/pmazz) for contributing Italian translations.
+- [thewolf-oz](https://github.com/thewolf-oz) for assisting with support for Arlec 12-speed tower fans.

+ 1 - 0
DEVICES.md

@@ -100,6 +100,7 @@
 
 - Anko HEGSM40 fan
 - Arlec Grid Connect smart ceiling fan (with and without light)
+- Arlec 12 speed Tower fan
 - Aspen ASP 200 fan
 - Deta fan controller
 - Fanco Eco Silent Deluxe ceiling fan with LED light

+ 152 - 0
custom_components/tuya_local/devices/arlec_12speed_tower_fan.yaml

@@ -0,0 +1,152 @@
+name: Arlec tower fan
+products:
+  - id: rklgm99ldz4unh5s
+primary_entity:
+  entity: fan
+  dps:
+    - id: 1
+      name: switch
+      type: boolean
+    - id: 2
+      name: preset_mode
+      type: string
+      mappoing:
+        - dps_val: normal
+          value: Normal
+        - dps_val: natural
+          value: Natural
+        - dps_val: sleep
+          value: Sleep
+    - id: 3
+      name: speed
+      type: string
+      mapping:
+        - dps_val: "1"
+          value: 8
+        - dps_val: "2"
+          value: 17
+        - dps_val: "3"
+          value: 25
+        - dps_val: "4"
+          value: 33
+        - dps_val: "5"
+          value: 42
+        - dps_val: "6"
+          value: 50
+        - dps_val: "7"
+          value: 58
+        - dps_val: "8"
+          value: 67
+        - dps_val: "9"
+          value: 75
+        - dps_val: "10"
+          value: 83
+        - dps_val: "11"
+          value: 92
+        - dps_val: "12"
+          value: 100
+    - id: 102
+      name: oscillate
+      type: boolean
+    - id: 8
+      type: bitfield
+      name: fault_code
+secondary_entities:
+  - entity: select
+    name: Timer
+    icon: "mdi:timer"
+    category: config
+    dps:
+      - id: 6
+        type: string
+        name: option
+        mapping:
+          - dps_val: "0"
+            value: "Off"
+          - dps_val: "1"
+            value: "1 hour"
+          - dps_val: "2"
+            value: "2 hours"
+          - dps_val: "3"
+            value: "3 hours"
+          - dps_val: "4"
+            value: "4 hours"
+          - dps_val: "5"
+            value: "5 hours"
+          - dps_val: "6"
+            value: "6 hours"
+          - dps_val: "7"
+            value: "7 hours"
+          - dps_val: "8"
+            value: "8 hours"
+          - dps_val: "9"
+            value: "9 hours"
+          - dps_val: "10"
+            value: "10 hours"
+          - dps_val: "11"
+            value: "11 hours"
+          - dps_val: "12"
+            value: "12 hours"
+          - dps_val: "13"
+            value: "13 hours"
+          - dps_val: "14"
+            value: "14 hours"
+          - dps_val: "15"
+            value: "15 hours"
+          - dps_val: "16"
+            value: "16 hours"
+          - dps_val: "17"
+            value: "17 hours"
+          - dps_val: "18"
+            value: "18 hours"
+          - dps_val: "19"
+            value: "19 hours"
+          - dps_val: "20"
+            value: "20 hours"
+          - dps_val: "21"
+            value: "21 hours"
+          - dps_val: "22"
+            value: "22 hours"
+          - dps_val: "23"
+            value: "23 hours"
+          - dps_val: "24"
+            value: "24 hours"
+  - entity: sensor
+    name: Time remaining
+    class: duration
+    category: diagnostic
+    dps:
+      - id: 7
+        type: integer
+        name: sensor
+        unit: min
+  - entity: binary_sensor
+    name: Fault
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 8
+        type: bitfield
+        name: sensor
+        mapping:
+          - dps_val: 0
+            value: false
+          - value: true
+  - entity: sensor
+    name: Temperature
+    class: temperature
+    category: diagnostic
+    dps:
+      - id: 19
+        type: integer
+        name: sensor
+        unit: C
+        class: measurement
+  - entity: light
+    name: Display
+    category: config
+    dps:
+      - id: 9
+        type: boolean
+        name: switch
+

+ 1 - 0
custom_components/tuya_local/devices/arlec_thermostat_smartplug.yaml

@@ -22,6 +22,7 @@ primary_entity:
             - dps_val: "colding"
               value: "cool"
             - dps_val: "wet"
+              # There is no humidify/wet mode in HA climate platform
               value: "fan_only"
     - id: 7
       type: string