Bläddra i källkod

Add support for Arlec 19-speed wall fan

Issue #543
Jason Rumney 2 år sedan
förälder
incheckning
d3c739e350

+ 1 - 1
ACKNOWLEDGEMENTS.md

@@ -222,4 +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, 6-speed floor fans.
+- [thewolf-oz](https://github.com/thewolf-oz) for assisting with support for Arlec 12-speed tower fans, 6-speed floor fans and 19-speed wall fans.

+ 1 - 0
DEVICES.md

@@ -101,6 +101,7 @@
 - Anko HEGSM40 fan
 - Arlec Grid Connect smart ceiling fan (with and without light)
 - Arlec 12 speed tower fan
+- Arlec 19 speed wall fan
 - Arlec 6 speed floor fan
 - Aspen ASP 200 fan
 - Deta fan controller

+ 57 - 0
custom_components/tuya_local/devices/arlec_19speed_fan.yaml

@@ -0,0 +1,57 @@
+name: Arlec industrial fan
+products:
+  - id: 0waab4clioc3qaks
+    name: Arlec 19-speed industrial wall fan
+primary_entity:
+  entity: fan
+  dps:
+    - id: 1
+      name: switch
+      type: boolean
+    - id: 2
+      name: preset_mode
+      type: string
+      mapping:
+        - dps_val: normal
+          value: Normal
+        - dps_val: sleep
+          value: Sleep
+        - dps_val: natural
+          value: Natural
+    - id: 3
+      name: speed
+      type: integer
+      range:
+        min: 1
+        max: 19
+    - id: 5
+      name: oscillate
+      type: boolean
+    - id: 24
+      name: fault_code
+      type: bitfield
+secondary_entities:
+  - entity: number
+    name: Timer
+    category: config
+    icon: "mdi:timer"
+    dps:
+      - id: 22
+        type: integer
+        name: value
+        unit: h
+        range:
+          min: 0
+          max: 24
+  - entity: binary_sensor
+    name: Fault
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 24
+        type: bitfield
+        name: sensor
+        mapping:
+          - dps_val: 0
+            value: false
+          - value: true

+ 1 - 1
custom_components/tuya_local/manifest.json

@@ -9,5 +9,5 @@
     "iot_class": "local_push",
     "issue_tracker": "https://github.com/make-all/tuya-local/issues",
     "requirements": ["pycryptodome~=3.17","tinytuya==1.12.0"],
-    "version": "2022.3.1"
+    "version": "2022.3.2"
 }